/* PAGE-LEVEL SCROLL, home page only. Kavalsia Inc. / Siavash Sadighi, 2026-10-01.

   NO SECTION SNAP, 2026-10-01. Proximity snap was tried here and TRAPPED the
   mouse wheel at 1440: the hero runs 1168px in a 900px window, so once its
   bottom edge passes the window (scrollY 348) nothing covers the ~790px up to
   the next section's snap line, and every 100px notch landed in that gap and
   was pulled back to 348. Measured with the wheel: snap on, 24 notches end at
   348; snap off, the same input reaches 2400. Any page with sections taller
   than the window has that gap, so the fix is no snap, not a tuned one.
   Anchors still land on site.css's scroll-margin-top (mast + --lp-m4). */

/* THE SECTION RAIL. A column of short ticks on the right edge, one per
   section; the one under the reading line widens and takes the accent. The
   name shows beside a tick on hover or focus. It stays off the hero and only
   arrives once the reader is into the page. Built by lp-page.js, which does
   nothing below the desktop query, so phones never carry it. */
.lp-rail { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .lp-rail {
    position: fixed; right: 14px; top: 50%; z-index: 4;
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
    transform: translate(6px, -50%); opacity: 0; visibility: hidden;
    transition: opacity .36s cubic-bezier(0.16, 1, 0.3, 1), transform .36s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear .36s;
  }
  .lp-rail.is-on { opacity: 1; visibility: visible; transform: translate(0, -50%);
    transition-delay: 0s; }
  .lp-rail a {
    position: relative; display: flex; align-items: center; justify-content: flex-end;
    inline-size: 34px; block-size: 18px; text-decoration: none; outline: none;
  }
  .lp-rail a::after {
    content: ""; display: block; inline-size: 12px; block-size: 2px; border-radius: 1px;
    background: var(--lp-ink-2, #A9B0BC); opacity: .38;
    transition: inline-size .32s cubic-bezier(0.16, 1, 0.3, 1), opacity .2s ease-out, background-color .2s ease-out;
  }
  .lp-rail a:hover::after { opacity: .8; }
  .lp-rail a[aria-current="true"]::after { inline-size: 26px; opacity: 1; background: var(--lp-accent, #F2A93B); }
  .lp-rail a:focus-visible::after { opacity: 1; box-shadow: 0 0 0 3px var(--lp-accent-42, rgba(242,169,59,.5)); }
  .lp-rail span {
    position: absolute; right: 40px; top: 50%; white-space: nowrap;
    font: 600 12px/1 var(--lp-face, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase;
    color: var(--lp-ink, #F4F6F9); padding: 7px 10px; border-radius: 6px;
    background: color-mix(in srgb, var(--lp-surface, #14171E) 88%, transparent);
    opacity: 0; transform: translate(6px, -50%); pointer-events: none;
    transition: opacity .2s ease-out, transform .28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .lp-rail a:hover span,
  .lp-rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .lp-rail, .lp-rail a::after, .lp-rail span { transition: none; }
}


/* Hero h1 on the type table (proof #512): 34px at 360, 43.07 at 768, 49.92
   at 1280. One step more specific than lp-made.css, which loads after this. */
#main .lp-hero .lp-hero-in { --lp-hero-h1: clamp(2.125rem, min(1.18rem + 3.15vw, 2.049rem + 1.338vw), 3.3rem); }

/* Reduced motion: nothing on the page moves or eases. The boot curtain keeps
   its own 2.4s bail so a stuck curtain still leaves the tree. */
@media (prefers-reduced-motion: reduce) {
  *:not(#lp-boot, #lp-boot *),
  *:not(#lp-boot, #lp-boot *)::before,
  *:not(#lp-boot, #lp-boot *)::after {
    animation: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* 1024-1199: the four benefits sat under the lead card. Two by two keeps
   the row inside the copy column. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  #main .lp-hero .lp-hero-in > .lp-hero-gets { flex-wrap: wrap; max-inline-size: 22em; row-gap: 10px; }
}
