/* ══════════════════════════════════════════════════════════════
   Landing-only: HUD overlay for the three fullscreen modules
   opened from the portal nodes. Floats over KelnFullscreen's
   .kfm-host without touching the shared fullscreen chrome.
   Same glass grammar as .sidebar / .dossier.
   ══════════════════════════════════════════════════════════════ */

/* ── Module caption ─────────────────────────────────────────
   One line, bottom-left, over whichever module is open. Built by
   landing.js on open; see the note there for why this exists
   instead of the .lf-hud panel below it.

   No panel, no border, no backdrop filter. A caption that needs a
   card to be legible is competing with the thing it captions —
   over a near-black module a text-shadow is enough to hold small
   mono type at any brightness underneath it. */
.lf-caption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 5;
  margin: 0;
  max-width: 62ch;

  font-size: var(--t-xs);
  letter-spacing: .11em;
  text-transform: uppercase;
  line-height: 1.7;
  color: rgba(196,216,246,.66);
  text-shadow: 0 1px 14px rgba(0,0,0,.92), 0 0 3px rgba(0,0,0,.8);

  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  animation: lf-caption-in .55s cubic-bezier(.22,1,.36,1) .42s forwards;
}

/* Behind the module's own entrance, deliberately. The component
   should be what the eye lands on; the caption answers a question
   the component has just prompted, so it arrives after the
   question exists rather than before it. */
@keyframes lf-caption-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .lf-caption { animation-duration: .01ms; animation-delay: 0s; }
}

@media (max-width: 720px) {
  .lf-caption {
    left: 16px; right: 16px; bottom: 16px;
    font-size: var(--t-2xs);
    letter-spacing: .08em;
  }
}

.lf-hud {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 5;
  max-width: 380px;
  padding: 18px var(--s-9);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(30,38,52,.82), rgba(12,17,25,.88));
  border: 1px solid var(--border);
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  color: var(--ink);
  font-family: var(--font);
  opacity: 0;
  transform: translateY(8px);
  animation: lf-hud-in .5s cubic-bezier(.22,1,.36,1) .3s forwards;
}
@keyframes lf-hud-in { to { opacity: 1; transform: none; } }
.lf-hud--out {
  animation: lf-hud-out .28s ease forwards;
}
@keyframes lf-hud-out { to { opacity: 0; transform: translateY(6px); } }

.lf-hud__eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: var(--s-3);
}
.lf-hud__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: var(--s-4);
  color: var(--ink);
}
.lf-hud__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: var(--s-7);
}
.lf-hud__cta { display: inline-flex; gap: var(--s-5); flex-wrap: wrap; }

.lf-hud__dismiss {
  position: absolute;
  top: 8px; right: 10px;
  width: 26px; height: 26px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  border-radius: var(--r-sm);
  font-size: var(--t-lg);
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lf-hud__dismiss:hover,
.lf-hud__dismiss:focus-visible {
  background: rgba(91,140,255,.08);
  color: var(--ink);
  border-color: rgba(91,140,255,.2);
  outline: none;
}

/* ── Calendar demo (read-only, landing-only) ───────────────
   Reuses theme tokens so it reads as Keln. calendar.css owns the
   real .cal grid; this is a separate lightweight surface that
   only exists inside the landing fullscreen. */
.lf-cal {
  position: absolute;
  inset: 0;
  padding: 64px var(--s-10) var(--s-10);
  overflow: auto;
  font-family: var(--font);
  color: var(--ink);
}
.lf-cal__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.lf-cal__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-9);
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}
.lf-cal__title {
  font-size: var(--t-4xl);
  font-weight: 600;
  letter-spacing: -.01em;
}
.lf-cal__title .mono {
  font-family: var(--mono);
  color: var(--muted);
  margin-left: var(--s-4);
  font-weight: 500;
}
.lf-cal__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s-3);
  padding: 0 0 var(--s-4);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.lf-cal__dow > div { padding: var(--s-2) var(--s-4); }
.lf-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(96px, 1fr);
  gap: var(--s-3);
}
.lf-cal__cell {
  position: relative;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(12,17,25,.55);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  overflow: hidden;
}
.lf-cal__cell--other { opacity: .35; }
.lf-cal__cell--today {
  border-color: rgba(34,211,166,.45);
  background: linear-gradient(160deg, rgba(34,211,166,.08), rgba(12,17,25,.55));
  box-shadow: 0 0 24px rgba(34,211,166,.12);
}
.lf-cal__cell-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.lf-cal__cell--today .lf-cal__cell-num { color: var(--accent2); font-weight: 600; }
.lf-cal__cell-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lf-cal__ev {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 3px var(--s-3);
  border-radius: 6px;
  background: rgba(6,10,16,.55);
  border: 1px solid rgba(91,140,255,.1);
  font-size: 11.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lf-cal__ev-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

@media (max-width: 640px) {
  .lf-cal__grid { grid-auto-rows: minmax(72px, 1fr); }
  .lf-cal__cell { padding: var(--s-3) 7px; }
  .lf-hud { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
