/* Motion layer on top of the live LTB stylesheet (style.css is untouched).
   Everything here is additive: remove this file and motion.js and the page is
   the current homepage again. */

/* Hero: dusk-office video behind the existing dark card */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { z-index: 3; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; will-change: transform; }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(31,41,51,.96) 0%, rgba(31,41,51,.86) 42%, rgba(31,41,51,.55) 70%, rgba(31,41,51,.7) 100%); }
.hero-grid { position: relative; z-index: 2; }
.hero-card { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }

/* Headline reveal: JS wraps each word */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; }

/* Practice cards: lift and draw a burgundy rule on hover */
.card { position: relative; transition: background .3s, transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1); }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(31,41,51,.45); z-index: 2; }
.card:hover::before { transform: scaleX(1); }

/* Counsel portrait unmasks as it scrolls in */
.mx .about .imgwrap { clip-path: inset(8% 8% 8% 8%); overflow: hidden; }
.about .imgwrap img { will-change: transform; }

/* Method: a burgundy line draws across the three stages */
.method-grid { position: relative; }
.method-line { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* Reveal start state, only when JS is running and motion is allowed */
.mx .rv { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  .card, .card::before { transition: none; }
  .card:hover { transform: none; }
}

/* Wavy bottom edge on the hero card (house standard; Frank prefers the wave to an angle).
   Filled with the page ivory so the card reads as curving away. Extra bottom padding
   keeps the KPI row clear of the curve at every width. */
section.hero { padding-bottom: calc(56px + clamp(34px, 5vw, 72px)); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(34px, 5vw, 72px); z-index: 4; display: block; pointer-events: none; }
@media (max-width: 900px) { section.hero { padding-bottom: calc(48px + 40px); } .hero-wave { height: 40px; } }
