/* Home refresh (Claude, 2026-10-19): more frames, variety and motion.
   Builds on the shared photo + motion layer (lp-tasty-20261014.css), loaded before this file.
   Every moving part stops for reduced motion (html.vf-still / prefers-reduced-motion).
   Roll back: remove this file's <link>, home-tasty-20261019.js and the hm-* sections from index.html. */

/* 1. Reel: two rows of our own frames drift in opposite directions and speed up while you scroll.
      Wide 3:2 and tall 3:4 frames, rounded, with small place/business labels. Continues the hero's ink. */
.hm-reel { position: relative; margin-top: -1px; padding: 22px 0 clamp(40px, 4.5vw, 64px); background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hm-reel-cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; font: 500 11px/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.hm-reel-cap > span { display: inline-flex; align-items: center; gap: 10px; }
.hm-reel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(201,66,62,.6); }
.vf-motion .hm-reel-dot { animation: hm-rec 2s ease-out infinite; }
@keyframes hm-rec { 0% { box-shadow: 0 0 0 0 rgba(201,66,62,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(201,66,62,0); } }
.hm-reel-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.hm-reel-row + .hm-reel-row { margin-top: 12px; }
.hm-reel-track { display: flex; gap: 12px; width: max-content; margin: 0; padding: 0; list-style: none; will-change: transform; }
.hm-reel-track li { position: relative; flex: none; height: clamp(108px, 12.4vw, 190px); border-radius: 14px; overflow: hidden; background: #142130; }
.hm-reel-track li.w { aspect-ratio: 3 / 2; }
.hm-reel-track li.t { aspect-ratio: 3 / 4; }
.hm-reel-track img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.04) brightness(.94); transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.hm-reel-track li:hover img { transform: scale(1.05); filter: saturate(1.08) brightness(1); }
.hm-reel-track li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.hm-reel-tag { position: absolute; left: 10px; bottom: 10px; padding: 5px 8px 5px 18px; border-radius: 999px; background: rgba(10,22,34,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 10px/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.hm-reel-tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--red); }
/* Still mode: no drift, the rows scroll by hand instead. */
.vf-still .hm-reel-row { overflow-x: auto; scrollbar-width: none; }
.vf-still .hm-reel-row::-webkit-scrollbar { display: none; }
.vf-still .hm-reel-track li[data-copy] { display: none; }
.vf-still .hm-reel-track { padding: 0 var(--gut); }

/* 2. "Start with your business" now sits right under the reel. */
.industries { padding-top: clamp(64px, 7vw, 112px); }

/* 3. Results: a red rule draws in above each number as the block comes on screen. */
.results-essentials .rs-case { position: relative; }
.vf-motion .results-essentials [data-lm] .rs-case::before { content: ""; position: absolute; left: 0; top: -14px; width: 48px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.vf-motion .results-essentials [data-lm].lm-in .rs-case::before,
.vf-motion .results-essentials [data-lm].is-in .rs-case::before { transform: scaleX(1); }
.vf-motion .results-essentials [data-lm] .rs-case:nth-child(2)::before { transition-delay: .18s; }
.vf-motion .results-essentials [data-lm] .rs-case:nth-child(3)::before { transition-delay: .36s; }

/* 4. What we film: bento cards rise in one after another. */
.hm-what .sec-head { margin-bottom: clamp(28px, 3vw, 44px); }
.vf-motion .hm-what .lpt-b { opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.vf-motion .hm-what .lpt-bento.is-in .lpt-b { opacity: 1; transform: none; }
.vf-motion .hm-what .lpt-bento.is-in .lpt-b:nth-child(2) { transition-delay: .08s; }
.vf-motion .hm-what .lpt-bento.is-in .lpt-b:nth-child(3) { transition-delay: .16s; }
.vf-motion .hm-what .lpt-bento.is-in .lpt-b:nth-child(4) { transition-delay: .24s; }
.vf-motion .hm-what .lpt-bento.is-in .lpt-b:nth-child(5) { transition-delay: .32s; }
.hm-what .lpt-b:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
/* Slow camera drift on the stills (brand film, drone), like a push-in on set. */
@keyframes hm-drift { from { scale: 1; translate: 0 0; } to { scale: 1.09; translate: -1.5% -1%; } }
.vf-motion .hm-what .lpt-bento.is-in .lpt-b-xl img,
.vf-motion .hm-what .lpt-bento.is-in .lpt-b[href="/video-production/drone/"] img { animation: hm-drift 16s ease-in-out 1s infinite alternate; }

/* 5. Events band: pills pop in once the band is on screen. */
.vf-motion .hm-event .lpt-pills li { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + 200ms); }
.vf-motion .hm-event.is-in .lpt-pills li { opacity: 1; transform: none; }

/* 6. Before you say yes: white cards on paper, like the landings. */
.hm-safe { background: var(--paper); }

/* 7. Who we help: every row now has a photo chip and a hover preview. */
.industries .hm-chip img { display: block; }

/* 8. Final call: three frames beside the headline on wide screens. */
.hm-cta-frames { display: none; }
@media (min-width: 1081px) {
  .hm-cta-frames { display: block; position: absolute; z-index: 3; right: max(calc(var(--gut, 24px) + 24px), calc((100vw - 1320px) / 2 + 24px)); bottom: clamp(84px, 13vh, 140px); width: 330px; height: 250px; margin: 0; padding: 0; list-style: none; pointer-events: none; }
  .hm-cta-frames li { position: absolute; top: 0; width: 150px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; border: 4px solid #fff; background: #1a2430; box-shadow: 0 30px 50px -24px rgba(0,0,0,.75); }
  .hm-cta-frames li img { width: 100%; height: 100%; object-fit: cover; }
  .hm-cta-frames li:nth-child(1) { left: 0; top: 34px; transform: rotate(-8deg); }
  .hm-cta-frames li:nth-child(2) { left: 90px; z-index: 1; transform: rotate(1deg); }
  .hm-cta-frames li:nth-child(3) { right: 0; top: 40px; transform: rotate(8deg); }
  .vf-motion .hm-cta-frames li { transition: transform 1s var(--ease), opacity 1s var(--ease); }
  .vf-motion .hm-cta-frames:not(.is-in) li { opacity: 0; transform: translateY(40px) rotate(0); }
  .vf-motion .hm-cta-frames li:nth-child(2) { transition-delay: .1s; }
  .vf-motion .hm-cta-frames li:nth-child(3) { transition-delay: .2s; }
}

/* Section rhythm on Home: paper and white alternate, dark bands in between. */
.hm-what { background: var(--white, #fff); }
.rc-home-story { background: var(--paper); }
.industries { background: var(--white, #fff); }

@media (max-width: 760px) {
  .hm-reel { padding-top: 16px; }
  .hm-reel-cap .hm-reel-cap-r { display: none; }
  .hm-reel-track { gap: 8px; }
  .hm-reel-row + .hm-reel-row { margin-top: 8px; }
  .hm-reel-track li { border-radius: 10px; }
  .hm-reel-tag { left: 7px; bottom: 7px; padding: 4px 6px 4px 15px; font-size: 9px; }
  .hm-reel-tag::before { left: 6px; }
  /* Compact promise cards on phones: icon beside the text. */
  .hm-safe .lpt-safe-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hm-safe .lpt-safe-grid li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px 16px 16px 14px; border-radius: 16px; }
  .hm-safe .lpt-safe-grid .ico { grid-row: span 2; width: 40px; height: 40px; margin: 0; }
  .hm-safe .lpt-safe-grid h3 { margin: 2px 0 4px; font-size: 17px; }
  .hm-safe .lpt-safe-grid p { font-size: 14.5px; }
}

/* Still mode: everything visible, nothing moves. */
.vf-still .hm-what .lpt-b, .vf-still .hm-event .lpt-pills li, .vf-still .hm-cta-frames li { opacity: 1; transition: none; }
.vf-still .hm-what .lpt-b { transform: none; }
.vf-still .hm-what .lpt-b img { animation: none; }
.vf-still .results-essentials .rs-case::before { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hm-what .lpt-b, .hm-event .lpt-pills li, .hm-cta-frames li, .hm-reel-track img { transition: none; }
  .hm-what .lpt-b img { animation: none; }
}
