/* Scalus.io motion and photo layer (1 Dec 2026). Loaded after each page's own styles. Additive only:
   photos with cinematic reveals and parallax, a softer blur in on every reveal, card tilt with a glare,
   magnetic buttons, a cursor glow. Desktop keeps no frosted blur (house rule at the end). */
:root { --m-ease: cubic-bezier(.16, 1, .3, 1); --m-spring: cubic-bezier(.2, .9, .25, 1.12); }

/* gradient headings keep their descenders (the clip cut the tail of y and g) */
.grad { display: inline-block; padding-bottom: .12em; margin-bottom: -.12em; }

/* every reveal arrives softer: a little blur and lift, a longer settle */
.reveal { filter: blur(8px); }
@media (prefers-reduced-motion: no-preference) { .reveal:not(.eyebrow):not(.kick) { transition: opacity 1s var(--m-ease), transform 1.1s var(--m-ease), filter 1s var(--m-ease) !important; } }
@media (prefers-reduced-motion: no-preference) { .eyebrow.reveal, .kick.reveal { transition: opacity 1s var(--m-ease), transform 1.1s var(--m-ease), filter 1s var(--m-ease), letter-spacing 1.2s var(--m-ease) !important; } }
.reveal.in { filter: none; }
.reveal.d1 { transition-delay: .09s !important; } .reveal.d2 { transition-delay: .18s !important; } .reveal.d3 { transition-delay: .27s !important; }

/* hero: the photo sits behind, drifts and zooms, the words arrive in order */
.m-hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.m-hero-photo img { position: absolute; inset: -6% 0 0 0; width: 100%; height: 112%; object-fit: cover; object-position: 70% 40%;
  opacity: 0; transform: scale(1.14); animation: m-hero-in 2.6s var(--m-ease) .1s forwards; will-change: transform; }
.m-hero-photo::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 82%, transparent) 42%, color-mix(in srgb, var(--bg) 30%, transparent) 78%, color-mix(in srgb, var(--bg) 55%, transparent)),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), transparent 26%, transparent 70%, var(--bg)); }
@keyframes m-hero-in { to { opacity: .9; transform: scale(1.02); } }
header .wrap { position: relative; z-index: 2; }
.m-intro > * { opacity: 0; transform: translateY(26px); filter: blur(10px); animation: m-rise 1.15s var(--m-ease) forwards; }
.m-intro > *:nth-child(1) { animation-delay: .15s; } .m-intro > *:nth-child(2) { animation-delay: .3s; }
.m-intro > *:nth-child(3) { animation-delay: .48s; } .m-intro > *:nth-child(4) { animation-delay: .62s; }
.m-intro h1 { animation-duration: 1.35s; }
.m-weeks { overflow-x: clip; }
.m-weeks > * { opacity: 0; transform: translateY(22px) scale(.97); animation: m-slide 1.1s var(--m-ease) forwards; }
.m-weeks > *:nth-child(1) { animation-delay: .55s; } .m-weeks > *:nth-child(2) { animation-delay: .68s; } .m-weeks > *:nth-child(3) { animation-delay: .81s; }
.m-weeks > *:nth-child(4) { animation-delay: .94s; } .m-weeks > *:nth-child(5) { animation-delay: 1.07s; } .m-weeks > *:nth-child(6) { animation-delay: 1.2s; }
@keyframes m-rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes m-slide { to { opacity: 1; transform: none; } }
.hero-weeks .hw-card { transition: transform .5s var(--m-spring), border-color .3s, background .3s; }
.hero-weeks .hw-card:hover { transform: translateX(-6px); border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.hero-weeks .hw-card.go span { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); animation: m-ping 2.4s ease-out 2.4s infinite; }
@keyframes m-ping { to { box-shadow: 0 0 0 12px transparent; } }

/* photo frames: a clean edge, a slow zoom, a curtain reveal on entry */
.m-photo { position: relative; overflow: hidden; border-radius: 28px; background: #0b1a12; isolation: isolate;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08); }
.m-photo img { display: block; width: 100%; height: 112%; object-fit: cover; transform: translateY(var(--m-py, 0px)) scale(1.14);
  transition: transform 1.6s var(--m-ease); will-change: transform; }
.m-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)), radial-gradient(120% 90% at 50% 0%, transparent 60%, rgba(0,0,0,.25));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); border-radius: inherit; }
.m-photo.m-reveal { clip-path: inset(14% 8% 14% 8% round 28px); opacity: .4; transition: clip-path 1.5s var(--m-ease), opacity 1.2s var(--m-ease); }
.m-photo.m-reveal.in { clip-path: inset(0 0 0 0 round 28px); opacity: 1; }
.m-photo.m-reveal.in img { transform: translateY(var(--m-py, 0px)) scale(1.04); }

/* the gallery band: three photos that drift sideways as the page scrolls */
.m-band { position: relative; padding: 30px 0 10px; overflow: hidden; }
.m-band-track { display: flex; gap: 22px; width: max-content; padding: 0 24px; transform: translateX(var(--m-bx, 0px)); will-change: transform; }
.m-band .m-photo { width: clamp(280px, 34vw, 470px); aspect-ratio: 4 / 3; flex: 0 0 auto; }
.m-band .m-photo:nth-child(2) { margin-top: 46px; }
.m-band .m-photo:nth-child(4) { margin-top: 24px; }

/* wide banner photo in a section */
.m-banner { max-width: 1140px; margin: 0 auto 34px; padding: 0 24px; }
.m-banner .m-photo { aspect-ratio: 21 / 8; }
@media (max-width: 760px) { .m-banner .m-photo { aspect-ratio: 4 / 3; } }

/* the four week steps get a picture each on the app page */
.ad-step .m-step-img { margin: -8px -8px 18px; border-radius: 20px; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.ad-step .m-step-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--m-ease); }
.ad-step.in .m-step-img img { transform: scale(1.02); }
.ad-step:hover .m-step-img img { transform: scale(1.08); }
.ad-step .m-step-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6,18,12,.55)); }

/* a quiet photo behind the booking section */
.m-section-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.m-section-photo img { width: 100%; height: 120%; object-fit: cover; opacity: .32; transform: translateY(var(--m-py, 0px)); will-change: transform; }
.m-section-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 40%, transparent) 30%, color-mix(in srgb, var(--bg) 50%, transparent) 70%, var(--bg)); }
section.m-has-photo { position: relative; }
section.m-has-photo > .wrap { position: relative; z-index: 2; }

/* cards: lift, tilt toward the pointer, a soft glare follows it */
.m-tilt { transform-style: preserve-3d; transition: transform .6s var(--m-ease), box-shadow .6s var(--m-ease), border-color .4s; }
.m-tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--m-gx, 50%) var(--m-gy, 0%), rgba(95,227,154,.14), transparent 45%); }
.m-tilt:hover::before { opacity: 1; }
.m-tilt:hover { border-color: rgba(95,227,154,.3) !important; box-shadow: 0 30px 70px -26px rgba(0,0,0,.75), 0 0 0 1px rgba(95,227,154,.12) !important; }
.m-tilt > * { position: relative; z-index: 1; }

/* buttons: a sheen sweeps the main button, both lean toward the pointer */
.btn { will-change: transform; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); animation: m-sheen 5s ease-in-out 2s infinite; }
@keyframes m-sheen { 0%, 70% { left: -70%; } 100% { left: 140%; } }

/* a soft green light follows the pointer across the page */
.m-glow { position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(closest-side, rgba(50,207,117,.09), transparent); transform: translate3d(var(--m-cx, -999px), var(--m-cy, -999px), 0); opacity: 0; transition: opacity .6s; }
body.m-moving .m-glow { opacity: 1; }

@media (hover: none), (pointer: coarse) { .m-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .m-intro > *, .m-weeks > *, .m-hero-photo img, .m-photo.m-reveal { filter: none !important; animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .m-band-track { transform: none !important; }
  .btn-primary::after { animation: none; }
}
@media (hover:hover) and (pointer:fine){*,*::before,*::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}
.wrap .m-banner { padding: 0; margin-bottom: 30px; }
.ad-step { display: flex; flex-direction: column; }
.ad-step .m-step-img { order: -1; }
.ad-step::before { align-self: flex-start; }

/* light mode: the photo behind each intro sits under a light veil so the words stay readable */
html.light .m-hero-photo img { opacity: .5 !important; }
html.light .m-hero-photo::after {
  background:
    linear-gradient(90deg, var(--bg) 22%, color-mix(in srgb, var(--bg) 88%, transparent) 55%, color-mix(in srgb, var(--bg) 55%, transparent)),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), transparent 30%, transparent 70%, var(--bg)); }
html.light .m-section-photo img { opacity: .16; }
