@font-face { font-family:"Poppins"; font-style:normal; font-weight:500; font-display:swap; src:url("yazi/poppins-latin-500.woff2") format("woff2"); }
@font-face { font-family:"Poppins"; font-style:normal; font-weight:700; font-display:swap; src:url("yazi/poppins-latin-700.woff2") format("woff2"); }
/* ==========================================================================
   Meso Asistan — animated wordmark
   Custom "M" (Runey-style monoline, inline SVG) + Poppins 700 ("es") + ray "O" (inline SVG)
   Font: Poppins 700 ("es") + 500 ("Asistan")
   Poppins is self-hosted under assets/yazi/.
   Size it with --meso-size (font-size of "Mes"). Dark variant: .meso-logo--dark
   ========================================================================== */
.meso-logo {
  --meso-size: 30px;
  --meso-ink: #16191D;
  --meso-sub: #5B6472;
  --meso-accent: #1E6FC2;
  --meso-ease-out: cubic-bezier(.16, 1, .3, 1);
  --meso-ease-io: cubic-bezier(.65, 0, .35, 1);

  position: relative;            /* anchor for the absolutely-positioned "Asistan" */
  display: inline-block;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--meso-size);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--meso-ink);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.meso-logo--dark {
  --meso-ink: #FFFFFF;
  --meso-sub: #AEB6C2;
  --meso-accent: #5AA2EA;
}

.meso-logo__word { display: inline-block; }

/* The custom M: inline SVG drawn in Poppins font units (1000 upm).
   viewBox 918 x 780 = Poppins M advance; baseline at y=740, so the box
   bottom sits 40 units below the baseline (same convention as the O).
   Cap height 702 (+8 overshoot on the round shoulders), stroke 166 = Poppins Bold stem. */
.meso-logo__m {
  display: inline-block;
  width: 0.918em;
  height: 0.78em;
  vertical-align: -0.04em;
  overflow: visible;
  fill: var(--meso-ink);
}

/* The O: an inline SVG drawn in Poppins font units (1000 upm), so it sits
   exactly where Poppins' own "o" would: same advance, x-height and overshoot. */
.meso-logo__o {
  display: inline-block;
  width: 0.66em;
  height: 0.64em;
  vertical-align: -0.04em;       /* viewBox bottom = 40 units below the baseline */
  margin-left: 0.012em;          /* optical spacing after the "s" */
  overflow: visible;
  fill: var(--meso-ink);
}

.meso-logo .mo-spin,
.meso-logo .mo-ray {
  transform-box: view-box;
  transform-origin: 330px 321px; /* centre of the O in viewBox units */
}
.meso-logo .mo-spin {
  /* mouse leave: settle back calmly */
  transition: transform 0.9s var(--meso-ease-io);
}
.meso-logo .mo-ring { transition: fill 0.45s ease; }
.meso-logo .mo-ray {
  fill: var(--meso-ink);
  transition: fill 0.45s ease calc(var(--i) * 12ms);
}

/* ---- active state: hover, keyboard focus, or .is-active (forced) ---- */
.meso-logo:is(:hover, :focus-visible, .is-active) .mo-spin {
  transform: rotate(360deg);
  transition: transform 1.2s var(--meso-ease-out);
}
.meso-logo:is(:hover, :focus-visible, .is-active) .mo-ring { fill: var(--meso-accent); }
.meso-logo:is(:hover, :focus-visible, .is-active) .mo-ray {
  fill: var(--meso-accent);
  animation: meso-ray-pulse 0.6s var(--meso-ease-io) calc(var(--i) * 22ms) both;
}
@keyframes meso-ray-pulse {
  0%, 100% { transform: scale(1); }
  45%      { transform: scale(1.055); }
}

/* "Asistan": absolutely positioned under "Meso", so it never pushes the
   header layout. It is clipped from the top edge and slides down into view. */
.meso-logo__sub {
  position: absolute;
  left: 0.06em;                  /* optical alignment with the M stem */
  top: 100%;
  margin-top: 0.06em;
  font-size: 0.4em;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--meso-sub);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-0.55em);
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 0.28s var(--meso-ease-io),
    transform 0.28s var(--meso-ease-io),
    opacity 0.2s ease;
}
.meso-logo:is(:hover, :focus-visible, .is-active) .meso-logo__sub {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 -20% 0);
  transition:
    clip-path 0.38s var(--meso-ease-out) 0.05s,
    transform 0.38s var(--meso-ease-out) 0.05s,
    opacity 0.3s ease 0.05s;
}

/* keyboard focus ring (only for keyboard users) */
/* drawn on a pseudo-element so the ring also wraps the revealed "Asistan" */
.meso-logo::after {
  content: "";
  position: absolute;
  inset: -0.22em -0.26em -0.72em -0.26em;
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--meso-accent);
  opacity: 0;
  pointer-events: none;
}
.meso-logo:focus-visible::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .meso-logo .mo-spin,
  .meso-logo .mo-ray,
  .meso-logo:is(:hover, :focus-visible, .is-active) .mo-spin,
  .meso-logo:is(:hover, :focus-visible, .is-active) .mo-ray {
    transform: none;
    animation: none;
  }
  .meso-logo__sub,
  .meso-logo:is(:hover, :focus-visible, .is-active) .meso-logo__sub {
    transform: none;
    clip-path: none;
    transition: opacity 0.2s linear;
  }
}
