
/* ============================================================
   MUK Health — premium layer, part 2
   Animated hero, glass surfaces, wider hover + 3D scroll coverage.
   Same ground rules as part 1: transform/opacity/filter/shadow only,
   pointer effects gated to fine pointers, all of it off under
   prefers-reduced-motion.
   ============================================================ */

/* ============================================================
   12. THE HERO
   ============================================================ */
.muk .muk-hero{position:relative; overflow:hidden; isolation:isolate}

/* --- 12a. the photograph: a slow continuous Ken Burns drift ------- */
.muk .muk-hero-media{
  position:relative;
  overflow:hidden;
  will-change:transform;
}
/* --- the rotation ------------------------------------------------
   Each slide is its own layer with background-size:cover, scaled by
   TRANSFORM (never background-size, which would break the cover fit).
   Layers sit under the container's cream gradient overlay, so the
   blend into the copy column is untouched. */
.mk-hero-slides{
  position:absolute; inset:0; z-index:0;
  overflow:hidden; pointer-events:none;
}
.mk-hero-slide{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0;
  transform:scale(1.04);
  transition:opacity 1.5s var(--ease);
  will-change:opacity,transform;
}
.mk-hero-slide.is-on{
  opacity:1;
  /* slow continuous drift for as long as the slide is showing.
     Kept shallow: cover already discards ~40% of these photos'
     width, so a deep zoom starts eating the product. */
  animation:mkKen 9s linear forwards;
}
@keyframes mkKen{
  from{transform:scale(1.04) translate3d(0,0,0)}
  to  {transform:scale(1.11) translate3d(-0.9%,-0.7%,0)}
}
/* the cream blend and the copy stay above the slides */
.muk .muk-hero-media::before{z-index:1}
.muk .muk-hero-media > .elementor-element{position:relative; z-index:2}

/* --- the glass product card ---------------------------------------- */
.mk-hero-card{
  position:absolute; z-index:3;
  right:clamp(20px,3vw,44px); bottom:clamp(20px,4vw,52px);
  width:min(300px,42%);
  padding:20px 22px;
  display:block; text-decoration:none;
  background:linear-gradient(145deg, rgba(247,244,236,.82), rgba(247,244,236,.58));
  -webkit-backdrop-filter:blur(16px) saturate(1.3);
  backdrop-filter:blur(16px) saturate(1.3);
  border:1px solid rgba(255,255,255,.6);
  /* a white border disappears against the bright half of these photos,
     so a hairline dark ring defines the card whatever sits behind it */
  box-shadow:0 0 0 1px rgba(14,28,19,.10),
             0 1px 0 rgba(255,255,255,.75) inset,
             0 22px 50px -22px rgba(14,28,19,.6);
  animation:mkHover 7s ease-in-out infinite;
  transition:transform var(--mk-t-med) var(--ease),
             box-shadow var(--mk-t-med) var(--ease),
             border-color var(--mk-t-med) ease;
  will-change:transform;
}
@keyframes mkHover{
  0%,100%{transform:translate3d(0,0,0)}
  50%    {transform:translate3d(0,-9px,0)}
}
.mk-hero-card__label{
  font-family:'Jost',sans-serif; font-size:9.5px; font-weight:500;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--stone-text); margin:0 0 8px; display:block;
}
.mk-hero-card__name{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:21px; line-height:1.2; color:var(--forest);
  margin:0 0 6px; display:block;
}
.mk-hero-card__price{
  font-family:'Jost',sans-serif; font-size:14px; color:var(--forest);
  display:block;
}
.mk-hero-card__price del{opacity:.55; font-size:12.5px; margin-right:6px}
.mk-hero-card__price ins{text-decoration:none; font-weight:500}
.mk-hero-card__go{
  display:inline-flex; align-items:center; gap:7px; margin-top:12px;
  font-family:'Jost',sans-serif; font-size:10.5px; font-weight:500;
  letter-spacing:.18em; text-transform:uppercase; color:var(--forest);
}
.mk-hero-card__go svg{width:13px;height:13px;transition:transform var(--mk-t-med) var(--ease)}
@media (hover:hover) and (pointer:fine){
  .mk-hero-card:hover{
    box-shadow:0 0 0 1px rgba(201,168,106,.55),
               0 1px 0 rgba(255,255,255,.9) inset,
               0 30px 60px -22px rgba(14,28,19,.55);
    border-color:rgba(201,168,106,.6);
  }
  .mk-hero-card:hover .mk-hero-card__go svg{transform:translateX(5px)}
}
.mk-hero-card:focus-visible{outline:2px solid var(--stone-dark); outline-offset:3px}
/* the card is a bonus, not the message — drop it when space is tight */
@media (max-width:1024px){ .mk-hero-card{display:none} }

/* the card's content crossfades as the slide changes */
.mk-hero-card__in{
  display:block;
  transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.mk-hero-card.is-swapping .mk-hero-card__in{
  opacity:0; transform:translate3d(0,8px,0);
}

/* --- slide progress ------------------------------------------------- */
.mk-hero-dots{
  position:absolute; z-index:3;
  left:clamp(20px,4vw,64px); bottom:clamp(18px,3vw,38px);
  display:flex; gap:9px;
}
.mk-hero-dot{
  width:34px; height:3px; padding:0; border:0; cursor:pointer;
  background:rgba(247,244,236,.34);
  position:relative; overflow:hidden;
  transition:background var(--mk-t-fast) ease;
}
.mk-hero-dot::after{
  content:""; position:absolute; inset:0;
  background:var(--stone);
  transform:scaleX(0); transform-origin:0 50%;
}
.mk-hero-dot.is-on::after{
  animation:mkDot var(--mk-dot-dur,6.2s) linear forwards;
}
@keyframes mkDot{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.mk-hero-dot.is-done::after{transform:scaleX(1)}
.mk-hero-dot:hover{background:rgba(247,244,236,.55)}
.mk-hero-dot:focus-visible{outline:2px solid var(--stone); outline-offset:3px}
/* on the cream column side the dots need a darker track */
@media (max-width:767px){
  .mk-hero-dots{left:20px; bottom:16px}
  .mk-hero-dot{width:26px}
}

/* --- 12b. the copy column: staged entrance ------------------------ */
.muk .muk-hero-in{
  opacity:0;
  transform:translate3d(0,26px,0);
  will-change:transform,opacity;
}
.muk .muk-hero.mk-lit .muk-hero-in{
  animation:mkHeroIn 1.05s var(--ease) forwards;
}
.muk .muk-hero.mk-lit .muk-hero-in-1{animation-delay:.10s}
.muk .muk-hero.mk-lit .muk-hero-in-2{animation-delay:.24s}
.muk .muk-hero.mk-lit .muk-hero-in-3{animation-delay:.42s}
.muk .muk-hero.mk-lit .muk-hero-in-4{animation-delay:.56s}
@keyframes mkHeroIn{
  from{opacity:0; transform:translate3d(0,26px,0)}
  to  {opacity:1; transform:none}
}

/* The headline rises line by line, masked — the detail that makes a
   hero feel authored rather than templated. */
.muk .muk-hero .mk-line-mask{display:block; overflow:hidden}
.muk .muk-hero .mk-line-inner{
  display:block;
  transform:translate3d(0,102%,0) rotate(1.2deg);
  opacity:0;
}
.muk .muk-hero.mk-lit .mk-line-inner{
  animation:mkLineUp 1.15s var(--ease) forwards;
}
.muk .muk-hero.mk-lit .mk-line-mask:nth-child(1) .mk-line-inner{animation-delay:.22s}
.muk .muk-hero.mk-lit .mk-line-mask:nth-child(2) .mk-line-inner{animation-delay:.34s}
.muk .muk-hero.mk-lit .mk-line-mask:nth-child(3) .mk-line-inner{animation-delay:.46s}
@keyframes mkLineUp{
  from{transform:translate3d(0,102%,0) rotate(1.2deg); opacity:0}
  to  {transform:translate3d(0,0,0) rotate(0); opacity:1}
}

/* --- 12c. the gold rule under the eyebrow draws itself ------------- */
.muk .muk-hero.mk-lit .muk-hero-in-1::after{
  content:""; position:absolute; left:0; bottom:-6px; height:1px; width:52px;
  background:var(--stone-dark);
  transform-origin:0 50%;
  animation:mkRule .9s var(--ease) .5s both;
}
@keyframes mkRule{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* --- 12d. ambient gold motes drifting through the cream half ------- */
.mk-motes{
  position:absolute; inset:0; z-index:0;
  pointer-events:none; overflow:hidden;
}
.mk-mote{
  position:absolute; border-radius:50%;
  background:radial-gradient(circle at 34% 34%, rgba(201,168,106,.55), rgba(201,168,106,0) 68%);
  animation:mkFloat linear infinite;
  will-change:transform;
  opacity:0;
}
@keyframes mkFloat{
  0%  {transform:translate3d(0,14vh,0) scale(.85); opacity:0}
  12% {opacity:.9}
  88% {opacity:.9}
  100%{transform:translate3d(var(--mk-dx,18px),-34vh,0) scale(1.15); opacity:0}
}
/* keep the copy above the motes */
.muk .muk-hero-copy{position:relative; z-index:1}

/* --- 12e. scroll: the hero settles back as you leave it ----------- */
.muk .muk-hero-copy{
  transform:translate3d(0,var(--mk-hero-y,0px),0);
  opacity:var(--mk-hero-o,1);
}

/* --- 12f. a slow sheen travelling across the cream/photo seam ------ */
.muk .muk-hero::after{
  content:""; position:absolute; inset:0; z-index:2;
  pointer-events:none;
  background:linear-gradient(105deg,
    transparent 38%,
    rgba(255,255,255,.14) 48%,
    transparent 58%);
  background-size:260% 100%;
  animation:mkSheen 9s ease-in-out infinite;
}
@keyframes mkSheen{
  0%,68%{background-position:150% 0}
  100%  {background-position:-60% 0}
}

/* the trust strip follows the hero in */
.muk .muk-trust .elementor-widget{opacity:0; transform:translate3d(0,14px,0)}
.muk .muk-trust.in .elementor-widget{animation:mkHeroIn .8s var(--ease) forwards}
.muk .muk-trust.in .elementor-widget:nth-child(1){animation-delay:.05s}
.muk .muk-trust.in .elementor-widget:nth-child(2){animation-delay:.13s}
.muk .muk-trust.in .elementor-widget:nth-child(3){animation-delay:.21s}
.muk .muk-trust.in .elementor-widget:nth-child(4){animation-delay:.29s}

/* ============================================================
   13. GLASS SURFACES
   ============================================================ */
.muk .mk-glass{
  position:relative;
  background:linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.24));
  -webkit-backdrop-filter:blur(12px) saturate(1.25);
  backdrop-filter:blur(12px) saturate(1.25);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset,
             0 10px 30px -18px rgba(14,28,19,.42);
  transition:transform var(--mk-t-med) var(--ease),
             box-shadow var(--mk-t-med) var(--ease),
             border-color var(--mk-t-med) ease;
}
/* on the dark brand green the glass inverts */
.muk .muk-on-dark .mk-glass{
  background:linear-gradient(145deg, rgba(247,244,236,.11), rgba(247,244,236,.04));
  border-color:rgba(247,244,236,.16);
  box-shadow:0 1px 0 rgba(247,244,236,.12) inset,
             0 14px 34px -20px rgba(0,0,0,.6);
}
@media (hover:hover) and (pointer:fine){
  .muk .mk-glass:hover{
    transform:perspective(900px)
              rotateX(var(--mk-rx,0deg)) rotateY(var(--mk-ry,0deg))
              translate3d(0,-5px,0);
    box-shadow:0 1px 0 rgba(255,255,255,.8) inset,
               0 26px 52px -22px rgba(14,28,19,.4);
    border-color:rgba(201,168,106,.5);
  }
  .muk .muk-on-dark .mk-glass:hover{border-color:rgba(201,168,106,.45)}
}

/* a gold hairline that sweeps the top edge on hover */
.muk .mk-glass::before{
  content:""; position:absolute; left:0; right:0; top:0; height:1px;
  background:linear-gradient(90deg, transparent, var(--stone), transparent);
  transform:scaleX(0); transform-origin:50% 50%;
  transition:transform var(--mk-t-med) var(--ease);
}
.muk .mk-glass:hover::before{transform:scaleX(1)}

/* ============================================================
   14. WIDER HOVER + 3D COVERAGE
   ============================================================ */

/* Journal / post cards.
   These have padding:0 and no card surface of their own, so they get no
   glass, no tilt and no lift — a skewing block of borderless text reads
   as a glitch. Just the image easing in behind the words. */
.muk .elementor-post__thumbnail{overflow:hidden}
.muk .elementor-post__thumbnail img{
  transition:transform 1.1s var(--ease), filter var(--mk-t-med) ease;
}
@media (hover:hover) and (pointer:fine){
  .muk .elementor-post:hover .elementor-post__thumbnail img{
    transform:scale(1.05);
    filter:saturate(1.05);
  }
  .muk .elementor-post__read-more{transition:color var(--mk-t-fast) ease}
  .muk .elementor-post:hover .elementor-post__read-more{color:var(--stone-text)}
}

/* Testimonials / quote blocks */
@media (hover:hover) and (pointer:fine){
  .muk .muk-quote{
    transition:transform var(--mk-t-med) var(--ease), box-shadow var(--mk-t-med) var(--ease);
  }
  .muk .muk-quote:hover{
    transform:perspective(900px) rotateX(var(--mk-rx,0deg)) rotateY(var(--mk-ry,0deg)) translate3d(0,-5px,0);
    box-shadow:var(--mk-shadow-2);
  }
}

/* FAQ accordion */
.muk .muk-faq .elementor-accordion-item{transition:background var(--mk-t-med) ease}
.muk .muk-faq .elementor-tab-title{
  transition:padding-left var(--mk-t-med) var(--ease), color var(--mk-t-fast) ease;
}
@media (hover:hover) and (pointer:fine){
  .muk .muk-faq .elementor-tab-title:hover{padding-left:24px}
}
.muk .muk-faq .elementor-tab-content{animation:mkFade .5s var(--ease)}
@keyframes mkFade{from{opacity:0;transform:translate3d(0,-6px,0)}to{opacity:1;transform:none}}

/* Footer links: gold slide */
.muk .muk-f-links .elementor-icon-list-text{
  display:inline-block;
  transition:transform var(--mk-t-med) var(--ease), color var(--mk-t-fast) ease;
}
@media (hover:hover) and (pointer:fine){
  .muk .muk-f-links .elementor-icon-list-item:hover .elementor-icon-list-text{
    transform:translateX(6px);
  }
}

/* Form fields: a gold focus ring that grows */
.muk .elementor-field-group input,
.muk .elementor-field-group textarea,
.muk .elementor-field-group select{
  transition:border-color var(--mk-t-med) ease, box-shadow var(--mk-t-med) ease,
             background-color var(--mk-t-med) ease;
}
.muk .elementor-field-group input:focus,
.muk .elementor-field-group textarea:focus,
.muk .elementor-field-group select:focus{
  border-color:var(--stone-dark) !important;
  box-shadow:0 0 0 3px rgba(201,168,106,.24);
  outline:none;
}

/* Icon boxes: the icon gets a soft gold halo on hover */
.muk .muk-feature .elementor-icon{
  position:relative;
  transition:transform var(--mk-t-med) var(--spring), filter var(--mk-t-med) ease;
}
@media (hover:hover) and (pointer:fine){
  .muk .muk-feature:hover .elementor-icon{
    transform:translateY(-3px) scale(1.06);
    filter:drop-shadow(0 6px 14px rgba(201,168,106,.42));
  }
}

/* Section headings: the gold rule wipes outward as the heading arrives */
.muk .muk-sec-head::after{transform-origin:50% 50%}

/* ============================================================
   15. Reduced motion — part 2
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  .muk .muk-hero-media{animation:none}
  .muk .muk-hero::after{animation:none; opacity:0}
  .mk-motes{display:none}
  /* the rotation still advances, it just cuts instead of drifting */
  .mk-hero-slide,.mk-hero-slide.is-on{animation:none !important; transform:none !important}
  .mk-hero-card{animation:none !important; transform:none !important}
  .mk-hero-dot.is-on::after{animation:none; transform:scaleX(1)}
  .muk .muk-hero-in,
  .muk .muk-hero.mk-lit .muk-hero-in,
  .muk .muk-hero .mk-line-inner,
  .muk .muk-hero.mk-lit .mk-line-inner,
  .muk .muk-trust .elementor-widget,
  .muk .muk-trust.in .elementor-widget{
    opacity:1 !important; transform:none !important; animation:none !important;
  }
  .muk .muk-hero-copy{transform:none !important; opacity:1 !important}
  .muk .mk-glass,.muk .elementor-post,.muk .muk-quote{transition:none !important}
  .muk .muk-hero.mk-lit .muk-hero-in-1::after{animation:none; transform:none}
}
