/* SurgeLab "alive" layer, shared by the subpages: the thread, magnetic buttons, assembling cards.
   Pair with /assets/js/pages/alive.js (see its header for the markup hooks). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
main { position: relative; }

/* the thread: one orange line that runs down the whole page and lights each section as it arrives */
.thread { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; overflow: visible; }
.th-track { fill: none; stroke: #ddd5c9; stroke-width: 1.5; stroke-dasharray: 1.5 7; stroke-linecap: round; }
.th-ink { fill: none; stroke: var(--or); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.th-node .sp { fill: var(--bg); stroke: #cfc6ba; stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.th-node.on .sp { fill: var(--or); stroke: var(--or); }
.th-node .tk { fill: none; stroke: var(--or); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.2,.8,.2,1); }
.th-node.on .tk { stroke-dashoffset: 0; }
.th-node .end { fill: var(--or); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s .45s cubic-bezier(.34,1.56,.64,1); }
.th-node.on .end { transform: scale(1); }
.th-head { transition: opacity .3s; }
.th-head .halo { fill: var(--or); opacity: .16; transform-box: fill-box; transform-origin: center; animation: th-breathe 2.6s ease-in-out infinite; }
.th-head .dot { fill: #fff; stroke: var(--or); stroke-width: 3; }
@keyframes th-breathe { 50% { transform: scale(1.6); opacity: .05; } }
.eyebrow { transition: color .6s; }
.eyebrow.th-lit { color: var(--or-text); }
.th-land { transition: box-shadow .8s cubic-bezier(.2,.8,.2,1); }
.th-land.th-landed { box-shadow: 0 0 0 6px rgba(245,80,43,.12), 0 18px 50px rgba(245,80,43,.14); }

/* gsap owns the transform on these, so CSS must not tween it too */
.mag { transition-property: background, background-color, box-shadow, border-color, color, opacity !important; will-change: transform; }
.assembling { transition: none !important; }
.split-line, .split-word { overflow: clip; padding-bottom: .04em; }

@media (prefers-reduced-motion: reduce) {
  .th-head { display: none; }
  .th-node .tk, .th-node .end, .th-node .sp, .eyebrow, .th-land { transition: none; }
  .th-head .halo { animation: none; }
}
.js main .ph .eyebrow::before { display: none; }

/* subpage header and footer: mark the page you are on */
.top nav .lnk[aria-current="page"] { color: var(--ink); font-weight: 500; position: relative; }
.top nav .lnk[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--or); }
.m-menu a[aria-current="page"] { background: var(--or-soft); color: var(--or-text); }
.site-footer nav a[aria-current="page"] { color: var(--or-text); }

/* phones: no thread, no lit eyebrows, no landing glow. The page reads calmly; motion stays a soft rise. */
@media (max-width: 900px) {
  .thread { display: none !important; }
  .eyebrow.th-lit { color: var(--mute); }
  .th-land.th-landed { box-shadow: none; }
}
