/* Motion layer for the home page. Content and layout are unchanged.
   Everything animated is switched on by js/fx.js, which does nothing for reduced-motion visitors. */

/* phones: let the longer location line wrap instead of running off screen */
@media (max-width:700px){
  .hero{grid-template-columns:minmax(0,1fr)}
  .hero-inner{min-width:0}
  .hero .eyebrow{white-space:normal;line-height:1.9;max-width:100%}
  .hero .eyebrow::after{display:none}
}

/* 1. headlines rise into focus, word by word */
.fx .fx-words .w{display:inline-block;opacity:0;translate:0 .55em;filter:blur(10px);transition:opacity .9s var(--ease),translate 1s var(--ease),filter .9s var(--ease);transition-delay:calc(var(--n) * 85ms)}
.fx .fx-words.fx-go .w{opacity:1;translate:0 0;filter:blur(0)}
.fx .hero h1.fx-words .w{transition-delay:calc(.35s + var(--n) * 110ms)}
.fx .hero h1 em .w{background:linear-gradient(100deg,var(--sage-mist) 35%,#fff 50%,var(--sage-mist) 65%) 100% 0/300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;padding:0 .06em;text-shadow:none}
.fx .hero h1.fx-go em .w{animation:fx-shimmer 6s ease-in-out 2s infinite}
@keyframes fx-shimmer{0%{background-position:100% 0}45%,100%{background-position:0 0}}

/* 2. sections come into focus as they scroll in */
.fx .rv:not(.piece){filter:blur(8px);transition-property:opacity,transform,filter}
.fx .rv.in:not(.piece){filter:blur(0)}
.fx .rv.in.fx-done:not(.piece){filter:none}

/* 3. buttons: light sweep and gentle magnetic pull */
.fx .btn,.fx .btn-nav{position:relative;overflow:hidden;isolation:isolate}
.fx .btn::after,.fx .btn-nav::after{content:"";position:absolute;top:0;bottom:0;left:0;width:45%;pointer-events:none;background:linear-gradient(100deg,transparent,rgba(255,255,255,.6),transparent);transform:translateX(-160%) skewX(-18deg)}
.fx .btn:hover::after,.fx .btn-nav:hover::after{transform:translateX(330%) skewX(-18deg);transition:transform .9s var(--ease)}
.fx .fx-magnet{translate:var(--mx,0px) var(--my,0px)}

/* 5. light travelling around the booking panel */
@property --fx-angle{syntax:"<angle>";initial-value:0deg;inherits:false}
.fx-beam{position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;background:conic-gradient(from var(--fx-angle),transparent 0 68%,rgba(99,114,77,.25) 76%,#8d9c72 88%,#fff 93%,transparent 98%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:fx-spin 6s linear infinite}
@keyframes fx-spin{to{--fx-angle:360deg}}

/* 6. marketing kit: layers float at different depths; tags pop in */
.fx .kit>div{translate:calc(var(--px,0) * var(--depth,8px)) calc(var(--py,0) * var(--depth,8px) + var(--sy,0) * var(--depth,8px));transition:translate .5s ease-out}
.fx .k-web{--depth:6px}.fx .k-post{--depth:12px}.fx .k-flyer{--depth:17px}.fx .k-phone{--depth:24px}
.fx .tags span{opacity:0;scale:.8;transition:opacity .5s var(--ease),scale .6s cubic-bezier(.3,1.6,.5,1),translate .3s;transition-delay:calc(var(--n) * 70ms)}
.fx .tags.fx-go span{opacity:1;scale:1}

/* 7. "How I Work": a line draws in above each value */
.fx .how-row>div{position:relative}
.fx .how-row>div::before{content:"";position:absolute;top:-10px;left:50%;width:56px;height:2px;margin-left:-28px;background:var(--sage-deep);transform:scaleX(0);transition:transform 1.1s var(--ease) .35s}
.fx .how-row>div.in::before{transform:scaleX(1)}

/* 8. hero depth on scroll, plus a thin reading-progress line */
.fx .hero .slides{translate:0 var(--hero-shift,0px)}
.fx-progress{position:fixed;left:0;top:0;height:3px;width:100%;z-index:60;pointer-events:none;transform-origin:left;transform:scaleX(0);background:linear-gradient(90deg,var(--sage-deep),var(--sage))}

/* the menu button must be a box, or the light sweep spills onto the link beside it */
.fx .btn-nav{display:inline-block}

/* no stray line after the location text at the top */
.hero .eyebrow::after{display:none}

/* lift the headline and buttons clear of the wavy lines */
.hero .hero-inner{translate:0 calc(-1 * clamp(24px,11svh - 30px,60px))}


/* "How I Work": a bit bigger, with equal space on both sides of each column so the bars sit centered over the text */
.how .eyebrow{font-size:clamp(11px,1.15vw,14px)}
.how .how-row{max-width:1180px;margin-top:clamp(34px,4vw,52px);gap:clamp(16px,2.4vw,36px)}
.how .how-row>div,.how .how-row>div+div{padding-left:clamp(10px,1.6vw,24px);padding-right:clamp(10px,1.6vw,24px);text-align:center}
.how .how-row h3{font-size:clamp(28px,3.2vw,42px);margin-bottom:12px}
.how .how-row p{font-size:clamp(16px,1.45vw,19px);line-height:1.65;max-width:21em;margin-inline:auto}
.fx .how .how-row>div::before{top:-16px;width:72px;margin-left:-36px;height:3px}
@media (max-width:980px){
  .how .how-row{max-width:440px;gap:44px}
  .how .how-row>div,.how .how-row>div+div{padding-left:0;padding-right:0}
}
