/* Lyndon: section motion (tides, drift, wayfinder, progress). Nov 2026. */
.lc-sec { position: relative; }
.lc-tide {
  position: absolute; top: -1px; z-index: 2; pointer-events: none;
  transform-origin: 50% 0; transform: scaleY(1); will-change: transform;
}
.lc-shade {
  position: absolute; top: 0; bottom: 0; z-index: 3; pointer-events: none;
  background: #050914; opacity: 0; will-change: opacity;
}
.lc-drift { will-change: translate; }

/* Headings settle out of a soft blur as they arrive */
.x-js .x-head.x-reveal h2, .x-js .x-head.x-reveal h1 {
  filter: blur(8px); transition: filter 1000ms cubic-bezier(.2,.8,.2,1) 80ms;
}
.x-js .x-head.x-reveal.is-in h2, .x-js .x-head.x-reveal.is-in h1 { filter: none; }
.x-js .x-head.x-reveal .x-lede {
  opacity: 0; translate: 0 12px;
  transition: opacity 800ms cubic-bezier(.2,.8,.2,1) 220ms, translate 900ms cubic-bezier(.2,.8,.2,1) 220ms;
}
.x-js .x-head.x-reveal.is-in .x-lede { opacity: 1; translate: none; }

/* Desktop wayfinder rail */
.lc-rail {
  position: fixed; right: 12px; top: 50%; z-index: 45; display: none;
  translate: 12px -50%; opacity: 0; visibility: hidden;
  transition: opacity 400ms ease, translate 500ms cubic-bezier(.2,.8,.2,1), visibility 0s 500ms, color 500ms ease;
  color: #0b1229; --lc-accent: #2e4a3d;
}
.lc-rail.is-dark { color: #f8f7f4; --lc-accent: #9fd9c2; }
.lc-rail.is-on { opacity: 1; visibility: visible; translate: 0 -50%; transition: opacity 400ms ease, translate 500ms cubic-bezier(.2,.8,.2,1), visibility 0s, color 500ms ease; }
.lc-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; justify-items: end; }
.lc-rail a {
  display: flex; align-items: center; gap: 12px; padding: 6px 0 6px 12px; min-height: 28px;
  color: inherit; text-decoration: none; font: 600 12px/1 "Nunito Sans", system-ui, sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
}
.lc-rail span {
  opacity: 0; translate: 6px 0; white-space: nowrap;
  transition: opacity 250ms ease, translate 300ms cubic-bezier(.2,.8,.2,1);
}
.lc-rail i {
  display: block; width: 3px; height: 14px; border-radius: 3px; background: currentColor; opacity: .3;
  transition: height 450ms cubic-bezier(.2,.8,.2,1), opacity 300ms ease, background-color 400ms ease;
}
.lc-rail a[aria-current] i { height: 34px; opacity: 1; background: var(--lc-accent); }
.lc-rail:hover span, .lc-rail a:focus-visible span { opacity: .75; translate: 0 0; }
.lc-rail:hover a[aria-current] span { opacity: 1; }
.lc-rail a:hover i { opacity: .7; }
.lc-rail a:focus-visible { outline: 2px solid var(--lc-accent); outline-offset: 2px; border-radius: 6px; }
@media (min-width: 1100px) { .lc-rail { display: block; } }

/* Phone: a hairline of reading progress along the top of the tab bar */
.lc-progress {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: #2e4a3d; transform-origin: 0 50%; transform: scaleX(0);
}

@media (prefers-reduced-motion: reduce) {
  .lc-tide, .lc-shade { display: none; }
  .lc-drift { translate: none !important; }
  .x-js .x-head.x-reveal h2, .x-js .x-head.x-reveal h1 { filter: none; transition: none; }
  .x-js .x-head.x-reveal .x-lede { opacity: 1; translate: none; transition: none; }
  .lc-rail, .lc-rail i, .lc-rail span { transition: none; }
}
