/* /_p/home-chap.css — "Jump to" bar on the front page (2026-11-29, owner: "make the homepage better for the user,
   use animation"). The page is ~20,000 px tall on a computer and ~34,000 px on a phone: this bar slides in under the menu
   after the hero, a lime marker slides to the section you are reading, a thin line fills as you go, and a tap glides you to
   a section (its heading gives a small hop when you land). Markup: build.py HOME_CHAP; script: home-chap.js. */
.hc-chap { --hc-top: 66px; --hc-ink: #07130b; --hc-lime: #b9f24a;
  position: fixed; top: var(--hc-top); left: 0; right: 0; z-index: 90;
  background: rgba(251, 250, 243, .94); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  border-bottom: 2px solid var(--hc-ink); box-shadow: 0 10px 24px -18px rgba(7, 19, 11, .6);
  transform: translateY(-115%); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), opacity .3s, visibility 0s .45s; }
.hc-chap.is-on { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), opacity .3s, visibility 0s; }
.hc-chap-in { display: flex; align-items: center; gap: 12px; max-width: 1340px; margin: 0 auto; padding: 0 20px; height: 52px; }
.hc-chap-lbl { flex: none; display: inline-flex; align-items: center; gap: 7px; font: 800 11.5px/1 'DM Sans', system-ui, sans-serif; letter-spacing: .14em;
  text-transform: uppercase; color: #4c5b51; }
.hc-chap-lbl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hc-chap-track { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 4px; scroll-behavior: smooth;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
          mask: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
.hc-chap-track::-webkit-scrollbar { display: none; }
.hc-chap-track a { position: relative; z-index: 1; flex: none; padding: 8px 13px; border-radius: 999px; color: #2c3b31 !important; text-decoration: none !important;
  font: 700 14px/1 'Outfit', system-ui, sans-serif; white-space: nowrap; transition: color .25s, transform .2s; }
.hc-chap-track a:hover { color: var(--hc-ink) !important; transform: translateY(-1px); }
.hc-chap-track a.is-cur { color: var(--hc-ink) !important; font-weight: 900; }
.hc-chap-track a:focus-visible { outline: 3px solid #0fa24a; outline-offset: 1px; }
/* the marker that slides from section to section (springy) */
.hc-chap-blob { position: absolute; z-index: 0; top: 6px; left: 0; height: calc(100% - 12px); width: 0; border: 2px solid var(--hc-ink); border-radius: 999px;
  background: var(--hc-lime); box-shadow: 2px 2px 0 var(--hc-ink); opacity: 0;
  transition: transform .5s cubic-bezier(.3, 1.45, .45, 1), width .5s cubic-bezier(.3, 1.45, .45, 1), opacity .25s; }
.hc-chap-blob.is-on { opacity: 1; }
/* reading progress along the bottom edge */
.hc-chap-prog { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; pointer-events: none; }
.hc-chap-prog i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--hc-p, 0));
  background: linear-gradient(90deg, #0fa24a, var(--hc-lime)); }
/* landing: the section heading hops once */
@keyframes hc-hop { 0% { transform: translateY(0); } 35% { transform: translateY(-8px) rotate(-.6deg); } 65% { transform: translateY(2px); } 100% { transform: none; } }
.hc-arrive { animation: hc-hop .7s cubic-bezier(.3, 1.4, .5, 1) both; }
html.hc-has-chap { scroll-padding-top: 132px; }

/* never over the open phone menu (also before the script reacts) */
body:has(#mobile-menu.is-open) .hc-chap { transform: translateY(-115%) !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

@media (max-width: 860px) {
  .hc-chap { --hc-top: 64px; }
  .hc-chap-in { height: 48px; padding: 0 0 0 8px; }
  .hc-chap-lbl span { display: none; }       /* phones: just the icon */
  .hc-chap-track a { padding: 8px 12px; font-size: 14.5px; }
  html.hc-has-chap { scroll-padding-top: 122px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-chap, .hc-chap.is-on, .hc-chap-blob, .hc-chap-track a { transition: none; }
  .hc-chap-track { scroll-behavior: auto; }
  .hc-arrive { animation: none; }
}
@media print { .hc-chap { display: none !important; } }

/* ---- "Watch the drive in" video: play button on the small picture + a pop-up player (home-chap.js) ---- */
.hc-vid { position: relative; border-radius: 16px; }
.hc-vid video { display: block; }
.hc-vid-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, rgba(7, 19, 11, 0) 45%, rgba(7, 19, 11, .55)); -webkit-tap-highlight-color: transparent; }
.hc-vid-ic { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid #07130b; border-radius: 50%; background: #b9f24a;
  box-shadow: 3px 3px 0 #07130b; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.hc-vid-ic svg { width: 26px; height: 26px; margin-left: 3px; fill: #07130b; }
.hc-vid-ic::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #b9f24a; animation: hc-ring 2s ease-out infinite; }
@keyframes hc-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
.hc-vid-play:hover .hc-vid-ic, .hc-vid-play:focus-visible .hc-vid-ic { transform: scale(1.1); }
.hc-vid-play:focus-visible { outline: 3px solid #0fa24a; outline-offset: 3px; }
.hc-vid-len { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 999px; background: rgba(7, 19, 11, .8); color: #fff;
  font: 700 12px/1.2 'DM Sans', system-ui, sans-serif; }
.hc-vid-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin: 4px 0 10px; padding: 0 18px 0 14px; border: 2px solid #07130b; border-radius: 999px;
  background: #b9f24a; color: #07130b; font: 800 15.5px/1 'Outfit', system-ui, sans-serif; cursor: pointer; box-shadow: 3px 3px 0 #07130b; transition: transform .15s, box-shadow .15s; }
.hc-vid-pill:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #07130b; }
.hc-vid-pill:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #07130b; }
.hc-vid-pill svg { width: 18px; height: 18px; fill: currentColor; }
.hc-vid-pill small { font: 600 13px/1 'DM Sans', system-ui, sans-serif; opacity: .75; }
.hc-vp { width: min(92vw, calc(84dvh * 9 / 16)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.hc-vp::backdrop { background: rgba(7, 19, 11, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hc-vp[open] { animation: hc-pop .35s cubic-bezier(.3, 1.35, .5, 1) both; }
@keyframes hc-pop { from { transform: scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
.hc-vp video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border: 2px solid #07130b; border-radius: 20px; background: #000;
  box-shadow: 6px 6px 0 #b9f24a; object-fit: cover; }
.hc-vp-cap { margin: 12px 4px 0; text-align: center; color: #fff; font: 600 14px/1.35 'DM Sans', system-ui, sans-serif; }
.hc-vp-x { position: absolute; top: -14px; right: -10px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 2px solid #07130b; border-radius: 50%;
  background: #fff; box-shadow: 3px 3px 0 #07130b; cursor: pointer; }
.hc-vp-x svg { width: 20px; height: 20px; fill: none; stroke: #07130b; stroke-width: 2.6; stroke-linecap: round; }
@media (max-width: 860px) { .hc-vid-ic { width: 48px; height: 48px; } .hc-vid-ic svg { width: 22px; height: 22px; } }
@media (prefers-reduced-motion: reduce) { .hc-vid-ic::after, .hc-vp[open] { animation: none; } .hc-vid-ic, .hc-vid-pill { transition: none; } }
