/* PopLine golden-ratio line drawing ([popline_golden] shortcode) */
.popline-golden {
  --pg-color: #a47722;
  --pg-bg: #0b0b0a;
  --pg-stroke: 1;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pg-bg);
}

.popline-golden[data-fill="cover"] {
  aspect-ratio: auto;
  height: 100vh;
  height: 100svh;
}

.popline-golden svg {
  display: block;
  width: 100%;
  height: 100%;
}

.popline-golden path {
  fill: none;
  stroke: var(--pg-color);
  stroke-width: var(--pg-stroke);
  stroke-linecap: butt;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.popline-golden.is-playing path {
  animation-name: popline-golden-draw;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.25, 1);
  animation-fill-mode: both;
}

.popline-golden.is-done path {
  stroke-dashoffset: 0;
}

@keyframes popline-golden-draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .popline-golden path {
    animation: none !important;
    stroke-dashoffset: 0;
  }
}
