/* Tema og baggrund */
:root {
  --portal: #a2e418;
  --portal-dim: #6fa312;
  --portal-glow: #c8f56a;
  --void: #1a0f2e;
  --card: #241838;
  --line-glow: rgba(162, 228, 24, 0.35);
}

.stripe-bg {
  background: repeating-linear-gradient(
    -12deg,
    rgba(139, 30, 63, 0.12) 0px,
    rgba(139, 30, 63, 0.12) 28px,
    rgba(26, 15, 46, 0.35) 28px,
    rgba(26, 15, 46, 0.35) 56px
  );
}

.portal-vignette {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(162, 228, 24, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(88, 28, 135, 0.2), transparent 50%);
}

/* Lodret linje */
.timeline-list {
  position: relative;
  padding-left: 0;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 0;
  bottom: 0;
  width: 4px;
  margin-left: -2px;
  background: linear-gradient(
    180deg,
    var(--portal-glow) 0%,
    var(--portal) 25%,
    var(--portal-dim) 75%,
    rgba(162, 228, 24, 0.25) 100%
  );
  border-radius: 999px;
  box-shadow: 0 0 20px var(--line-glow), 0 0 40px rgba(162, 228, 24, 0.15);
}

.timeline-item {
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: 3rem;
}

.timeline-item.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.timeline-item.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .timeline-item.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Rail: reveal på indre lag, ikke på li/article — fixed popover er søskende og skal ikke arve opacity:0 */
.timeline-item.timeline-item--horizontal-rail.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.timeline-h-rail-reveal {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
}

.timeline-item.timeline-item--horizontal-rail.reveal .timeline-h-rail-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.timeline-item.timeline-item--horizontal-rail.reveal.is-visible .timeline-h-rail-reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .timeline-item.timeline-item--horizontal-rail.reveal .timeline-h-rail-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Horisontal tidslinje (toggle) */
.timeline-shell[data-timeline-mode="horizontal"] {
  max-width: 72rem;
}

.timeline-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.timeline-mode-btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(162, 228, 24, 0.35);
  background: rgba(36, 24, 56, 0.6);
  color: rgba(226, 232, 240, 0.9);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.timeline-mode-btn:hover {
  border-color: rgba(162, 228, 24, 0.55);
  box-shadow: 0 0 18px rgba(162, 228, 24, 0.15);
}

.timeline-mode-btn.is-active {
  background: linear-gradient(145deg, rgba(162, 228, 24, 0.25), rgba(36, 24, 56, 0.95));
  border-color: rgba(162, 228, 24, 0.45);
  color: var(--portal-glow);
  box-shadow: 0 0 20px rgba(162, 228, 24, 0.12);
}

.timeline-mode-btn:focus-visible {
  outline: 2px solid var(--portal);
  outline-offset: 2px;
}

.timeline-list--horizontal {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
}

.timeline-list--horizontal::before {
  display: none;
}

.timeline-item--horizontal {
  position: relative;
  padding-left: 0;
  padding-bottom: 0;
  flex: 0 0 min(85vw, 22rem);
  min-width: min(85vw, 22rem);
  scroll-snap-align: start;
}

/* Flad horisontal (horisontal.html) — smallere kort + sikre læsebredde */
.timeline-item--horizontal-flat {
  flex: 0 0 auto;
  width: min(15.75rem, calc(100vw - 2 * clamp(1.25rem, 6vw, 2.25rem)));
  min-width: 0;
  max-width: 100%;
  scroll-snap-align: start;
}

/* Lang rail — minimalistisk: kun dato + titel; hover med badge, fuld tekst, billede */
.timeline-item--horizontal-rail {
  flex: 0 0 auto;
  width: min(9.5rem, calc((100vw - 3rem) / 5));
  min-width: 7.25rem;
  max-width: 11rem;
  scroll-snap-align: start;
  overflow: visible;
  position: relative;
}

/* Hele kolonnen løftes ved hover/åbent panel, så overlay ligger ovenpå nabo-kort */
.timeline-item--horizontal-rail:hover,
.timeline-item--horizontal-rail:focus-within,
.timeline-item--horizontal-rail.rail-popover-active {
  z-index: 45;
}

.timeline-h-card--rail {
  position: relative;
  border-radius: 0.5rem;
  border: 1px solid rgba(162, 228, 24, 0.2);
  background: linear-gradient(165deg, rgba(26, 17, 40, 0.96), rgba(14, 10, 24, 0.99));
  padding: 0.5rem 0.55rem 0.65rem;
  min-height: 6.25rem;
  overflow: visible;
  transition:
    border-color 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.timeline-h-card--rail:hover,
.timeline-h-card--rail:focus-within {
  border-color: rgba(162, 228, 24, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 12px 28px rgba(0, 0, 0, 0.35);
}

.timeline-h-card--rail:focus-visible {
  outline: 2px solid var(--portal);
  outline-offset: 2px;
}

.timeline-h-rail-date {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.95);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.35;
  width: 100%;
  display: block;
}

.timeline-h-card--rail-featured .timeline-h-rail-dot {
  width: 0.68rem;
  height: 0.68rem;
  box-shadow: 0 0 0 3px rgba(10, 6, 18, 0.95), 0 0 16px rgba(162, 228, 24, 0.55);
}

.timeline-h-rail-mark {
  position: relative;
  width: 100%;
  height: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
}

.timeline-h-rail-mark::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  right: -0.35rem;
  top: 50%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(162, 228, 24, 0.28) 12%,
    rgba(162, 228, 24, 0.42) 50%,
    rgba(162, 228, 24, 0.28) 88%,
    transparent 100%
  );
  transform: translateY(-50%);
}

.timeline-h-rail-dot {
  position: relative;
  z-index: 1;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--portal-glow), var(--portal));
  box-shadow: 0 0 0 3px rgba(10, 6, 18, 0.95), 0 0 12px rgba(162, 228, 24, 0.45);
}

.timeline-h-rail-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.timeline-h-rail-compact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.timeline-h-rail-title {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-align: center;
  color: rgba(241, 245, 249, 0.98);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.timeline-h-rail-badge--hover {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  padding: 0.14rem 0.45rem;
  margin-bottom: 0.45rem;
  max-width: 100%;
}

/**
 * Overlay: position + left/top/width sættes i timeline.js (fixed). Synlighed kun via .rail-popover-active
 * (ikke :focus-within — ellers “hænger” panelet når musen forlader kortet med fokus på knap).
 */
.timeline-h-rail-hover.timeline-h-rail-popover {
  position: fixed;
  left: 0;
  top: 0;
  width: min(17rem, calc(100vw - 1.25rem));
  max-height: none;
  z-index: 10000;
  margin: 0;
  padding: 0.75rem 0.9rem 0.9rem;
  box-sizing: border-box;
  border-radius: 0.6rem;
  border: 1px solid rgba(162, 228, 24, 0.22);
  background: linear-gradient(
    165deg,
    rgba(22, 14, 38, 0.97) 0%,
    rgba(10, 6, 20, 0.99) 100%
  );
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(162, 228, 24, 0.06);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.985);
  transform-origin: top center;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item--horizontal-rail.rail-popover-active .timeline-h-rail-hover.timeline-h-rail-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (hover: none) {
  .timeline-h-rail-hover.timeline-h-rail-popover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px) scale(0.985);
  }

  .timeline-item--horizontal-rail.rail-popover-active .timeline-h-rail-hover.timeline-h-rail-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-h-rail-hover.timeline-h-rail-popover {
    transition:
      opacity 0.12s ease,
      visibility 0.12s ease;
    transform: none;
  }

  .timeline-item--horizontal-rail.rail-popover-active .timeline-h-rail-hover.timeline-h-rail-popover {
    transform: none;
  }
}

.timeline-h-rail-hover-par {
  margin: 0 0 0.5rem;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  line-height: 1.45;
  font-weight: 400;
}

.timeline-h-rail-hover-par:last-of-type {
  margin-bottom: 0;
}

.timeline-h-se-billede--rail {
  margin-top: 0.5rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.7rem;
  width: 100%;
  justify-content: center;
}

.timeline-item--horizontal .timeline-h-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Rail: undgå fælles rækkehøjde — ellers ser bunden af smalle kort “skåret”/strakt underligt ud */
.timeline-item--horizontal-rail .timeline-h-card--rail {
  height: auto;
  min-height: 6.25rem;
  flex: 0 0 auto;
}

.timeline-h-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.timeline-h-card--flat {
  border-radius: 0.5rem;
  border: 1px solid rgba(162, 228, 24, 0.22);
  background: linear-gradient(165deg, rgba(32, 22, 48, 0.92), rgba(22, 14, 38, 0.96));
  box-shadow: none;
}

.timeline-h-card--flat:hover {
  border-color: rgba(162, 228, 24, 0.38);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.timeline-h-card--flat-featured {
  border-color: rgba(162, 228, 24, 0.42);
  background: linear-gradient(165deg, rgba(40, 28, 58, 0.95), rgba(26, 15, 46, 0.98));
}

.timeline-h-flat-inner {
  padding: 0.65rem 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
}

.timeline-h-flat-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
}

.timeline-h-flat-badge {
  font-size: 0.65rem;
  padding: 0.12rem 0.45rem;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-h-flat-title {
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.timeline-h-flat-sum {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.timeline-h-se-billede--flat {
  margin-top: 0.15rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.7rem;
  align-self: flex-start;
}

.timeline-h-se-billede {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.4rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(162, 228, 24, 0.4);
  background: rgba(36, 24, 56, 0.85);
  color: var(--portal-glow);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.timeline-h-se-billede:hover {
  border-color: rgba(162, 228, 24, 0.65);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.timeline-h-se-billede:focus-visible {
  outline: 2px solid var(--portal);
  outline-offset: 2px;
}

/* Dedikeret horisontal side (horisontal.html) */
.tidslinje-page-horizontal {
  overflow-x: hidden;
}

/* Hoveder under tidslinjen — flex så alle ses; svæv på indre lag */
/* Skal overskrive .head-jar-layer { position:fixed } længere nede i filen */
.head-jar-layer.head-jar-layer--band {
  position: relative !important;
  inset: auto !important;
  z-index: 12;
  width: 100%;
  max-width: 100%;
  min-height: auto;
  margin-top: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  padding: 0.65rem clamp(0.5rem, 2vw, 1.25rem) 1rem;
  border-top: 1px solid rgba(162, 228, 24, 0.12);
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(162, 228, 24, 0.06), transparent 55%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.35rem 0.55rem;
  scrollbar-width: thin;
}

.head-jar-layer--band .head-jar-float {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  opacity: 0.95;
  flex: 0 0 auto;
}

.head-jar-layer--band .head-jar-float__drift {
  animation: head-jar-drift var(--hj-dur, 8.5s) ease-in-out infinite;
  animation-delay: var(--hj-delay, 0s);
}

.head-jar-layer--band .head-jar {
  transform: scale(1.05);
  transform-origin: 50% 60%;
}

@media (prefers-reduced-motion: reduce) {
  .head-jar-layer--band .head-jar-float__drift {
    animation: none;
  }
}

.timeline-shell--horizontal-page {
  max-width: none !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.timeline-horizontal-page-inner {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 6vw, 2.25rem);
  padding-right: clamp(1.25rem, 6vw, 2.25rem);
}

.timeline-horizontal-bleed {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  padding: 0.5rem clamp(1.25rem, 6vw, 2.25rem) max(3rem, min(42vh, 28rem));
  box-sizing: border-box;
  overflow: visible;
}

.timeline-horizontal-bleed::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(162, 228, 24, 0.15) 0%,
    var(--portal-glow) 18%,
    var(--portal) 50%,
    var(--portal-dim) 82%,
    rgba(162, 228, 24, 0.12) 100%
  );
  box-shadow: 0 0 18px var(--line-glow);
}

.timeline-list--horizontal-page.timeline-list--horizontal {
  gap: 0.75rem;
  align-items: flex-start;
}

.timeline-list--horizontal-page {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 2.25rem;
  cursor: grab;
  scroll-padding-inline: clamp(1.25rem, 6vw, 2.25rem);
  overflow-x: auto;
  overflow-y: visible;
  /* Ingen synlig scrollbar — stadig scroll (hjul, træk, touch) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline-list--horizontal-page::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.timeline-list--horizontal-page.timeline-list--dragging {
  cursor: grabbing;
  user-select: none;
}

.timeline-list--horizontal-page:focus-visible {
  outline: none;
}

.timeline-node {
  position: absolute;
  left: 0.5rem;
  top: 0.35rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--portal-glow), var(--portal));
  border: 3px solid var(--void);
  box-shadow: 0 0 0 2px var(--portal), 0 0 16px rgba(162, 228, 24, 0.6);
  z-index: 2;
}

.timeline-node--first {
  width: 1.625rem;
  height: 1.625rem;
  left: 0.4rem;
  top: 0.2rem;
}

/* Kort */
.timeline-card {
  background: linear-gradient(145deg, rgba(36, 24, 56, 0.95), rgba(26, 15, 46, 0.98));
  border: 1px solid rgba(162, 228, 24, 0.25);
  border-radius: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
  border-color: rgba(162, 228, 24, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .timeline-card:hover {
    transform: none;
  }
}

.timeline-card--featured {
  border-color: rgba(162, 228, 24, 0.5);
  box-shadow: 0 8px 40px rgba(162, 228, 24, 0.12);
}

/* Portal-ramme + bølget maske (billede under tekst) */
.portal-frame {
  position: relative;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(162, 228, 24, 0.2), transparent 60%);
}

.portal-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(162, 228, 24, 0.5);
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 40px rgba(162, 228, 24, 0.15);
}

.portal-image-inner {
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 88%,
    96% 92%,
    88% 86%,
    78% 94%,
    65% 88%,
    52% 96%,
    40% 89%,
    28% 95%,
    18% 88%,
    8% 93%,
    0% 87%
  );
  transform-origin: center top;
  will-change: transform;
}

/* Første begivenhed: billede under brødtekst — bølge mod teksten, afrunding i bund */
.portal-frame--first {
  border-radius: 0 0 1rem 1rem;
  background: radial-gradient(ellipse at 50% 100%, rgba(162, 228, 24, 0.22), transparent 55%);
}

.portal-frame--first::before {
  border: 2px solid rgba(162, 228, 24, 0.5);
  border-top: none;
  border-radius: 0 0 1rem 1rem;
}

.portal-frame--first .portal-image-inner {
  clip-path: polygon(
    0% 14%,
    8% 7%,
    18% 13%,
    28% 8%,
    40% 14%,
    52% 6%,
    65% 12%,
    78% 7%,
    88% 13%,
    96% 8%,
    100% 14%,
    100% 100%,
    0% 100%
  );
  transform-origin: center bottom;
}

@media (prefers-reduced-motion: reduce) {
  .portal-image-inner {
    will-change: auto;
  }
}

.portal-image-inner img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Første og sidste: begrænset ramme men HELE billedet synligt (contain — ingen beskæring af personer) */
.portal-image-inner--show-all {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: min(58vh, 560px);
  padding: 0.35rem 0 0.5rem;
  background: radial-gradient(ellipse 80% 80% at 50% 40%, rgba(162, 228, 24, 0.07), transparent 65%);
}

.portal-image-inner--show-all img.timeline-img-compact {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(58vh, 560px);
  object-fit: contain;
  object-position: center center;
  margin-left: auto;
  margin-right: auto;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .portal-image-inner--show-all {
    max-height: min(52vh, 580px);
  }

  .portal-image-inner--show-all img.timeline-img-compact {
    max-height: min(52vh, 580px);
  }
}

/* Afslutning – koncert */
.rock-finale .portal-frame {
  border-radius: 1rem;
}

.rock-finale .portal-frame::before {
  border-radius: 1rem;
  border-bottom: 2px solid rgba(162, 228, 24, 0.5);
}

.rock-finale .portal-image-inner {
  clip-path: inset(0 round 0.75rem);
}

/* Klik for stor visning */
.timeline-img--zoomable {
  cursor: zoom-in;
}

.timeline-img--zoomable:focus-visible {
  outline: 2px solid var(--portal);
  outline-offset: 3px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: min(1.5rem, 4vw);
  background: rgba(10, 6, 18, 0.9);
  cursor: zoom-out;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox:not([hidden]) {
  display: flex;
}

.image-lightbox__wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 2vw, 0.75rem);
  max-width: 100%;
  max-height: 100%;
}

.image-lightbox__nav {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(162, 228, 24, 0.45);
  background: rgba(22, 14, 38, 0.92);
  color: var(--portal-glow);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.image-lightbox__nav:hover {
  border-color: rgba(162, 228, 24, 0.75);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  transform: scale(1.05);
}

.image-lightbox__nav:focus-visible {
  outline: 2px solid var(--portal);
  outline-offset: 3px;
}

.image-lightbox__img {
  max-width: min(96vw, 1400px);
  max-height: min(92vh, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.4rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  cursor: default;
  outline: none;
}

/* —— Velkomst: kosmisk energi i siderne + hero-wow —— */
.cosmic-edge {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(22vw, 200px);
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.cosmic-edge--left {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.38) 0%,
    rgba(168, 85, 247, 0.22) 45%,
    transparent 100%
  );
  box-shadow: inset -12px 0 40px rgba(162, 228, 24, 0.12);
}

.cosmic-edge--left::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: radial-gradient(ellipse at 30% 50%, rgba(162, 228, 24, 0.22), transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(56, 189, 248, 0.18), transparent 50%);
}

.cosmic-edge--right {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(236, 72, 153, 0.28) 0%,
    rgba(124, 58, 237, 0.28) 45%,
    transparent 100%
  );
  box-shadow: inset 12px 0 40px rgba(168, 85, 247, 0.15);
}

.cosmic-edge--right::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: radial-gradient(ellipse at 70% 50%, rgba(192, 132, 252, 0.2), transparent 55%),
    radial-gradient(ellipse at 30% 70%, rgba(162, 228, 24, 0.12), transparent 50%);
}

.timeline-shell {
  position: relative;
}

.timeline-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -1rem;
  bottom: -2rem;
  width: min(92vw, 720px);
  max-width: 100%;
  background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(162, 228, 24, 0.09), transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% 80%, rgba(124, 58, 237, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.timeline-shell > * {
  position: relative;
  z-index: 1;
}

.timeline-shell--horizontal-page::before {
  display: none;
}

@keyframes hero-pop {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Indgang: hele titelblokken én gang — ingen løbende layout-skift */
.body--wow .hero-rm-titles {
  animation: hero-pop 0.55s ease both;
}

.body--wow .hero-rm-desc {
  animation: hero-pop 0.55s ease both;
  animation-delay: 0.08s;
}

@keyframes hero-title-shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes hero-pretitle-glow {
  0%,
  100% {
    text-shadow: 0 0 14px rgba(162, 228, 24, 0.35);
  }
  50% {
    text-shadow: 0 0 26px rgba(162, 228, 24, 0.55), 0 0 40px rgba(168, 85, 247, 0.2);
  }
}

@keyframes hero-tagline-ambient {
  0%,
  100% {
    opacity: 0.96;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .body--wow .hero-rm-titles .hero-pretitle {
    animation: hero-pretitle-glow 4s ease-in-out infinite;
  }

  .body--wow .hero-rm-titles .hero-title-rm {
    animation: hero-title-shimmer 7s ease-in-out infinite;
  }

  .body--wow .hero-rm-titles .hero-rm-tagline {
    animation: hero-tagline-ambient 5s ease-in-out infinite;
  }
}

/* Rick & Morty — portal-titel + “Indblik” bogstav for bogstav */
@keyframes hero-rm-letter-pop {
  0% {
    opacity: 0;
    transform: translateY(0.25em);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-pretitle {
  text-shadow: 0 0 14px rgba(162, 228, 24, 0.35);
}

.hero-title-rm {
  background: linear-gradient(
    105deg,
    #c8f56a 0%,
    #a2e418 22%,
    #6fa312 50%,
    #c084fc 78%,
    #a2e418 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-rm-tagline {
  min-height: 1.4em;
}

.hero-rm-letter {
  display: inline-block;
  opacity: 1;
  transform: none;
}

.hero-rm-tagline .hero-rm-letter:nth-child(3n + 1) {
  color: #a2e418;
  text-shadow: 0 0 20px rgba(162, 228, 24, 0.45);
}

.hero-rm-tagline .hero-rm-letter:nth-child(3n + 2) {
  color: #67e8f9;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.hero-rm-tagline .hero-rm-letter:nth-child(3n) {
  color: #e879f9;
  text-shadow: 0 0 18px rgba(217, 70, 239, 0.45);
}

.body--wow .hero-rm-letter {
  opacity: 0;
  transform: translateY(0.35em);
  animation: hero-rm-letter-pop 0.4s ease forwards;
  animation-delay: calc(0.28s + var(--rm-i, 0) * 0.028s);
}

@media (prefers-reduced-motion: reduce) {
  .body--wow .hero-rm-titles .hero-pretitle,
  .body--wow .hero-rm-titles .hero-title-rm,
  .body--wow .hero-rm-titles .hero-rm-tagline {
    animation: none !important;
  }

  .body--wow .hero-rm-letter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .body--wow .hero-rm-titles,
  .body--wow .hero-rm-desc {
    animation: none !important;
  }

  .welcome-gate__panel--alive,
  .welcome-gate__btn-creature .rm-clef-creature,
  .replay-hit-btn__creature .rm-clef-creature {
    animation: none !important;
  }

  .timeline-card:hover .timeline-card-title-rm {
    color: inherit !important;
  }
}

/* Velkomstgate: foto over titel (ingen SVG-væsen) */
.welcome-gate__creature-wrap--photo {
  max-width: 11rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 2px solid rgba(162, 228, 24, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  background: rgba(26, 15, 46, 0.65);
}

.welcome-gate__welcome-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Tidslinje-kort: titler med let “toxic” hover */
.timeline-card-title-rm {
  display: inline-block;
  transition: color 0.2s ease;
  text-shadow: 0 0 0 transparent;
}

.timeline-card:hover .timeline-card-title-rm {
  color: var(--portal-glow);
}

@media (prefers-reduced-motion: reduce) {
  .cosmic-edge,
  .cosmic-edge::before,
  .timeline-shell::before {
    animation: none !important;
  }
}

/* Fejlbesked hvis intro.js ikke indlæses */
.sb-intro-js-msg {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #fef3c7;
  background: #7f1d1d;
  border-top: 2px solid #fbbf24;
  text-align: center;
}

.sb-intro-js-msg[hidden] {
  display: none !important;
}

/* —— Velkomstgate + musik-hit overlay (let CSS, ingen canvas) —— */
body.welcome-gate-open {
  overflow: hidden;
}

body.welcome-gate-open header.hero-rm,
body.welcome-gate-open .strategy-strip,
body.welcome-gate-open main,
body.welcome-gate-open footer {
  visibility: hidden;
}

body.welcome-gate-open .cosmic-edge,
body.welcome-gate-open .stripe-bg,
body.welcome-gate-open .portal-vignette {
  display: none !important;
}

.welcome-gate {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: #0c0614;
}

.welcome-gate[hidden] {
  display: none !important;
}

.welcome-gate:not([hidden]) {
  display: flex;
}

.welcome-gate__panel {
  max-width: 26rem;
  width: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(162, 228, 24, 0.45);
  background: #1a1030;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.welcome-gate__panel--alive {
  position: relative;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .welcome-gate__panel--alive {
    animation: welcome-panel-breathe 4s ease-in-out infinite;
  }
}

@keyframes welcome-panel-breathe {
  0%,
  100% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(162, 228, 24, 0.45);
  }
  50% {
    box-shadow: 0 8px 36px rgba(162, 228, 24, 0.12), 0 0 24px rgba(168, 85, 247, 0.15), 0 0 0 1px rgba(200, 245, 106, 0.55);
  }
}

.welcome-gate__creature-wrap {
  margin: 0 auto 0.75rem;
  max-width: 9rem;
}

.rm-clef-creature {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.rm-clef-creature__blob {
  fill: rgba(162, 228, 24, 0.28);
  stroke: rgba(88, 28, 135, 0.75);
  stroke-width: 2;
}

.rm-clef-creature__clef {
  stroke: var(--portal-glow);
  filter: drop-shadow(0 0 4px rgba(162, 228, 24, 0.6));
}

.rm-clef-creature__eye {
  fill: #1a0f2e;
  stroke: rgba(200, 245, 106, 0.5);
  stroke-width: 0.8;
}

.rm-clef-creature__pupil {
  fill: #fff;
}

.rm-clef-creature__smile {
  stroke: rgba(88, 28, 135, 0.85);
}

@media (prefers-reduced-motion: no-preference) {
  .welcome-gate__creature-wrap .rm-clef-creature {
    animation: rm-creature-wobble 2.4s ease-in-out infinite;
  }

  .welcome-gate__creature-wrap .rm-clef-creature__blob {
    animation: rm-blob-pulse 2s ease-in-out infinite;
    transform-origin: 62px 118px;
  }
}

@keyframes rm-creature-wobble {
  0%,
  100% {
    transform: rotate(-3deg) scale(1);
  }
  50% {
    transform: rotate(4deg) scale(1.04);
  }
}

@keyframes rm-blob-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.welcome-gate__title {
  margin: 0;
}

.welcome-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 20rem;
  padding: 0.85rem 1.1rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--void);
  background: var(--portal);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(88, 28, 135, 0.45), 0 6px 18px rgba(162, 228, 24, 0.25);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.welcome-gate__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.welcome-gate__btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(88, 28, 135, 0.5);
}

.welcome-gate__btn-creature {
  display: flex;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.75rem;
}

.welcome-gate__btn-creature .rm-clef-creature--btn {
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .welcome-gate__btn-creature .rm-clef-creature {
    animation: rm-btn-creature-bounce 1.6s ease-in-out infinite;
  }
}

@keyframes rm-btn-creature-bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.welcome-gate__btn:focus-visible {
  outline: 2px solid var(--portal-glow);
  outline-offset: 3px;
}

.welcome-gate__skip {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.5rem;
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.75);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.welcome-gate__skip:hover {
  color: #fff;
}

.welcome-gate__err[hidden] {
  display: none !important;
}

body.music-hit-on header.hero-rm,
body.music-hit-on .strategy-strip {
  visibility: hidden;
}

.music-hit-stage {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  contain: layout style;
}

.music-hit-stage[hidden] {
  display: none !important;
}

.music-hit-stage.music-hit-stage--open {
  display: flex !important;
}

.music-hit-stage__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #070212 0%, #140a22 50%, #070212 100%);
  opacity: 0.96;
}

.music-hit-stage__inner {
  position: relative;
  z-index: 1;
  max-width: min(42rem, 96vw);
  text-align: center;
}

.music-hit-stage__controls {
  position: absolute;
  bottom: clamp(0.75rem, 4vw, 1.75rem);
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: auto;
  text-align: center;
  padding: 0 1rem;
}

.music-hit-exit-btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  letter-spacing: 0.04em;
  color: var(--void);
  background: linear-gradient(145deg, rgba(200, 245, 106, 0.95), var(--portal));
  border: 2px solid rgba(88, 28, 135, 0.55);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(162, 228, 24, 0.35);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.music-hit-exit-btn:hover {
  filter: brightness(1.08);
}

.music-hit-exit-btn:focus-visible {
  outline: 2px solid var(--portal-glow);
  outline-offset: 3px;
}

.music-hit-exit-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(203, 213, 225, 0.85);
}

.music-hit-stage__pretitle {
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  color: #d9ff7a;
  -webkit-text-stroke: 1px rgba(88, 28, 135, 0.75);
  text-shadow:
    0 0 12px rgba(162, 228, 24, 0.85),
    2px 2px 0 rgba(88, 28, 135, 0.35);
  transform-origin: 50% 50%;
  animation: music-hit-sway-a 2.4s ease-in-out infinite alternate;
}

.music-hit-stage__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: 1.02;
  color: #e8ff99;
  -webkit-text-stroke: 2px #581c87;
  text-shadow:
    0 0 20px rgba(162, 228, 24, 0.9),
    4px 4px 0 rgba(88, 28, 135, 0.45);
  transform-origin: 50% 50%;
  animation: music-hit-sway-b 2.7s ease-in-out infinite alternate;
}

.music-hit-stage__tagline {
  margin: 0;
  font-size: clamp(1.25rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  color: #c8f56a;
  -webkit-text-stroke: 1px #3d0a5c;
  text-shadow: 0 0 14px rgba(162, 228, 24, 0.85);
  transform-origin: 50% 50%;
  animation: music-hit-sway-c 2.1s ease-in-out infinite alternate;
}

/* Ved reduced motion: meget små bevægelser (stadig synlig “dans”, ikke blink) */
.music-hit-stage--reduced .music-hit-stage__pretitle {
  animation: music-hit-sway-subtle-a 5s ease-in-out infinite alternate;
}
.music-hit-stage--reduced .music-hit-stage__title {
  animation: music-hit-sway-subtle-b 5.4s ease-in-out infinite alternate;
}
.music-hit-stage--reduced .music-hit-stage__tagline {
  animation: music-hit-sway-subtle-c 4.8s ease-in-out infinite alternate;
}

@keyframes music-hit-sway-subtle-a {
  from {
    transform: translateY(0) rotate(-0.35deg);
  }
  to {
    transform: translateY(-0.06em) rotate(0.3deg);
  }
}

@keyframes music-hit-sway-subtle-b {
  from {
    transform: translateX(-0.03em) rotate(-0.25deg);
  }
  to {
    transform: translateX(0.03em) rotate(0.25deg);
  }
}

@keyframes music-hit-sway-subtle-c {
  from {
    transform: translateY(0.02em) rotate(0.2deg);
  }
  to {
    transform: translateY(-0.05em) rotate(-0.2deg);
  }
}

@keyframes music-hit-sway-a {
  from {
    transform: translateY(0) rotate(-1.2deg);
  }
  to {
    transform: translateY(-0.15em) rotate(1deg);
  }
}

@keyframes music-hit-sway-b {
  from {
    transform: translateX(-0.08em) rotate(-0.8deg);
  }
  to {
    transform: translateX(0.08em) rotate(0.8deg);
  }
}

@keyframes music-hit-sway-c {
  from {
    transform: translateY(0.05em) rotate(0.6deg);
  }
  to {
    transform: translateY(-0.12em) rotate(-0.6deg);
  }
}

.replay-hit-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1rem;
  z-index: 108;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  max-width: calc(100vw - 2rem);
  padding: 0.55rem 1rem 0.55rem 0.65rem;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  letter-spacing: 0.04em;
  color: var(--void);
  background: linear-gradient(145deg, var(--portal-glow), var(--portal));
  border: 2px solid rgba(88, 28, 135, 0.65);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(162, 228, 24, 0.35), 0 0 0 1px rgba(162, 228, 24, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.replay-hit-btn__creature {
  display: flex;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.75rem;
}

.replay-hit-btn__creature .rm-clef-creature--replay {
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .replay-hit-btn__creature .rm-clef-creature {
    animation: rm-replay-creature 1.6s ease-in-out infinite;
  }
}

@keyframes rm-replay-creature {
  0%,
  100% {
    transform: scale(1) rotate(-4deg);
    filter: drop-shadow(0 0 6px rgba(162, 228, 24, 0.5));
  }
  50% {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 14px rgba(200, 245, 106, 0.85));
  }
}

.replay-hit-btn__label {
  line-height: 1.15;
  text-align: left;
  max-width: 12rem;
}

.replay-hit-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.replay-hit-btn:focus-visible {
  outline: 2px solid var(--portal-glow);
  outline-offset: 3px;
}

.replay-hit-btn[hidden] {
  display: none !important;
}

/* —— Spor (track) på begivenheder —— */
.track-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid;
  padding: 0.125rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.track-badge--sektionsmoede {
  background: rgba(162, 228, 24, 0.18);
  color: var(--portal-glow);
  border-color: rgba(162, 228, 24, 0.45);
}

.track-badge--ledelse {
  background: rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.45);
}

.track-badge--dsd {
  background: rgba(34, 211, 238, 0.15);
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.4);
}

.track-badge--kontaktpunkt {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.45);
}

.track-badge--graviditetsmappen {
  background: rgba(244, 114, 182, 0.18);
  color: #fbcfe8;
  border-color: rgba(244, 114, 182, 0.4);
}

.track-badge--seb {
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.45);
}

.track-badge--ovrigt {
  background: rgba(100, 116, 139, 0.35);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.35);
}

.timeline-item--hidden {
  display: none !important;
}

/* —— Filter over tidslinjen —— */
.timeline-filter-bar {
  margin-bottom: 2rem;
}

.timeline-filter-bar-inner {
  padding: 1.25rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(162, 228, 24, 0.22);
  background: rgba(26, 15, 46, 0.65);
}

.timeline-filter-heading {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.timeline-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-filter-chip {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(36, 24, 56, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.timeline-filter-chip:hover {
  border-color: rgba(162, 228, 24, 0.45);
}

.timeline-filter-chip.is-active {
  color: var(--void);
  background: var(--portal);
  border-color: var(--portal);
}

.timeline-filter-chip:focus-visible {
  outline: 2px solid var(--portal-glow);
  outline-offset: 2px;
}

/* —— Hero: næste sektionsmøde —— */
.hero-next-meeting {
  margin-top: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #cbd5e1;
  background: rgba(36, 24, 56, 0.5);
  border: 1px solid rgba(162, 228, 24, 0.2);
  border-radius: 0.5rem;
}

.hero-next-meeting[hidden] {
  display: none !important;
}

.hero-next-meeting__label {
  font-weight: 600;
  color: var(--portal-glow);
}

.hero-next-meeting__link {
  color: var(--portal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-next-meeting__link:hover {
  color: var(--portal-glow);
}

.hero-next-meeting__date {
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.875rem;
}

/* —— Strategisk overblik (tre løsninger + DSD) —— */
.strategy-strip {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 20;
}

.strategy-strip-lead {
  text-align: center;
  font-size: 0.9375rem;
  color: #94a3b8;
  max-width: 40rem;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}

.strategy-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .strategy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.strategy-card {
  padding: 1.1rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(162, 228, 24, 0.22);
  background: linear-gradient(155deg, rgba(36, 24, 56, 0.92), rgba(26, 15, 46, 0.98));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.strategy-card:hover {
  border-color: rgba(162, 228, 24, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.strategy-card-title {
  margin: 0 0 0.5rem;
  font-family: Bangers, cursive;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--portal-glow);
}

.strategy-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.strategy-dsd-line {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #94a3b8;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px dashed rgba(34, 211, 238, 0.35);
  background: rgba(8, 47, 73, 0.25);
}

.strategy-dsd-line strong {
  color: #a5f3fc;
  font-weight: 600;
}

/* —— Statiske utilities (erstatter cdn.tailwindcss.com — JIT på main thread gav jank + lydproblemer) —— */
.min-h-screen {
  min-height: 100vh;
}
.bg-void {
  background-color: var(--void);
}
.text-slate-100 {
  color: #f1f5f9;
}
.font-sans {
  font-family: "DM Sans", system-ui, sans-serif;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.font-display {
  font-family: Creepster, cursive;
}
.font-bang {
  font-family: Bangers, cursive;
}
.text-portal {
  color: var(--portal);
}
.text-white {
  color: #fff;
}
.text-slate-300 {
  color: #cbd5e1;
}
.text-slate-500 {
  color: #64748b;
}
.text-purple-200 {
  color: #e9d5ff;
}
.text-portal-glow {
  color: var(--portal-glow);
}
.relative {
  position: relative;
}
.fixed {
  position: fixed;
}
.inset-0 {
  inset: 0;
}
.pointer-events-none {
  pointer-events: none;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.text-center {
  text-align: center;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pt-12 {
  padding-top: 3rem;
}
.pb-16 {
  padding-bottom: 4rem;
}
.pb-24 {
  padding-bottom: 6rem;
}
.p-0 {
  padding: 0;
}
.p-5 {
  padding: 1.25rem;
}
.m-0 {
  margin: 0;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.leading-tight {
  line-height: 1.25;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-\[1\.05\] {
  line-height: 1.05;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.tabular-nums {
  font-variant-numeric: tabular-nums;
}
.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.inline-flex {
  display: inline-flex;
}
.gap-2 {
  gap: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}
.border {
  border-width: 1px;
  border-style: solid;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.w-full {
  width: 100%;
}
.h-auto {
  height: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.opacity-40 {
  opacity: 0.4;
}
.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}
.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}
.list-none {
  list-style-type: none;
}
.space-y-0 > * + * {
  margin-top: 0;
}
.z-\[1\] {
  z-index: 1;
}
.z-\[2\] {
  z-index: 2;
}
.z-\[20\] {
  z-index: 20;
}
.drop-shadow-\[0_0_12px_rgba\(162\,228\,24\,0\.6\)\] {
  filter: drop-shadow(0 0 12px rgba(162, 228, 24, 0.6));
}
.bg-portal\/20 {
  background-color: rgba(162, 228, 24, 0.2);
}
.border-portal\/40 {
  border-color: rgba(162, 228, 24, 0.4);
}
.bg-purple-500\/20 {
  background-color: rgba(168, 85, 247, 0.2);
}
.border-purple-400\/40 {
  border-color: rgba(192, 132, 252, 0.4);
}
.bg-slate-600\/40 {
  background-color: rgba(71, 85, 105, 0.4);
}
.border-slate-500\/40 {
  border-color: rgba(100, 116, 139, 0.4);
}
.last\:mb-0:last-child {
  margin-bottom: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 640px) {
  .sm\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}
@media (min-width: 768px) {
  .md\:pt-16 {
    padding-top: 4rem;
  }
  .md\:pb-20 {
    padding-bottom: 5rem;
  }
  .md\:p-6 {
    padding: 1.5rem;
  }
  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  .md\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }
  .md\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  .md\:mb-4 {
    margin-bottom: 1rem;
  }
}

/* —— Kollega-hoveder i R&M-krukker (dekorativt lag) —— */
.head-jar-layer {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: visible;
  user-select: none;
}

/*
 * Standardvisning (index): skal ligge OVER strategi-kort + tidslinje (z-20),
 * ellers forsvinder krukker visuelt bag .strategy-strip / main.
 * Laget har pointer-events: none; kun .head-jar-float fanger klik.
 */
.head-jar-layer.head-jar-layer--edge {
  z-index: 25;
}

.head-jar-float {
  position: absolute;
  top: var(--hj-t, 10%);
  left: var(--hj-l, 5%);
  opacity: 0.88;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  z-index: 1;
}

/* Svæv kun på indre lag — virker også efter træk (yderre har position:fixed) */
.head-jar-float__drift {
  transform-origin: 50% 60%;
  animation: head-jar-drift var(--hj-dur, 8.5s) ease-in-out infinite;
  animation-delay: var(--hj-delay, 0s);
  will-change: transform;
  width: fit-content;
}

.head-jar-float--dragging {
  z-index: 19;
  cursor: grabbing;
  will-change: left, top;
}

.head-jar-float--dragging .head-jar-float__drift {
  animation-play-state: paused;
}

/* Tydelig svæv; små translateX så de ikke driver ind i midten */
@keyframes head-jar-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(-1.1deg);
  }
  22% {
    transform: translate(3px, -14px) rotate(0.85deg);
  }
  48% {
    transform: translate(-3px, 11px) rotate(-0.65deg);
  }
  72% {
    transform: translate(4px, 7px) rotate(1deg);
  }
}

/* Standardvisning (index): samme idé, lidt mindre vandret udsving end fuld drift */
.head-jar-layer--edge .head-jar-float__drift {
  animation-name: head-jar-drift-edge;
}

@keyframes head-jar-drift-edge {
  0%,
  100% {
    transform: translate(0, 0) rotate(-0.9deg);
  }
  20% {
    transform: translate(2px, -10px) rotate(0.55deg);
  }
  42% {
    transform: translate(-2px, 8px) rotate(-0.5deg);
  }
  64% {
    transform: translate(1px, -5px) rotate(0.45deg);
  }
  82% {
    transform: translate(-1px, 6px) rotate(-0.4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .head-jar-layer--edge .head-jar-float__drift {
    animation: none;
  }
}

.head-jar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 6.25rem;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
  transform: scale(1.5);
  transform-origin: 50% 60%;
}

.head-jar__lid {
  width: 4.25rem;
  height: 0.55rem;
  border-radius: 0.35rem 0.35rem 0 0;
  background: linear-gradient(180deg, #9a9aad 0%, #5a5a6e 55%, #3d3d4a 100%);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.head-jar__vessel {
  position: relative;
  width: 5.25rem;
  height: 6.75rem;
  margin-top: -1px;
  border-radius: 0 0 1rem 1rem;
  border: 3px solid rgba(255, 255, 255, 0.38);
  border-top: 2px solid rgba(200, 230, 255, 0.35);
  background: linear-gradient(
    165deg,
    rgba(220, 245, 255, 0.14) 0%,
    rgba(80, 200, 190, 0.18) 38%,
    rgba(25, 70, 65, 0.55) 100%
  );
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.head-jar__liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44%;
  background: linear-gradient(
    180deg,
    rgba(162, 228, 24, 0.28) 0%,
    rgba(34, 197, 160, 0.42) 55%,
    rgba(18, 90, 85, 0.65) 100%
  );
  opacity: 0.9;
  pointer-events: none;
}

.head-jar__img {
  position: absolute;
  bottom: -4%;
  left: 50%;
  z-index: 1;
  width: 120%;
  max-width: none;
  height: auto;
  max-height: 92%;
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(-50%);
  pointer-events: none;
}

.head-jar__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 42%,
    transparent 58%,
    rgba(255, 255, 255, 0.06) 100%
  );
  pointer-events: none;
}

.head-jar__base {
  width: 5.5rem;
  margin-top: -2px;
  padding: 0.3rem 0.45rem 0.4rem;
  border-radius: 0 0 0.45rem 0.45rem;
  background: linear-gradient(180deg, #5e5e72 0%, #2f2f3d 100%);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.head-jar__name {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--portal);
  text-shadow: 0 0 10px rgba(162, 228, 24, 0.35);
  line-height: 1.15;
}

@media (max-width: 639px) {
  .head-jar-float .head-jar {
    transform: scale(calc(1.5 * 0.82));
    transform-origin: 50% 60%;
  }

  .head-jar-layer {
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .head-jar-float__drift {
    animation: none;
  }
}
