Home: seedling-in-hand video band under the steps (Marty 2026-11-18: stock clip, muted loop, poster, reduced-motion = poster only); video served with byte ranges; assets ?v=20261118a

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-18 06:31:21 -06:00
parent ddb1d6f1c5
commit 056e169814
25 changed files with 113 additions and 72 deletions
+5
View File
@@ -18,3 +18,8 @@
// PolHunter embed (the network pattern): the find code hides in one of the three steps. The mission is added in polhunter.com/admin at go-live.
const ph = document.createElement('script'); ph.async = true; ph.src = 'https://polhunter.com/embed.js'; ph.setAttribute('data-slots', '3'); ph.setAttribute('data-selector', '#how .step'); document.body.appendChild(ph);
})();
// seedling band: honour reduced motion (poster only)
(function () { var v = document.getElementById('growVid'); if (!v) return;
try { if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) { v.removeAttribute('autoplay'); v.pause(); return; } } catch (e) {}
var go = function () { var r = v.play(); if (r && r.catch) r.catch(function () {}); };
if (v.readyState >= 2) go(); else v.addEventListener('canplay', go, { once: true }); })();
+11
View File
@@ -182,3 +182,14 @@ footer.foot .here{font-weight:700;color:var(--leafInk)}
@media (max-width:560px){.bed{grid-template-columns:1fr}.steps{grid-template-columns:1fr}.step{border-right:0;border-bottom:2px dashed var(--line)}.step:last-child{border-bottom:0}nav.links{gap:4px 12px;font-size:14px}}
@media (prefers-reduced-motion:no-preference){.bar>span{transition:width .6s ease}}
@media (prefers-reduced-motion:reduce){.toast{transition:none}}
/* seedling video band (home): fixed dark look in both themes, like the light .plate */
.grow{position:relative;margin-block:8px 26px;border:2px solid var(--ink);border-radius:18px;overflow:hidden;aspect-ratio:2/1;max-height:600px;display:flex;align-items:center;justify-content:flex-end;background:#0C1712}
.grow>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:30% 25%}
.grow::before{content:"";position:absolute;inset:0;background:linear-gradient(270deg,rgba(12,23,18,.92) 0%,rgba(12,23,18,.6) 45%,rgba(12,23,18,0) 70%);z-index:1}
.grow .copy{position:relative;z-index:2;max-width:460px;padding:30px clamp(18px,4vw,44px);min-width:0;color:#EEF6EA}
.grow .kicker{color:#7FD8A0}
.grow h2{margin:10px 0 12px;color:#fff;text-wrap:balance}
.grow p{margin:0 0 18px;color:#D3E4D7}
.grow .btn.primary{background:#F2620F;color:#fff;border-color:#F2620F}
@media (max-width:900px){.grow{aspect-ratio:auto;min-height:420px}}
@media (max-width:700px){.grow{display:block;min-height:0}.grow>video{position:relative;display:block;aspect-ratio:16/9;height:auto}.grow::before{display:none}.grow .copy{max-width:none;padding:20px 18px 22px}}