/* TAKE Canggu: animated backdrop, readable content veils, scroll transitions.
   Loaded after style.css. The backdrop itself is drawn by space.js. */

/* ---------------- backdrop */
html { background: var(--deep); }
body { background: transparent; }
html, body { overflow-x: clip; }
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

/* ---------------- text is always readable: a soft dark veil behind every block */
.section > .wrap { position: relative; isolation: isolate; }
.section > .wrap::before { content: ""; position: absolute; inset: -36px -20px; z-index: -1; border-radius: 36px; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, rgba(12, 10, 10, .78), rgba(12, 10, 10, .55) 70%, rgba(12, 10, 10, 0)); }
.card, .facts > div, .list li { background: rgba(24, 19, 19, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.band { background: linear-gradient(180deg, transparent, rgba(24, 19, 19, .6) 50%, transparent); }
/* the hero photo fades fully into the page; the facts strip sits below it, never across the edge */
.hero { --hero: url(/assets/img/shop-front.jpg); background: none !important; }
html[data-v="ride"] .hero.only-ride { --hero: url(/assets/img/shop-side.jpg); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero) center 70% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  filter: blur(2px); transform: scale(1.02); }
@media (max-width: 680px) { .hero::before { filter: blur(4px); } }
/* the shop's own signs sit behind the headline: keep the middle dark enough that the words always win */
.hero::after { background: linear-gradient(180deg, rgba(12, 10, 10, .9) 0%, rgba(12, 10, 10, .66) 30%, rgba(12, 10, 10, .6) 55%, rgba(12, 10, 10, .78) 80%, rgba(12, 10, 10, 0) 100%); }
.hero .lead { color: var(--txt); text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.hero h1, .hero .kicker, .hero .script { text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.lift { margin-top: 0; padding-top: 28px; }

/* ---------------- scroll transitions */
.reveal, .reveal-l, .reveal-r { opacity: 0; transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal { transform: translateY(36px); }
.reveal-l { transform: translateX(-70px) rotate(-2deg) scale(.97); }
.reveal-r { transform: translateX(70px) rotate(2deg) scale(.97); }
.reveal.in, .reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }

/* ---------------- progress bar across the top, with the scooter riding along it */
.scroll-rail { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; pointer-events: none; background: rgba(251, 243, 238, .06); }
.sr-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold), var(--green)); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 10px rgba(255, 90, 110, .6); }
.sr-mark { position: absolute; top: 2px; left: 0; width: 24px; height: 24px; color: var(--green); filter: drop-shadow(0 0 6px rgba(255, 90, 110, .8)); }
.sr-mark svg { width: 100%; height: 100%; display: block; }

/* ---------------- ticks list (booking steps) */
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; margin: 24px 0 28px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(255, 90, 110, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

@media (max-width: 680px) { .section > .wrap::before { inset: -24px -8px; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-l, .reveal-r { opacity: 1; transform: none; transition: none; }
}
