/* Wellness "Every part. A place." scene: six botanical circles that gather and fold into the packet.
   Driven by the shared formula story's --mix (0 Discover → .5 Together → 1 Within), from native scroll or the chapter buttons.
   Honeysuckle (金银花) is a confirmed ingredient; the other five are illustrative generic botanicals. */
.experience-wellness .botanical-art{
 --R:clamp(150px,29svh,280px);--node:clamp(108px,15svh,160px);
 --gather:clamp(0,calc((var(--mix) - .12) * 2.6),1);
 --fold:clamp(0,calc((var(--mix) - .6) * 2.8),1)}
.experience-wellness .botanical-art .formula-node{
 --ang:calc(var(--a) + var(--mix) * 50deg);
 --r:calc(var(--R) * (1 - .24 * var(--gather)) * (1 - var(--fold)));
 position:absolute;left:50%;top:50%;right:auto;bottom:auto;z-index:1;width:var(--node);height:var(--node);padding:0;border-radius:50%;
 background:var(--white);box-shadow:0 0 0 5px var(--white),0 16px 36px rgb(48 39 31 / .18);
 transform:translate(-50%,-50%) translate(calc(cos(var(--ang)) * var(--r)),calc(sin(var(--ang)) * var(--r))) scale(calc(1 - .8 * var(--fold)));
 opacity:calc(1 - var(--fold))}
.experience-wellness .botanical-art .formula-node img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.experience-wellness .botanical-art .formula-node span{bottom:-30px;font-size:12px;letter-spacing:.02em}
.experience-wellness .botanical-art .formula-orbit{width:calc(var(--R) * 2);height:calc(var(--R) * 2);opacity:calc(1 - var(--fold));transform:translate(-50%,-50%) scale(calc(1 - .24 * var(--gather)))}
/* The packet stays on top, so the circles slide behind it, and settles forward once everything has folded in. */
.experience-wellness .botanical-art .formula-packet{left:50%;top:50%;z-index:3;transform:translate(-50%,-50%) rotate(calc(-8deg + var(--mix) * 8deg)) scale(calc(1 + .1 * var(--fold)))}

/* Each circle links to its profile on the Ingredients page. Circles that have folded into the packet are hidden,
   so they cannot be tabbed to or clicked while invisible (formula-story.js sets data-folded). */
.experience-wellness .botanical-art .formula-node{pointer-events:auto;cursor:pointer;color:inherit;text-decoration:none}
.experience-wellness .botanical-art .formula-node:hover{box-shadow:0 0 0 5px var(--white),0 0 0 7px var(--red),0 16px 36px rgb(48 39 31 / .2)}
.experience-wellness .botanical-art .formula-node:focus-visible{outline:3px solid var(--red);outline-offset:6px}
.experience-wellness .formula-scene[data-folded] .botanical-node{visibility:hidden}

/* Image and animation only (user request): the changing chapter text is hidden and the ring is centred in the scene.
   The script still updates the hidden text; the static chapter summaries below the scene carry the same content. */
.experience-wellness .formula-narrative{display:none}
.experience-wellness .formula-art.botanical-art{left:0;right:0;width:auto}

/* Full-screen while scrolling through it: the scene pins edge to edge for the length of the journey. */
@media(min-width:901px) and (min-height:700px) and (prefers-reduced-motion:no-preference){
 .formula-enhanced .experience-wellness .formula-journey{max-width:none;padding-inline:0;height:300svh}
 .formula-enhanced .experience-wellness .formula-scene{position:sticky;top:0;height:100svh;min-height:0;border-radius:0}
 .formula-enhanced .experience-wellness .formula-scene-top,.formula-enhanced .experience-wellness .formula-progress{left:max(32px,calc((100vw - 1360px) / 2 + 32px));right:max(32px,calc((100vw - 1360px) / 2 + 32px))}
 .formula-enhanced .experience-wellness .formula-narrative{left:max(5%,calc((100vw - 1360px) / 2 + 48px))}
 .formula-enhanced .experience-wellness .formula-step-controls{left:max(32px,calc((100vw - 1360px) / 2 + 32px));bottom:32px}
 .formula-enhanced .experience-wellness .formula-art{top:96px;bottom:110px}
}
@media(max-width:1000px){.experience-wellness .botanical-art{--R:clamp(130px,19vw,190px);--node:clamp(84px,12vw,116px)}}
@media(max-width:700px){
 .experience-wellness .botanical-art{--node:min(19vw,76px)}
 .experience-wellness .botanical-art .formula-node{box-shadow:0 0 0 3px var(--white),0 10px 24px rgb(48 39 31 / .16)}
 .experience-wellness .botanical-art{--R:min(34vw,132px);height:410px}
 .experience-wellness .botanical-art .formula-node span{top:auto;bottom:calc(100% + 6px);left:-16px;right:-16px;font-size:10px;line-height:1.3;white-space:normal}
 /* A smaller packet keeps the ring readable on narrow screens. */
 .experience-wellness .botanical-art .formula-packet{width:80px;padding:12px 8px}
 .experience-wellness .botanical-art .formula-packet .packet-logo{width:60px;height:34px}
 .experience-wellness .botanical-art .formula-packet .packet-mark{width:28px;height:28px}
 .experience-wellness .botanical-art .formula-packet small{font-size:5px}
}
@media(max-width:360px){
 .experience-wellness .botanical-art{--R:105px;--node:60px}
 .experience-wellness .botanical-art .formula-packet{width:64px;padding:10px 6px}
 .experience-wellness .botanical-art .formula-packet .packet-logo{width:48px;height:28px}
 .experience-wellness .botanical-art .formula-packet .packet-mark{width:22px;height:22px}
 .experience-wellness .botanical-art .formula-packet small{display:none}
}
/* Tablets and phones: the same scroll-driven fold. The scene pins full-screen and the ring sizes itself
   to the space left under the copy (container units), so circles never collide with the packet. */
@media(max-width:900px) and (prefers-reduced-motion:no-preference){
 .formula-enhanced .experience-wellness .formula-journey{max-width:none;padding-inline:0;height:300svh}
 .formula-enhanced .experience-wellness .formula-scene{position:sticky;top:0;height:100svh;min-height:0;border-radius:0;display:flex;flex-direction:column;gap:16px;padding:76px 20px 20px}
 .formula-enhanced .experience-wellness .formula-narrative{position:relative;left:auto;top:auto;width:auto;min-height:0;order:0}
 .formula-enhanced .experience-wellness .formula-narrative h3{font-size:clamp(30px,8.5vw,40px);margin:10px 0}
 .formula-enhanced .experience-wellness .formula-narrative p{font-size:14px;line-height:1.5;margin-bottom:0}
 .formula-enhanced .experience-wellness .formula-narrative a{min-height:44px}
 .formula-enhanced .experience-wellness .formula-step-controls{position:static;order:1;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
 .formula-enhanced .experience-wellness .formula-art.botanical-art{position:relative;inset:auto;order:2;flex:1 1 auto;width:100%;height:auto;min-height:0;container-type:size;
  --R:min(36cqw,34cqh);--node:min(19cqw,18cqh)}
 .formula-enhanced .experience-wellness .botanical-art .formula-packet{width:min(80px,20cqh);padding:min(12px,3cqh) 8px}
 .formula-enhanced .experience-wellness .botanical-art .formula-packet .packet-logo{width:75%;height:min(34px,8cqh)}
 .formula-enhanced .experience-wellness .botanical-art .formula-packet .packet-mark{width:min(28px,7cqh);height:min(28px,7cqh)}
 .formula-enhanced .experience-wellness .botanical-art .formula-packet small{display:none}
}
@media(min-width:701px) and (max-width:900px) and (prefers-reduced-motion:no-preference){
 .formula-enhanced .experience-wellness .formula-scene{padding:84px 40px 28px}
 .formula-enhanced .experience-wellness .formula-narrative p{font-size:16px;max-width:52ch}
}
/* Reduced motion: the same arrangement, without transitions (the shared rules already remove them). */
@media(prefers-reduced-motion:reduce){
 .experience-wellness .botanical-art .formula-node{transform:translate(-50%,-50%) translate(calc(cos(var(--ang)) * var(--r)),calc(sin(var(--ang)) * var(--r))) scale(calc(1 - .8 * var(--fold)));opacity:calc(1 - var(--fold))}
 .experience-wellness .botanical-art .formula-packet{transform:translate(-50%,-50%) scale(calc(1 + .1 * var(--fold)))}
}
