/* ============================================================
   lk-home — Lyrikai landing page (/) component layer.

   Loaded via ShellOptions.sectionStyles after lk-main.css. Holds only
   the home-page-specific components (hero headline, sigil panel, logo
   stage). Shared chrome, tokens, .lk-eyebrow and .lk-button* live in
   lk-main.css. See public/styles/README.md.
   ============================================================ */

.lk-welcome {
  width: min(var(--lkos-max-width), 100%);
  margin: 0 auto;
  padding: var(--lkos-safe-block) var(--lkos-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.lk-welcome-copy {
  min-width: 0;
}

.lk-title {
  max-width: 820px;
  margin: 24px 0 0;
  font-family: var(--lkos-font-display);
  font-size: clamp(72px, 12vw, 172px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.94;
  color: var(--lkos-text-heading);
}

.lk-title span {
  color: var(--lkos-accent);
  text-shadow: 0 0 24px color-mix(in srgb, var(--lkos-accent) 28%, transparent);
}

.lk-deck {
  max-width: 620px;
  margin: 32px 0 0;
  color: var(--lkos-text-secondary);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.42;
}

.lk-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lk-status {
  font-family: var(--lkos-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lkos-text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lk-sigil-panel {
  min-height: min(68vh, 620px);
  border: var(--lkos-border-width) solid var(--lkos-border-night);
  border-radius: var(--lkos-radius-lg);
  background: var(--lkos-surface-night);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.lk-panel-head,
.lk-panel-foot {
  min-height: 48px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: var(--lkos-border-width) solid var(--lkos-border-night);
  color: var(--lkos-text-night-sub);
  font-family: var(--lkos-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lk-panel-foot {
  border-top: var(--lkos-border-width) solid var(--lkos-border-night);
  border-bottom: 0;
}

.lk-live-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--lkos-radius-full);
  background: var(--lkos-success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--lkos-success) 30%, transparent);
  animation: lk-pulse 1.8s ease-out infinite;
}

.lk-logo-stage {
  min-height: 0;
  padding: clamp(28px, 6vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vh, 40px);
}

.lk-stacked-text {
  text-align: center;
}

.lk-stacked-text .word {
  display: block;
  min-height: 1.22em;
  color: var(--lkos-text-night);
  font-family: var(--lkos-font-mono);
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1.22;
  text-transform: uppercase;
}

.lk-stacked-text .word::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.1em;
  animation: lk-blink 700ms step-end infinite;
}

.lk-stacked-text .word.idle::after {
  display: none;
}

.lk-logo-orbit {
  width: clamp(150px, 28vw, 230px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: var(--lkos-border-width) solid var(--lkos-border-night);
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(135deg, var(--lkos-logo-glow-a), var(--lkos-logo-glow-b));
}

.lk-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes lk-blink {
  50% {
    opacity: 0;
  }
}

@keyframes lk-pulse {
  100% {
    box-shadow: 0 0 0 12px transparent;
  }
}

@media (max-width: 900px) {
  .lk-welcome {
    grid-template-columns: 1fr;
  }

  .lk-sigil-panel {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .lk-title {
    font-size: clamp(64px, 22vw, 96px);
  }

  .lk-sigil-panel {
    min-height: 460px;
  }
}
