/* ==========================================================================
   home.css — the YKHN wordmark. Letters rise on load, then assets/js/
   wordmark.js takes over and drives their weight from pointer proximity.
   ========================================================================== */

.mark {
  text-align: center;
  user-select: none;
}

h1 {
  font-size: clamp(5rem, 24vw, 19rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: center;
  cursor: default;
}

h1 .ltr {
  display: inline-block;
  font-variation-settings: "wght" 340;
  opacity: 0;
  transform: translateY(0.35em);
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, font-variation-settings;
}
h1 .ltr:nth-child(1) { animation-delay: 0.10s; }
h1 .ltr:nth-child(2) { animation-delay: 0.22s; }
h1 .ltr:nth-child(3) { animation-delay: 0.34s; }
h1 .ltr:nth-child(4) { animation-delay: 0.46s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.rule {
  width: 0;
  height: 1px;
  margin: 2.2rem auto 1.6rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: extend 1.4s 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes extend {
  to { width: min(340px, 60vw); }
}

.domain {
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.55em;
  text-indent: 0.55em; /* balances tracking on the last glyph */
  text-transform: lowercase;
  color: var(--faint);
  opacity: 0;
  animation: fade 1.6s 1.2s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  h1 .ltr { animation-duration: 0.01s; }
  .rule { animation-duration: 0.01s; animation-delay: 0s; }
  .domain { animation-duration: 0.01s; animation-delay: 0s; }
}
