/* Bhojone — scroll motion (19 Nov 2026). motion.js adds the mv-* classes and writes
   the scroll-linked values; without JS the page is plain and fully readable. */

html.mv-on, html.mv-on body { overflow-x: clip; }   /* the viewport too: not-yet-entered blocks sit shifted sideways and would widen the page */

/* ---------- entrance classes: motion.js puts one on every [data-aos] block below the fold */
[data-mv] { transition: opacity .95s cubic-bezier(.2, .7, .2, 1), transform 1.05s cubic-bezier(.2, .7, .2, 1), filter .95s ease; transition-delay: var(--d, 0s); will-change: transform, opacity; }
[data-mv]:not(.in) { opacity: 0; }
[data-mv].in { will-change: auto; }
[data-mv].mv-left:not(.in)   { transform: translate3d(calc(var(--mv-x, 90px) * -1), 0, 0); }
[data-mv].mv-right:not(.in)  { transform: translate3d(var(--mv-x, 90px), 0, 0); }
[data-mv].mv-up:not(.in)     { transform: translate3d(0, var(--mv-y, 60px), 0); }
[data-mv].mv-down:not(.in)   { transform: translate3d(0, calc(var(--mv-y, 60px) * -1), 0); }
[data-mv].mv-zoom:not(.in)   { transform: scale(.84); }
[data-mv].mv-tilt-l:not(.in) { transform: translate3d(-70px, 30px, 0) rotate(-6deg); }
[data-mv].mv-tilt-r:not(.in) { transform: translate3d(70px, 30px, 0) rotate(6deg); }
[data-mv].mv-flip:not(.in)   { transform: perspective(900px) rotateX(34deg) translate3d(0, 46px, 0); transform-origin: 50% 100%; }
[data-mv].mv-blur:not(.in)   { transform: translate3d(0, 40px, 0) scale(.97); }
@media (max-width: 760px) {
  [data-mv] { --mv-x: 44px; --mv-y: 40px; }
  [data-mv].mv-tilt-l:not(.in) { transform: translate3d(-40px, 20px, 0) rotate(-4deg); }
  [data-mv].mv-tilt-r:not(.in) { transform: translate3d(40px, 20px, 0) rotate(4deg); }
}

/* ---------- scroll-scrubbed media: motion.js writes --sx --sy --sr --ss --so while it scrolls in */
.mv-scrub { translate: var(--sx, 0px) var(--sy, 0px); rotate: var(--sr, 0deg); scale: var(--ss, 1); opacity: var(--so, 1); will-change: translate, rotate, scale, opacity; }
/* depth: things that keep drifting while you scroll */
.mv-plx { translate: var(--px, 0px) var(--py, 0px); will-change: translate; }

/* ---------- a thin progress line at the very top */
.mv-progress { position: fixed; left: 0; top: 0; z-index: 200; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--mv-p, 0)); background: linear-gradient(90deg, #f97316, #fb923c 55%, #fbbf24); pointer-events: none; }

/* ---------- giant word behind a section */
.mv-word-host { position: relative; isolation: isolate; }
.mv-word { position: absolute; z-index: 0; left: 50%; top: 50%; transform: translate(-50%, -50%); translate: var(--wx, 0px) 0; opacity: calc(var(--wo, 0) * .07); font-family: 'Outfit', sans-serif; font-size: clamp(90px, 17vw, 260px); font-weight: 800; letter-spacing: -.04em; line-height: 1; white-space: nowrap; color: #ea580c; pointer-events: none; user-select: none; will-change: translate; }
.mv-word-host.mv-word-host--dark .mv-word { color: #fff; opacity: calc(var(--wo, 0) * .05); }

/* ---------- header: full bar at the top, a floating pill once you scroll (motion.js writes --hp 0…1) */
#navbar.mv-hdr { --hp: 0; left: 50%; transform: translateX(-50%); width: calc(100% - (100% - min(1120px, 100% - 32px)) * var(--hp)); top: calc(12px * var(--hp)); border-radius: calc(999px * var(--hp)); border-bottom-color: transparent; transition: none;
  background: rgba(255, 255, 255, calc(.72 + .2 * var(--hp))); box-shadow: 0 calc(18px * var(--hp)) calc(44px * var(--hp)) calc(-20px * var(--hp)) rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, calc(.06 * var(--hp))); }
#navbar.mv-hdr #nav-container { height: calc(80px - 24px * var(--hp)); transition: none; }
#navbar.mv-hdr #nav-logo { height: calc(40px - 10px * var(--hp)); transition: none; }
#navbar.mv-hdr > .max-w-7xl { padding-left: calc(1rem + .5rem * var(--hp)); padding-right: calc(1rem + .25rem * var(--hp)); }
#navbar.mv-hdr #mobile-menu:not(.hidden) { padding-left: .75rem; padding-right: .75rem; }
@media (max-width: 767px) {
  #navbar.mv-hdr { width: calc(100% - 16px * var(--hp)); top: calc(8px * var(--hp)); border-radius: calc(18px * var(--hp)); }
  #navbar.mv-hdr #nav-container { height: calc(72px - 16px * var(--hp)); }
}

/* ---------- phone frame (real app screenshots) */
.phone { position: relative; width: 100%; aspect-ratio: 1080 / 2400; border-radius: 11.5% / 5.2%; background: #0f172a; padding: 2.6%; box-sizing: border-box; box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 0 0 2px rgba(15, 23, 42, .9); }
.phone::before { content: ''; position: absolute; left: 50%; top: 2.2%; width: 22%; height: 2.2%; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 3; }
.phone::after { content: ''; position: absolute; right: -1.2%; top: 22%; width: 1.2%; height: 9%; border-radius: 0 3px 3px 0; background: #1e293b; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 9.5% / 4.3%; overflow: hidden; background: #f8fafc; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; opacity: 0; transition: opacity .8s ease; }
.phone-screen img.is-on, .phone-screen img:only-child { opacity: 1; }
.phone--tilt { transform: rotate(-6deg); }

/* ---------- Lite reel: without JS these are ordinary blocks one under the other */
.reel { position: relative; }
.reel-pin { position: relative; }
.reel-word, .reel-dots, .reel-hint { display: none; }
.reel-slide { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: clamp(24px, 4vw, 64px); max-width: 1200px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) 1.5rem; }
.reel-slide.flip .reel-copy { order: 2; }
.reel-media { position: relative; display: flex; justify-content: center; }
.reel-media .phone { width: min(300px, 72vw, max(140px, calc((100vh - 190px) * 0.42))); width: min(300px, 72vw, max(140px, calc((100svh - 190px) * 0.42))); }
.reel-media::before { content: ''; position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1; pointer-events: none; background: radial-gradient(circle, rgba(249, 115, 22, .22), rgba(249, 115, 22, 0) 68%); }
.reel-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .4); font-size: 13px; font-weight: 700; color: #0f172a; white-space: nowrap; }
.reel-chip small { display: block; font-size: 11px; font-weight: 600; color: #64748b; }
.reel-chip--a { left: 0; top: 16%; }
.reel-chip--b { right: 0; bottom: 18%; }
.reel-chip .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #fff7ed; color: #ea580c; }
.reel-chip .ic svg { width: 18px; height: 18px; }
/* the printer card: a photo on top, the label under it */
.reel-chip--printer { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 10px 10px; left: -6%; top: auto; bottom: 8%; }
.reel-chip--printer img { display: block; width: 124px; height: 124px; object-fit: contain; border-radius: 10px; background: #fff; }

.reel.is-pinned { height: calc(100vh + (var(--reel-n, 4) - 1) * 75vh); height: calc(100svh + (var(--reel-n, 4) - 1) * 75svh); }
.reel.is-pinned .reel-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; isolation: isolate; }
.reel.is-pinned .reel-slide { position: absolute; inset: 0; max-width: 1200px; margin: 0 auto; padding: 96px 1.5rem 56px; opacity: var(--ro, 0); visibility: hidden; }
.reel.is-pinned .reel-copy { translate: var(--cx, 0) 0; will-change: translate; }
.reel.is-pinned .reel-media { translate: var(--mx, 0) 0; rotate: var(--mr, 0deg); scale: var(--ms, 1); will-change: translate, rotate, scale; }
.reel.is-pinned .reel-chip { translate: var(--fx, 0) var(--fy, 0); will-change: translate; }
.reel.is-pinned .reel-word { display: block; position: absolute; z-index: 0; left: 50%; top: 52%; transform: translate(-50%, -50%); translate: var(--wx, 0) 0; opacity: calc(var(--wo, 1) * .07); font-family: 'Outfit', sans-serif; font-size: clamp(110px, 23vw, 380px); font-weight: 800; letter-spacing: -.05em; line-height: 1; white-space: nowrap; pointer-events: none; user-select: none; color: #ea580c; will-change: translate; }
.reel.is-pinned .reel-dots { display: flex; flex-direction: column; gap: 2px; position: absolute; z-index: 5; right: clamp(12px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.reel-dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: height .3s; }
.reel-dot::before { content: ''; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 10px; height: 10px; border-radius: 999px; background: rgba(15, 23, 42, .18); transition: height .3s, background-color .3s; }
.reel-dot.on { height: 44px; }
.reel-dot.on::before { height: 30px; background: linear-gradient(180deg, #f97316, #fbbf24); }
.reel-dot:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; border-radius: 999px; }
.reel.is-pinned .reel-hint { display: flex; align-items: center; gap: 8px; position: absolute; z-index: 5; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #94a3b8; }
.reel-hint i { width: 6px; height: 6px; border-radius: 50%; background: #f97316; animation: reel-hint 1.4s ease-in-out infinite; }
@keyframes reel-hint { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: .3; } }

@media (max-width: 900px) {
  .reel-slide, .reel.is-pinned .reel-slide { grid-template-columns: 1fr; align-content: start; gap: 14px; text-align: center; }
  .reel-slide.flip .reel-copy { order: 0; }
  .reel-copy p { margin-left: auto; margin-right: auto; }
  .reel-chip { display: none; }
  .reel-chip--printer { display: flex; left: auto; right: 2%; bottom: 14%; padding: 6px 8px 8px; font-size: 11px; border-radius: 12px; }
  .reel-chip--printer small { font-size: 10px; }
  .reel-chip--printer img { width: 74px; height: 74px; }
  /* pinned on a phone: the copy is compacted so the slide fits one screen, the phone may bleed off the bottom */
  .reel.is-pinned .reel-slide { padding: 88px 1rem 0; }
  .reel.is-pinned .reel-copy > span:first-child { margin-bottom: 10px; font-size: 10px; letter-spacing: .08em; padding: 6px 12px; }
  .reel.is-pinned .reel-copy h2 { font-size: clamp(26px, 7.6vw, 34px); line-height: 1.08; margin-bottom: 10px; }
  .reel.is-pinned .reel-copy p { font-size: 15px; line-height: 1.5; margin-bottom: 14px; }
  .reel.is-pinned .reel-copy ul { font-size: 14px; }
  .reel.is-pinned .reel-copy ul li { justify-content: center; text-align: left; }
  .reel.is-pinned .reel-copy .space-y-3 > * + * { margin-top: 6px; }
  .reel.is-pinned .reel-copy .flex-wrap { justify-content: center; margin-bottom: 0; }
  .reel.is-pinned .reel-copy a, .reel.is-pinned .reel-copy button { padding: 10px 18px; font-size: 14px; }
  .reel.is-pinned .reel-tags, .reel.is-pinned .reel-hint { display: none; }
  .reel-media .phone { width: min(190px, 46vw, max(110px, calc((100vh - 400px) * 0.5))); width: min(190px, 46vw, max(110px, calc((100svh - 400px) * 0.5))); }
  .reel.is-pinned .reel-dots { right: 6px; }
  .reel.is-pinned { height: calc(100vh + (var(--reel-n, 4) - 1) * 60vh); height: calc(100svh + (var(--reel-n, 4) - 1) * 60svh); }
}
@media (max-width: 900px) and (max-height: 700px) {
  .reel.is-pinned .reel-copy h2 { font-size: clamp(22px, 6.4vw, 28px); }
  .reel.is-pinned .reel-copy p { font-size: 14px; margin-bottom: 10px; }
  .reel-media .phone { width: min(150px, 36vw, max(100px, calc((100vh - 380px) * 0.6))); width: min(150px, 36vw, max(100px, calc((100svh - 380px) * 0.6))); }
}

@media (prefers-reduced-motion: reduce) {
  [data-mv] { transition-duration: .4s; }
  .reel-hint i, .animate-ping, .animate-\[bounce_4s_infinite\] { animation: none !important; }   /* the splash logo keeps its intro */
  .mv-scrub { rotate: 0deg; }
}
