/**
 * LJLK story section — Van mijzelf naar ons.
 * Scoped under .ljlk-story only.
 */

.ljlk-story {
  --ljlk-story-bg: #120824;
  --ljlk-story-aubergine: #1b0d35;
  --ljlk-story-text: #f8f4ee;
  --ljlk-story-gold: #d9a93b;
  --ljlk-story-gold-soft: #f0d38a;
  --ljlk-story-purple: #7f43d9;
  --ljlk-story-cream: #f7f2ec;
  position: relative;
  isolation: isolate;
  overflow: visible;
  margin: 0;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 0;
  color: var(--ljlk-story-text);
  background: transparent;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: calc(var(--ljlk-header-h, 4.5rem) + 0.5rem);
}

/* Journey continuum: no second opaque sky; cosmos lives on .ljlk-journey__cosmos */
.ljlk-story__sky {
  display: none;
}

.ljlk-story__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  flex: 1 1 auto;
  align-content: center;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ljlk-story__copy {
  max-width: 34rem;
}

.ljlk-story__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--ljlk-font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ljlk-story-gold);
}

.ljlk-story__title {
  margin: 0 0 1.35rem;
  font-family: var(--ljlk-font-serif);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.22;
  color: var(--ljlk-story-text);
  max-width: 16ch;
}

.ljlk-story__text {
  margin: 0 0 1.15rem;
  font-family: var(--ljlk-font-sans);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.7;
  color: rgba(248, 244, 238, 0.9);
}

.ljlk-story__mark {
  color: var(--ljlk-story-gold);
  background: none;
  font-weight: 500;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.ljlk-story.is-lit .ljlk-story__mark.is-glow {
  color: var(--ljlk-story-gold-soft);
  text-shadow: 0 0 18px rgba(217, 169, 59, 0.45);
}

.ljlk-story__quote {
  margin: 1.6rem 0 1.75rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 2px solid var(--ljlk-story-gold);
}

.ljlk-story__quote p {
  margin: 0;
  font-family: var(--ljlk-font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.45;
  color: var(--ljlk-story-gold);
}

.ljlk-story__cta {
  margin-top: 0.25rem;
}

.ljlk-story__cta .ljlk-btn--primary {
  background: var(--ljlk-story-gold);
  color: #1a1030;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  min-height: 2.85rem;
}

.ljlk-story__cta .ljlk-btn--primary:hover {
  background: var(--ljlk-story-gold-soft);
  color: #1a1030;
}

.ljlk-story__cta .ljlk-btn--primary:focus-visible {
  outline: 2px solid var(--ljlk-story-gold-soft);
  outline-offset: 3px;
}

.ljlk-story__visual {
  margin: 0;
  position: relative;
  width: 100%;
  max-width: 40rem;
  justify-self: end;
}

.ljlk-story__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ljlk-story__orbit {
  fill: none;
  stroke: rgba(248, 244, 238, 0.22);
  stroke-width: 1;
}

.ljlk-story__orbit--faint {
  stroke: rgba(248, 244, 238, 0.12);
}

.ljlk-story__dot {
  fill: rgba(248, 244, 238, 0.75);
}

.ljlk-story__dot--gold {
  fill: var(--ljlk-story-gold);
}

.ljlk-story__route {
  opacity: 0.15;
  stroke-dashoffset: 100;
  transition: none;
}

.ljlk-story.is-journey .ljlk-story__route,
.ljlk-story.is-reduced .ljlk-story__route {
  opacity: 0.95;
}

.ljlk-story__node {
  fill: rgba(248, 244, 238, 0.55);
  opacity: 0.25;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.35s ease, fill 0.35s ease;
}

.ljlk-story__node--gold {
  fill: var(--ljlk-story-gold);
}

.ljlk-story__node.is-lit,
.ljlk-story.is-reduced .ljlk-story__node {
  opacity: 1;
}

.ljlk-story__ik-core {
  fill: #d9a93b;
  stroke: #f0d38a;
  stroke-width: 1.5;
}

.ljlk-story__pulse {
  fill: none;
  stroke: rgba(217, 169, 59, 0.55);
  stroke-width: 1.25;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.ljlk-story.is-pulsing .ljlk-story__pulse {
  animation: ljlk-story-pulse 2.8s ease-out infinite;
}

.ljlk-story.is-pulsing .ljlk-story__pulse--delay {
  animation-delay: 0.9s;
}

.ljlk-story__wij-core {
  fill: #8d5ce0;
  stroke: rgba(248, 244, 238, 0.85);
  stroke-width: 1.5;
  opacity: 0.45;
  transition: opacity 0.8s ease, fill 0.8s ease;
}

.ljlk-story__wij-ring {
  fill: none;
  stroke: rgba(196, 168, 245, 0.45);
  stroke-width: 1.1;
  opacity: 0.25;
  transition: opacity 0.8s ease;
}

.ljlk-story__wij-ring--outer {
  stroke: rgba(127, 67, 217, 0.35);
}

.ljlk-story__wij-halo {
  transition: opacity 0.9s ease;
}

.ljlk-story.is-arrived .ljlk-story__wij-core,
.ljlk-story.is-reduced .ljlk-story__wij-core {
  opacity: 1;
  fill: #9b6ef0;
}

.ljlk-story.is-arrived .ljlk-story__wij-ring,
.ljlk-story.is-arrived .ljlk-story__wij-ring--outer,
.ljlk-story.is-reduced .ljlk-story__wij-ring,
.ljlk-story.is-reduced .ljlk-story__wij-ring--outer {
  opacity: 0.85;
}

.ljlk-story.is-arrived .ljlk-story__wij-halo,
.ljlk-story.is-reduced .ljlk-story__wij-halo {
  opacity: 0.75;
}

.ljlk-story__label {
  font-family: var(--ljlk-font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ljlk-story__label--ik {
  fill: #1a1030;
}

.ljlk-story__label--wij {
  fill: #f8f4ee;
  opacity: 0.55;
  transition: opacity 0.8s ease;
}

.ljlk-story.is-arrived .ljlk-story__label--wij,
.ljlk-story.is-reduced .ljlk-story__label--wij {
  opacity: 1;
}

.ljlk-story__traveler {
  opacity: 0;
  pointer-events: none;
}

.ljlk-story__traveler-core {
  fill: #f0d38a;
}

.ljlk-story__traveler-tail {
  fill: rgba(217, 169, 59, 0.55);
}

.ljlk-story__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
  color: var(--ljlk-story-gold);
}

.ljlk-story__hint-text {
  font-family: var(--ljlk-font-serif);
  font-style: italic;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  text-align: center;
  line-height: 1.4;
  max-width: 28rem;
}

.ljlk-story__hint-rule {
  flex: 1 1 1.5rem;
  max-width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 169, 59, 0.55), transparent);
}

.ljlk-story__hint-icon {
  display: inline-flex;
  color: var(--ljlk-story-gold);
  flex-shrink: 0;
}

.ljlk-story__wave {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-bottom: -1px;
  margin-top: auto;
  pointer-events: none;
}

.ljlk-story__wave svg {
  display: block;
  width: 100%;
  height: clamp(4.5rem, 11vw, 8rem);
}

/* Background-only handoff into pillars: wave sits above cream, no content seam */
.ljlk-story__wave-fill {
  fill: var(--ljlk-cream, #f8f4ee);
}

.ljlk-story.is-alive .ljlk-story__layer--deep {
  animation: ljlk-story-drift 48s linear infinite;
  transform-origin: 50% 50%;
}

.ljlk-story.is-alive .ljlk-story__layer--mid {
  animation: ljlk-story-drift-rev 64s linear infinite;
  transform-origin: 50% 50%;
}

.ljlk-journey.is-alive .ljlk-journey__nebula--a,
.ljlk-journey .ljlk-journey__nebula--a {
  animation: ljlk-story-float 18s ease-in-out infinite;
}

.ljlk-journey .ljlk-journey__nebula--b {
  animation: ljlk-story-float 22s ease-in-out infinite reverse;
}

/* Entrance steps */
.ljlk-story [data-ljlk-story-step] {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.ljlk-story.is-visible [data-ljlk-story-step].is-in,
.ljlk-story.is-reduced [data-ljlk-story-step] {
  opacity: 1;
  transform: none;
}

@keyframes ljlk-story-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  70% {
    opacity: 0;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes ljlk-story-drift {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ljlk-story-drift-rev {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes ljlk-story-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 10px, 0); }
}

@keyframes ljlk-story-wave-sway {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

.ljlk-story.is-alive .ljlk-story__wave svg {
  animation: ljlk-story-wave-sway 9s ease-in-out infinite;
}

@media (max-width: 900px) {
  .ljlk-story {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: clamp(3.5rem, 10vw, 5rem);
  }

  .ljlk-story__grid {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 3rem);
  }

  .ljlk-story__copy {
    max-width: none;
  }

  .ljlk-story__title {
    max-width: none;
  }

  .ljlk-story__visual {
    justify-self: stretch;
    max-width: none;
  }

  .ljlk-story__svg {
    max-height: min(72vw, 26rem);
  }

  .ljlk-story__hint {
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }

  .ljlk-story__hint-rule {
    display: none;
  }
}

@media (max-width: 640px) {
  .ljlk-story {
    padding-left: 0;
    padding-right: 0;
  }

  .ljlk-story .ljlk-container {
    width: min(100% - 2.5rem, var(--ljlk-container));
  }

  .ljlk-story__text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .ljlk-story__cta .ljlk-btn--primary {
    width: auto;
    min-height: 3rem;
    padding: 0.95rem 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ljlk-story.is-alive .ljlk-story__layer--deep,
  .ljlk-story.is-alive .ljlk-story__layer--mid,
  .ljlk-journey .ljlk-journey__nebula--a,
  .ljlk-journey .ljlk-journey__nebula--b,
  .ljlk-story.is-alive .ljlk-story__wave svg,
  .ljlk-story.is-pulsing .ljlk-story__pulse {
    animation: none !important;
  }

  .ljlk-journey__cosmos,
  .ljlk-journey__stars,
  .ljlk-journey__embers {
    transform: none !important;
  }

  .ljlk-story [data-ljlk-story-step] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ljlk-story__route {
    opacity: 0.95;
    stroke-dashoffset: 0;
  }

  .ljlk-story__traveler {
    display: none;
  }
}
