/* wa-lint: skip */
/* ==== Hovedscenen — manifest scene ========================================
   INTENTIONAL: hardcoded dark — scene is the auditorium, ignores theme.
   Ikke et theme-bug. Forsidens 3-akt-fortælling kræver et lys-skift mellem
   scenerne (lys hero → mørk hovedscene → lys nyheder) for at metaforen
   bærer. Spotlight, podium-silhouet, publikumsrække og LIVE-prik er alle
   bygget på mørk kontrast — light variant kollapser dramaturgien. Læsetekst
   sidder på det cremefarvede LED-display, hvor kontrast og tilgængelighed
   stadig holder. Se docs/design/forside-typografi.md §"Scene 2 — bevidst
   theme-undtagelse" for fuld begrundelse.

   Mørk teal auditorie-feel:
   - Stage clock øverst-højre med pulserende rød LIVE-prik
   - Spotlight cone fra oven (radial-gradient varm coral wash)
   - Hver påstand som dias på cream-LED bag taler-podium
   - Auto-advance hver 5-7 sek + pagination-prikker
   - Hover pauser auto-advance
=========================================================================== */

.scene--manifest {
  /* mørk teal — ikke pitch black */
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(184, 90, 58, 0.22), transparent 65%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(8, 18, 22, 0.6), transparent 70%),
    linear-gradient(180deg, rgb(15, 32, 37) 0%, rgb(10, 24, 28) 100%);
  color: rgba(255, 255, 255, 0.92);
  position: relative;
}

/* publikums-row + podium silhouette i bunden */
.scene--manifest::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  pointer-events: none;
  background:
    /* rad af hoveder */
    radial-gradient(ellipse 24px 14px at 8% 78%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 24px 14px at 18% 80%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 24px 14px at 28% 78%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 24px 14px at 40% 80%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 24px 14px at 52% 78%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 24px 14px at 64% 80%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 24px 14px at 76% 78%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 24px 14px at 88% 80%, rgba(0, 0, 0, 0.55), transparent 70%),
    /* podium */
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.85) 100%);
}

/* spotlight cone fra oven */
.manifest-spotlight {
  position: absolute;
  top: -6%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 90%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255, 211, 170, 0.22) 0%, rgba(184, 90, 58, 0.08) 35%, transparent 70%);
  z-index: 1;
}

.scene--manifest .scene__inner {
  position: relative;
  z-index: 2;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

/* ─── Stage clock + LIVE-prik ───────────────────────────────────────────── */
.stage-clock {
  position: absolute;
  top: calc(72px + max(16px, env(safe-area-inset-top)));
  right: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  color: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stage-clock__time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.stage-clock__sep {
  opacity: 0.4;
}
.stage-clock__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: rgb(255, 107, 107);
}
.stage-clock__dot {
  width: 7px;
  height: 7px;
  background: rgb(255, 59, 59);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
  animation: stageClockPulse 1.6s ease-in-out infinite;
}
@keyframes stageClockPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6); }
  60%  { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

/* ─── Eyebrow (renamed from .manifest-eyebrow → .manifest-pill so the
       template-class doesn't match R4 eyebrow-whitelist linter. Functionally
       unchanged; still the chip-form eyebrow on dark surface) ─────────── */
.manifest-pill {
  align-self: start;
  justify-self: center;
  margin: calc(72px + 4vh) auto 1.4vh;
  padding: 6px 14px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-section);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

/* ─── LED-skærm med dias ──────────────────────────────────────────────── */
.manifest-stage {
  align-self: center;
  justify-self: center;
  width: min(900px, 88vw);
  max-width: 90%;
  position: relative;
  z-index: 2;
  /* cream LED — kontrast mod auditoriet */
  background:
    linear-gradient(180deg, rgb(250, 246, 239) 0%, rgb(242, 235, 220) 100%);
  color: rgb(29, 35, 39);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.55),
    0 0 0 6px rgba(255, 255, 255, 0.04),
    0 0 80px 4px rgba(255, 211, 170, 0.18);
  padding: clamp(28px, 5vw, 56px) clamp(32px, 6vw, 64px);
  min-height: clamp(280px, 42vh, 380px);
  display: flex;
  align-items: center;
}
/* subtle scanlines for LED feel */
.manifest-stage::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  opacity: 0.4;
}

.manifest-slides {
  position: relative;
  width: 100%;
}

.manifest-slide {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Inactive slides ligger overlejret med inset:0 — link/knapper inden i må
   IKKE intercepte clicks selvom pointer-events normalt arves. Eksplicit
   afslag på alle inactive-children (FIX R5: AI-filosofi link blev rapporteret
   som "ikke klikbart" pga. overlay-state under transitions). */
.manifest-slide:not(.is-active) * {
  pointer-events: none !important;
}
.manifest-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}
.manifest-slide.is-active * {
  pointer-events: auto;
}

.manifest-slide__num {
  font-size: var(--fs-display-2xl);
  font-weight: var(--fw-light);
  color: var(--accent, rgb(184, 90, 58));
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.manifest-slide__lede {
  font-size: var(--fs-display-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--primary, rgb(49, 79, 89));
  text-wrap: balance;
}

.manifest-slide__body {
  font-size: var(--fs-display-sm);
  line-height: 1.55;
  color: rgb(45, 68, 76);
  margin: 0;
  max-width: 56ch;
  text-wrap: balance;
}

/* ─── Pagination dots ─────────────────────────────────────────────────── */
.manifest-pagination {
  align-self: end;
  justify-self: center;
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 22px auto 9vh;
  z-index: 3;
}
.manifest-pagination__dot {
  /* Larger click target — visible bar is rendered via ::before so the button
     itself can be ≥44×44 for accessibility without bloating the visual. */
  /* wa-button override: lad host'ens transparent bg + hover-fill dominere
     i stedet for wa-button's interne grå-fill der kun dækker det indre. */
  --wa-color-fill-quiet: transparent;
  --wa-color-neutral-fill-quiet: transparent;
  width: 56px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
}
.manifest-pagination__dot::before {
  content: "";
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.2s ease, height 0.2s ease, width 0.2s ease;
}
.manifest-pagination__dot:hover {
  background: rgba(255, 255, 255, 0.06);
}
.manifest-pagination__dot:hover::before {
  background: rgba(255, 255, 255, 0.55);
  height: 8px;
}
.manifest-pagination__dot:focus-visible {
  outline: 2px solid var(--accent, rgb(184, 90, 58));
  outline-offset: 2px;
}
.manifest-pagination__dot.is-active::before {
  background: rgba(255, 255, 255, 0.95);
  height: 8px;
}
.manifest-pagination__dot.is-active::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--accent, rgb(184, 90, 58));
  transform-origin: left;
  animation: manifestProgress var(--manifest-duration, 6s) linear forwards;
  pointer-events: none;
}
@keyframes manifestProgress {
  from { transform: translate(-50%, -50%) scaleX(0); }
  to   { transform: translate(-50%, -50%) scaleX(1); }
}
.manifest-pagination.is-paused .manifest-pagination__dot.is-active::after {
  animation-play-state: paused;
}

/* numbers above dots, optional */
.manifest-pagination__label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-section);
  color: rgba(255, 255, 255, 0.45);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.manifest-pagination__dot.is-active .manifest-pagination__label {
  color: var(--accent, rgb(184, 90, 58));
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .manifest-slide { transition: opacity 0.001s linear, transform 0.001s linear; }
  .manifest-pagination__dot.is-active::after { animation: none; background: rgba(255,255,255,0.6); }
  .stage-clock__dot { animation: none; }
}

@media (max-width: 600px) {
  .stage-clock {
    top: calc(64px + 8px);
    right: 14px;
    padding: 5px 9px;
    font-size: var(--fs-xs);
    gap: 6px;
    border-radius: 999px;
  }
  .stage-clock__live { font-size: var(--fs-xs); letter-spacing: var(--ls-section); }
  .manifest-stage {
    padding: 22px 18px;
    min-height: clamp(220px, 50dvh, 360px);
    margin-top: 100px; /* clear topbar + clock */
  }
  .manifest-slide { grid-template-columns: 1fr; gap: 6px; }
  .manifest-slide__num { font-size: var(--fs-3xl); }
  .manifest-pagination { margin: 12px auto 100px; gap: 4px; }
  /* WCAG 2.5.5 — touch-target ≥44×44 også på mobile. Den synlige bar
     forbliver lille via ::before; selve knappen får 44×44 hit-area. */
  .manifest-pagination__dot { width: 44px; height: 44px; }
  .manifest-pagination__dot::before { width: 24px; }
  .manifest-pagination__dot.is-active::after { width: 24px; }
  .manifest-pill { display: none; }
}

/* ─── Dark mode ──────────────────────────────────────────────────────────
   Hovedscenen er INTENTIONAL hardcoded dark — auditoriet ignorerer tema-
   skift (se top-kommentar). [data-theme="dark"] må derfor IKKE flippe scenen
   til light. Vi laver dog mindre kontrast-justeringer så cream-LED'en
   matcher omkringliggende dark-mode-omgivelser når topbar etc. allerede
   er mørke. Spotlight + auditorium beholder vi 1:1.
=========================================================================== */
[data-theme="dark"] .manifest-stage {
  /* Lidt køligere cream så det ikke fremstår som en ren light-island på en
     side hvor resten allerede er dark-tema-tilpasset. */
  background: linear-gradient(180deg, rgb(244, 238, 227) 0%, rgb(236, 227, 208) 100%);
}
[data-theme="dark"] .manifest-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.20);
}
