/* GENERATED from _dev/home-motion/hm.css by _dev/build-home-motion.py --live. Edit the source, not this file. */
/* Home motion layer (STAGING). Loaded after hsc.css by _dev/build-home-motion.py.
   SEO contract: styling only. No content is added, removed or reworded here.
   Every "hidden" start state is scoped to html.hm-js (set by an inline head
   script) AND has a failsafe animation that forces it visible, so nothing can
   stay hidden if hm.js fails. Transforms/opacity/clip-path only: no layout
   properties animate, so no layout shift (CLS). */

:root { --hm-ease: cubic-bezier(.22,.61,.36,1); }

/* ── failsafe: whatever happens, reveal by 2.5s ─────────────────────── */
@keyframes hmFailsafe { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

/* ── nav: lane-rope rule once scrolled ───────────────────────────────── */
.hm-rope { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 20px, rgba(242,238,235,.55) 20px 34px, transparent 34px 40px); }
.hm-scrolled .hm-rope { opacity: .9; }

/* ── hero reel ───────────────────────────────────────────────────────── */
.hm-js .hero-img.is-carousel img { transition: opacity 1s var(--hm-ease); transform-origin: var(--hm-kbo, 55% 45%); will-change: transform, opacity; z-index: 0; }
.hm-js .hero-img.is-carousel img.is-active { animation: hmKb 12s linear both; z-index: 2; }
/* outgoing photo: stays opaque underneath, zoom frozen where it was */
.hm-js .hero-img.is-carousel img.is-leaving { opacity: 1; z-index: 1; animation: hmKb 12s linear both; animation-play-state: paused; }
.hm-paused .hero-img.is-carousel img.is-active { animation-play-state: paused; }
@keyframes hmKb { from { transform: scale(1.03); } to { transform: scale(1.15) translate3d(-1.4%, -1%, 0); } }


.hm-bars { position: absolute; z-index: 3; left: 0; right: 0; top: 18px; display: flex; gap: 6px; margin: 0 auto; padding: 0 24px; max-width: var(--max-w); list-style: none; }
.hm-bars li { flex: 1; min-width: 0; }
.hm-bar { display: block; width: 100%; padding: 8px 0 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--text); }
.hm-bar-t { position: relative; display: block; height: 3px; background: rgba(242,238,235,.28); overflow: hidden; transition: height .25s var(--hm-ease), box-shadow .25s; }
.hm-bar-f { position: absolute; inset: 0; background: var(--text); transform-origin: 0 50%; transform: scaleX(0); }
.hm-bar.is-done .hm-bar-f { transform: scaleX(1); opacity: .6; }
.hm-bar.is-on .hm-bar-t { height: 5px; box-shadow: 0 0 12px rgba(242,238,235,.55), 0 0 2px rgba(242,238,235,.9); }
.hm-bar-l { display: block; height: 16px; margin-top: 7px; font: 600 10px/16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translateY(-3px); transition: opacity .25s, transform .25s var(--hm-ease); }
.hm-bar.is-on .hm-bar-l { opacity: 1; transform: none; }
@media (min-width: 768px) { .hm-bars { padding: 0 48px; top: 24px; } }
/* reserve room for the bars so a tall headline never runs into their labels (in the first paint: no layout shift) */
.hm-js .hero-content { padding-top: 76px; }
@media (min-width: 768px) { .hm-js .hero-content { padding-top: 92px; } }
@media (min-width: 1280px) { .hm-bars { padding: 0 64px; } }

/* the hero kicker sits on a dark glass strip so it reads on bright photos */
.hm-js .hero-content > .label:first-child { display: inline-block; padding: 8px 12px; background: rgba(10,8,7,.58); border: 1px solid rgba(242,238,235,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* H1: masked line-by-line reveal, one line carries the red highlight bar */
.hm-js .hero-h1 { opacity: 0; animation: hmFailsafe 0s 1.4s forwards; }
.hm-js .hero-h1.hm-split { opacity: 1; animation: none; }
.hm-ln { display: block; overflow: hidden; padding: .02em 0 .05em; }
.hm-ln > span { display: inline-block; transform: translate3d(0,108%,0); animation: hmUp .8s var(--hm-ease) both; }
.hm-ln:nth-child(2) > span { animation-delay: .08s; } .hm-ln:nth-child(3) > span { animation-delay: .16s; } .hm-ln:nth-child(4) > span { animation-delay: .24s; }
@keyframes hmUp { to { transform: translate3d(0,0,0); } }
.hm-ln.hm-mark > span { position: relative; padding: 0 .1em; margin-left: -.1em; z-index: 0; }
.hm-ln.hm-mark > span::before { content: ""; position: absolute; inset: .08em 0 .04em; background: var(--accent); z-index: -1; transform-origin: 0 50%; transform: scaleX(0);
  animation: hmMark .6s var(--hm-ease) .55s both; }
@keyframes hmMark { to { transform: scaleX(1); } }

/* hero supporting copy + buttons rise in after the headline */
.hm-js .hero-content > .label, .hm-js .hero-sub, .hm-js .hero-actions { animation: hmRise .7s var(--hm-ease) both; }
.hm-js .hero-content > .label:first-child { animation-delay: .05s; }
.hm-js .hero-sub { animation-delay: .45s; }
.hm-js .hero-sub + .label { animation-delay: .55s; }
.hm-js .hero-actions { animation-delay: .65s; }
@keyframes hmRise { from { opacity: 0; transform: translate3d(0,14px,0); } to { opacity: 1; transform: none; } }

/* ── ticker band (decorative, aria-hidden, phrases already on the page) ─ */
/* the ticker sits inside the bottom of the hero, in room reserved from the first paint */
.hm-js .hero { padding-bottom: 48px; }
.hm-ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hm-tk-track { display: flex; width: max-content; animation: hmTk 42s linear infinite; }
.hm-ticker:hover .hm-tk-track { animation-play-state: paused; }
@keyframes hmTk { to { transform: translate3d(-50%,0,0); } }
.hm-tk-list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.hm-tk-list li { display: flex; align-items: center; gap: 18px; padding: 17px 0 17px 18px; white-space: nowrap; font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.hm-tk-list li::after { content: ""; width: 34px; height: 2px; flex: none; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px); }

/* ── scroll reveals (below-the-fold only; JS never hides what's on screen) */
.hm-rev { opacity: 0; transform: translate3d(0,28px,0); transition: opacity .7s var(--hm-ease), transform .8s var(--hm-ease); transition-delay: var(--hm-d, 0s); }
.hm-rev.hm-in { opacity: 1; transform: none; }

/* section headings: each <br>-separated line slides up out of a mask.
   .hm-rev / .hm-h2 are only ever added by hm.js, and hm.js reveals everything
   at once for crawlers, reduced motion and browsers without IntersectionObserver. */
.hm-h2 .hm-ln > span { animation: none; transform: translate3d(0,108%,0); transition: transform .8s var(--hm-ease); }
.hm-h2 .hm-ln:nth-child(2) > span { transition-delay: .08s; } .hm-h2 .hm-ln:nth-child(3) > span { transition-delay: .16s; }
.hm-h2.hm-in .hm-ln > span { transform: none; }

/* kicker labels: short red sweep underline */
.hm-kick { position: relative; }
.hm-kick::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 28px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--hm-ease) .2s; }
.hm-kick.hm-in::after { transform: scaleX(1); }

/* path + service cards: stagger, thumbnail drifts, red top edge sweeps on hover */
.path-card .card-thumb img { transition: transform 1.2s var(--hm-ease); }
.path-card.hm-in .card-thumb img { transform: scale(1.04); }
.service-card { position: relative; }
.service-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--hm-ease); }
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }

/* full-bleed photos: slow parallax drift + caption on glass */
.hm-js .feature-img-wrap img { will-change: transform; transform: translate3d(0, var(--hm-py, 0px), 0) scale(1.12); }
.hm-js .feature-img-caption { background: rgba(10,8,7,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* "Three steps to faster": scroll journey rail */
.hm-js .process-steps { position: relative; }
.hm-rail, .hm-rail-fill { position: absolute; left: 22px; width: 2px; top: 0; pointer-events: none; }
.hm-rail { bottom: 0; background: repeating-linear-gradient(180deg, rgba(242,238,235,.22) 0 8px, transparent 8px 14px); }
.hm-rail-fill { height: 0; background: var(--accent); box-shadow: 0 0 14px rgba(255,46,32,.6); transition: height .12s linear; }
.hm-js .process-step { position: relative; z-index: 1; }
.hm-js .process-step .step-num { color: rgba(242,238,235,.25); transition: color .45s, text-shadow .45s; background: var(--bg); }
.hm-js .process-step.hm-lit .step-num { color: var(--accent); text-shadow: 0 0 22px rgba(255,46,32,.45); }
.hm-js .process-step .step-body { opacity: .45; transition: opacity .45s; }
.hm-js .process-step.hm-lit .step-body { opacity: 1; }

/* testimonials: accent edge grows in */
.hm-js .testimonial { border-left-color: transparent; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 3px 0; background-repeat: no-repeat; background-position: 0 0;
  transition: background-size .9s var(--hm-ease) .15s, opacity .7s var(--hm-ease), transform .8s var(--hm-ease); }
.hm-js .testimonial.hm-in { background-size: 3px 100%; }

@media (prefers-reduced-motion: reduce) {
  .hm-js .hero-h1, .hm-js .hero-content > .label, .hm-js .hero-sub, .hm-js .hero-actions { opacity: 1 !important; animation: none !important; }
  .hm-ln > span, .hm-h2 .hm-ln > span { transform: none !important; animation: none !important; transition: none !important; }
  .hm-ln.hm-mark > span::before { transform: none; animation: none; }
  .hm-rev { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hm-js .hero-img.is-carousel img.is-active { animation: none; }
  .hm-tk-track { animation: none; width: auto; }
  .hm-tk-list { flex-wrap: wrap; justify-content: center; }
  .hm-tk-list[aria-hidden] { display: none; }
  .hm-js .feature-img-wrap img { transform: none; }
}

/* ── desktop: a shorter hero so more of the page shows on landing ──────
   Styling only; the H1 text is unchanged. Its four lines pair up into two
   rows (SWIM FASTER. / RACE HARDER.) at ~2/3 the size, and the hero stops at
   ~78% of the viewport so the next section peeks in. Applied in the first
   paint (CSS in <head>), so no layout shift. Crawlers get the live styling. */
@media (min-width: 1024px) {
  .hm-js .hero { min-height: min(78svh, 780px); }
  /* two rows, each sized to its own words: a zero-height full-width flex item
     (order 2) forces the break between line 2 and line 3 */
  .hm-js .hero-h1.hm-split { display: flex; flex-wrap: wrap; column-gap: .24em;
    font-size: clamp(64px, 6.6vw, 108px); margin-bottom: 16px; }
  .hm-js .hero-h1.hm-split::before { content: ""; flex-basis: 100%; height: 0; order: 2; }
  .hm-js .hero-h1.hm-split .hm-ln:nth-child(n+3) { order: 3; }
  .hm-js .hero-content { padding-top: 84px; padding-bottom: 44px; }
  .hm-js .hero-sub { margin-bottom: 24px; }
  .hm-js .hero-actions { flex-direction: row; max-width: none; }
}

/* ── rotating service line under the fixed H1 ──────────────────────────
   Absolutely positioned at its static position (straight after the H1), so
   it takes no space; the space is reserved by .hero-sub's margin-top, set
   here in the first paint. No layout shift when hm.js inserts it. */
.hm-js .hero-sub { margin-top: 92px; }
.hm-svc { position: absolute; display: flex; flex-direction: column; gap: 6px; margin-top: -4px; }
.hm-svc-m { display: block; overflow: hidden; }
.hm-svc-t, .hm-svc-d { display: inline-block; transition: transform .45s var(--hm-ease), opacity .45s; }
.hm-svc-t { font: 800 clamp(24px, 3.2vw, 34px)/1.05 var(--font-disp); text-transform: uppercase; letter-spacing: .02em; color: var(--text);
  padding-left: 16px; position: relative; }
.hm-svc-t::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; background: var(--accent); }
.hm-svc-d { font: 600 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(242,238,235,.78); padding-left: 16px; }
.hm-svc.hm-out .hm-svc-t, .hm-svc.hm-out .hm-svc-d { transform: translate3d(0,-110%,0); opacity: 0; transition-duration: .3s; }
.hm-svc-d { transition-delay: .06s; }
.hm-js .hm-svc { animation: hmRise .7s var(--hm-ease) .4s both; }
@media (min-width: 1024px) { .hm-js .hero-sub { margin-top: 96px; } }
@media (prefers-reduced-motion: reduce) { .hm-svc-t, .hm-svc-d { transition: none; } .hm-js .hm-svc { animation: none; } }

/* ── phone: no story bars (Brian, 2026-09-30: "white bars look bad") ────
   The reel still auto-advances and swipes; the bars and their reserved
   top space are dropped below 768px. CSS-only, so nothing shifts. */
@media (max-width: 767px) {
  .hm-bars { display: none; }
  .hm-js .hero-content { padding-top: 40px; }
}
