/* =========================================================
   TunaTan — guiding golden fiber
   Lenis reset + responsive SVG line layer
   ========================================================= */

/* ---------- Lenis ---------- */
html.lenis,
html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
.lenis.lenis-stopped{overflow:hidden}
.lenis.lenis-smooth iframe{pointer-events:none}

/* ---------- line layer ---------- */
.guiding-line{
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:1px;
  z-index:5;
  pointer-events:none;
  overflow:visible;
}

.gl-route{
  stroke:rgba(185,110,27,.17);
  stroke-width:1;
  stroke-linecap:round;
  stroke-dasharray:2 10;
}

.gl-glow{
  stroke:#e9a33b;
  stroke-width:5;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.14;
}

.gl-fiber{
  stroke:url(#glFiber);
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}

.gl-trail{will-change:opacity}
.gl-tip{will-change:transform}
.gl-tip-art{transform-origin:0 0}

.gl-tip-halo{
  transform-box:fill-box;
  transform-origin:center;
  animation:glHalo 2.8s ease-in-out infinite;
}

.gl-tip-star{
  transform-box:fill-box;
  transform-origin:center;
  animation:glSpin 7s linear infinite;
}

.gl-tip-core{filter:drop-shadow(0 0 3px rgba(255,243,214,.95))}

@keyframes glSpin{to{transform:rotate(360deg)}}
@keyframes glHalo{
  0%,100%{opacity:.55;transform:scale(.82)}
  50%{opacity:1;transform:scale(1.12)}
}

/* ---------- responsive anchor markers ---------- */
.gl-anchor{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
  z-index:-1;
}
.gl-anchor[data-side="left"]{left:clamp(12px,2.2vw,36px)}
.gl-anchor[data-side="right"]{right:clamp(12px,2.2vw,36px)}
.gl-anchor[data-pos="top"]{top:calc(var(--section) * .68)}
.gl-anchor[data-pos="bottom"]{top:auto;bottom:calc(var(--section) * .68)}
.gl-anchor[data-pos="start"]{top:calc(var(--header-h) + 14px)}
.gl-anchor[data-pos="hero-start"]{left:clamp(12px,2.2vw,36px);bottom:24px}
.gl-anchor[data-pos="end"]{bottom:244px}

/* ---------- tablet / mobile rules ---------- */
@media (max-width:1024px){
  .gl-tip-art{transform:scale(.8)}
  .gl-anchor[data-pos="top"]{top:calc(var(--section) * .6)}
  .gl-anchor[data-pos="bottom"]{top:auto;bottom:calc(var(--section) * .6)}
}

@media (max-width:640px){
  .gl-route{opacity:.7}
  .gl-glow{stroke-width:6;opacity:.14}
  .gl-tip-art{transform:scale(.6)}
  .gl-anchor[data-side="left"]{left:11px}
  .gl-anchor[data-side="right"]{right:11px}
  .gl-anchor[data-pos="top"]{top:calc(var(--section) * .55)}
  .gl-anchor[data-pos="bottom"]{top:auto;bottom:calc(var(--section) * .55)}
  .gl-anchor[data-pos="hero-start"]{left:11px;bottom:20px}
  .gl-anchor[data-pos="end"]{bottom:236px}
}

@media (prefers-reduced-motion: reduce){
  .gl-tip-halo,
  .gl-tip-star{animation:none}
}
