/* ==========================================================================
   Alpha Aid — motion layer (loads after style.css)
   One idea runs through everything: BREATHING. The sun disc, product halos,
   story circle, orbit ring and the email-code screen all rise and fall at the
   same unhurried pace (--breath), echoing "feel good in your own rhythm".
   Everything below respects prefers-reduced-motion (see the end of the file).
   ========================================================================== */

:root{
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
  --spring:cubic-bezier(.34,1.45,.5,1);
  --breath:8s;
}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@keyframes spin{to{transform:rotate(360deg)}}
@keyframes breathe{0%,100%{scale:1}50%{scale:1.075}}

/* ---------- 1. Page transitions ---------- */
/* Browsers with cross-document View Transitions: the new page wipes up over the old one. */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  .site-header{view-transition-name:site-header}
  ::view-transition-old(root){animation:.55s var(--ease-io) both vt-old}
  ::view-transition-new(root){animation:.75s var(--ease-io) both vt-new}
  ::view-transition-group(site-header){animation-duration:.3s}
}
@keyframes vt-old{to{opacity:.4;transform:translateY(-4vh) scale(.985)}}
@keyframes vt-new{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0 0 0 0)}}

/* Fallback for other browsers: a green curtain (script.js adds/removes it). */
.curtain,html.curtain-in:before{
  position:fixed;inset:0;z-index:9999;display:grid;place-items:center;
  background:var(--green-dark);color:#f7b8e0;font-size:54px;pointer-events:none;
}
.curtain{transform:translateY(100%);transition:transform .52s var(--ease-io)}
.curtain.on{transform:none}
.curtain span{animation:spin 1.8s linear infinite}
html.curtain-in:before{content:"";background:var(--ast-curtain) center/54px 54px no-repeat var(--green-dark);animation:curtain-out .7s .08s var(--ease-io) forwards}
@keyframes curtain-out{to{transform:translateY(-100%)}}

/* ---------- 2. Announcement ticker ---------- */
.announcement{padding:0;overflow:hidden}
.marquee{display:flex;overflow:hidden;padding:8px 0}
.marquee-track{display:flex;flex:none;white-space:nowrap;animation:marquee 46s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
.marquee-track span{padding:0 4px}
.marquee-track b{padding:0 24px;color:#e8b3a2;font-weight:400}
@keyframes marquee{to{transform:translateX(-50%)}}

/* ---------- 3. Header: shadow + reading progress, nav underline ---------- */
.site-header{transition:box-shadow .4s,background-color .4s}
.site-header.is-scrolled{
  background:rgba(255,252,253,.88);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:0 12px 30px -20px rgba(90,26,76,.45);
}
.scroll-progress{
  position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--green);
  transform-origin:left;transform:scaleX(var(--p,0));opacity:0;transition:opacity .3s;
}
.is-scrolled .scroll-progress{opacity:1}

.brand-word{display:block}
.brand-logo{display:block;height:54px;width:auto;transition:transform .7s var(--spring)}
.brand:hover .brand-logo{transform:rotate(-6deg) scale(1.08)}
.brand-footer .brand-logo{height:60px}

.main-nav>a:not(.nav-cta):after{
  content:"";height:1px;position:absolute;bottom:2px;left:0;right:0;background:var(--green);
  transform:scaleX(0);transform-origin:right;transition:transform .45s var(--ease-out);
}
.main-nav>a.active:after,.main-nav>a:not(.nav-cta):hover:after{transform:scaleX(1);transform-origin:left}
.nav-cta{transition:background-color .3s,color .3s,border-color .3s}
.nav-cta span{display:inline-block;transition:transform .35s var(--spring)}
.nav-cta:hover{background:var(--green);border-color:var(--green);color:#fff}
.nav-cta:hover span{transform:translate(3px,-3px)}

/* ---------- 4. Buttons & links ---------- */
.btn span,.text-link span{display:inline-block;transition:transform .35s var(--spring)}
.btn:hover span{transform:translate(4px,-2px)}
.text-link{transition:border-color .3s}
.text-link:hover{border-color:var(--green)}
.text-link:hover span{transform:translateX(5px)}

.btn.btn-primary{
  background:linear-gradient(var(--green-dark),var(--green-dark)) no-repeat left center/0% 100%,var(--green);
  transition:background-size .5s var(--ease-out),transform .25s;
}
.btn.btn-primary:hover{background:linear-gradient(var(--green-dark),var(--green-dark)) no-repeat left center/100% 100%,var(--green)}
.btn.btn-light{
  background:linear-gradient(#fad2eb,#fad2eb) no-repeat left center/0% 100%,var(--paper);
  transition:background-size .5s var(--ease-out),transform .25s;
}
.btn.btn-light:hover{background:linear-gradient(#fad2eb,#fad2eb) no-repeat left center/100% 100%,var(--paper)}
.btn:active{transform:translateY(0) scale(.98)}

.round-arrow{transition:background-color .3s,color .3s,border-color .3s,transform .45s var(--spring)}
.round-arrow:hover{transform:scale(1.12);border-color:var(--green)}
.footer-links a{transition:transform .3s var(--ease-out),color .3s}
.footer-links a:hover{transform:translateX(5px);color:#fff}

/* ---------- 5. Headings: masked line reveal (lines are split by script.js) ---------- */
.js main :is(h1,h2):not(.is-split){visibility:hidden;animation:show 0s 1.4s forwards} /* safety net if scripts fail */
@keyframes show{to{visibility:visible}}
.ln{display:block;overflow:hidden;padding:.06em .1em .16em;margin:-.06em -.1em -.16em}
.ln-in{display:block;transform:translateY(112%);transition:transform 1.1s var(--ease-out) calc(var(--d,0s) + var(--i,0)*.12s)}
.in>.ln>.ln-in{transform:none}

/* ---------- 6. Hero: one orchestrated entrance, then a calm loop ---------- */
.hero-copy>:not(h1),.page-hero>:not(h1){animation:copy-in .9s var(--ease-out) both}
.hero-copy>:nth-child(1),.page-hero>:nth-child(1){animation-delay:.15s}
.hero-copy>:nth-child(3),.page-hero>:nth-child(3){animation-delay:.7s}
.hero-copy>:nth-child(4),.page-hero>:nth-child(4){animation-delay:.85s}
.hero-copy>:nth-child(5){animation-delay:1s}
@keyframes copy-in{from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}

.hero-art{animation:arch-in 1.3s var(--ease-out) .1s both}
@keyframes arch-in{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0 0 0 0)}}

/* The sun disc is the page's lungs. */
.sun-disc{
  display:grid;place-items:start center;padding-top:60px;
  animation:sun-rise 1.5s var(--ease-out) .55s both,breathe var(--breath) ease-in-out 2s infinite;
}
@keyframes sun-rise{from{translate:0 150px;opacity:0}to{translate:0 0;opacity:1}}
.breath{position:relative;width:100%;height:1.5em;text-align:center;font:italic 500 17px var(--serif);color:#9f417d}
.breath i{position:absolute;inset:0;font-style:italic;opacity:0}
.breath i:first-child{animation:breath-in var(--breath) ease-in-out 2s infinite}
.breath i:last-child{animation:breath-out var(--breath) ease-in-out 2s infinite}
@keyframes breath-in{0%{opacity:0}12%,40%{opacity:1}50%,100%{opacity:0}}
@keyframes breath-out{0%,50%{opacity:0}62%,90%{opacity:1}100%{opacity:0}}
.note-dot{animation:dot-breathe var(--breath) ease-in-out infinite}
@keyframes dot-breathe{0%,100%{scale:1;opacity:.55}50%{scale:1.7;opacity:1}}

/* Product photos: spring in, then float. Mouse parallax drives --mx/--my (script.js). */
.hero-art .hero-product{
  position:absolute;height:auto;max-width:none;--r:0deg;
  transform:rotate(var(--r));transform-origin:50% 100%;
  filter:drop-shadow(0 18px 16px rgba(92,40,62,.22));
  translate:calc(var(--mx,0)*var(--z,10)*1px) calc(var(--my,0)*var(--z,10)*.6px);
  animation:bottle-in 1.1s var(--spring) both,bottle-float 7s ease-in-out infinite;
}
.hero-art .hp-one{width:150px;left:calc(50% - 212px);bottom:84px;--r:-6deg;--z:14;z-index:2;animation-delay:.8s,2.1s}
.hero-art .hp-two{width:212px;left:calc(50% - 98px);bottom:62px;--r:0deg;--z:24;z-index:3;animation-delay:.95s,2.5s}
.hero-art .hp-three{width:190px;left:calc(50% + 74px);bottom:92px;--r:6deg;--z:10;z-index:1;animation-delay:1.1s,2.9s}
@keyframes bottle-in{
  from{opacity:0;transform:translateY(100px) rotate(calc(var(--r)*3))}
  to{opacity:1;transform:translateY(0) rotate(var(--r))}
}
@keyframes bottle-float{
  0%,100%{transform:translateY(0) rotate(var(--r))}
  50%{transform:translateY(-10px) rotate(calc(var(--r) + 1.4deg))}
}
.hero-art .art-leaf{transform-origin:50% 100%;animation:leaf-in 1.3s var(--ease-out) both,leaf-sway 6s ease-in-out infinite}
.hero-art .leaf-one{animation-delay:1.2s,2.5s;translate:calc(var(--mx,0)*8px) 0}
.hero-art .leaf-two{animation-delay:1.35s,3s;translate:calc(var(--mx,0)*-8px) 0}
.hero-art .leaf-three{animation-delay:1.5s,3.5s}
@keyframes leaf-in{from{scale:0;opacity:0}to{scale:1;opacity:.75}}
@keyframes leaf-sway{0%,100%{rotate:0deg}50%{rotate:6deg}}
.art-caption,.art-label{animation:copy-in 1s var(--ease-out) 1.6s both}
/* the arch curve was clipping this label; tuck it inside the curve */
.art-label{top:46px;right:96px}

/* Quiet drifting asterisks behind every sub-page hero */
.page-hero:before,.page-hero:after{
  content:"";display:block;width:1em;height:1em;background:currentColor;-webkit-mask:var(--ast) center/contain no-repeat;mask:var(--ast) center/contain no-repeat;position:absolute;pointer-events:none;color:#445d4b0e;
  animation:spin 70s linear infinite;
}
.page-hero:before{font-size:380px;line-height:1;right:-90px;top:-110px}
.page-hero:after{font-size:210px;line-height:1;left:-50px;bottom:-90px;animation-direction:reverse}
.page-hero>*{position:relative}

/* ---------- 7. Trust strip ---------- */
.trust-icon{display:inline-block;transition:rotate .8s var(--spring)}
.trust-strip>div:hover .trust-icon{rotate:90deg}
.js .trust-strip>div .trust-icon{opacity:0}
.trust-strip>div.in .trust-icon{animation:icon-in .9s calc(var(--i,0)*.15s) var(--spring) both}
@keyframes icon-in{from{opacity:0;scale:.3;rotate:-120deg}to{opacity:1;scale:1;rotate:0deg}}

/* ---------- 8. Product visuals ---------- */
.product-visual:before,.detail-visual:before{
  content:"";position:absolute;width:215px;height:215px;border-radius:50%;
  background:rgba(255,255,255,.38);animation:breathe var(--breath) ease-in-out infinite;
  animation-delay:calc(var(--i,0)*-2.2s);
}
.detail-visual:before{width:290px;height:290px}
.visual-spark{animation:spin 16s linear infinite}

.js .rv-panel{clip-path:inset(0 0 100% 0);transition:clip-path 1.1s var(--ease-out) calc(var(--i,0)*.14s)}
.js .rv-panel.in{clip-path:inset(0 0 0 0)}
.js .rv-panel .product-img{opacity:0}
.rv-panel.in .product-img{animation:bottle-rise 1.1s calc(.3s + var(--i,0)*.14s) var(--spring) both}
@keyframes bottle-rise{
  from{opacity:0;transform:translateY(80px) scale(var(--s,1)) rotate(-8deg)}
  to{opacity:1;transform:translateY(0) scale(var(--s,1)) rotate(0)}
}
/* Hover: the bottle lifts and tilts toward you */
.product-card .product-img{transition:translate .6s var(--spring),rotate .6s var(--spring)}
.product-card:hover .product-img{translate:0 -14px;rotate:-4deg}

.product-img{
  position:relative;z-index:1;height:auto;width:auto;object-fit:contain;
  max-height:80%;max-width:80%;filter:drop-shadow(0 20px 16px rgba(92,40,62,.24));
}
.product-visual .product-img{max-height:76%}
.detail-visual .product-img{max-height:82%;max-width:78%}
.pack-tags{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0!important;margin:18px 0 6px!important}
.pack-tags li{font-size:12px;line-height:1;padding:8px 12px;border:1px solid #f2acd8;border-radius:99px;color:var(--green-dark);background:var(--paper);transition:background-color .3s,transform .4s var(--spring)}
.pack-tags li:hover{background:#fad2eb;transform:translateY(-2px)}

/* ---------- 9. About page ---------- */
.js .rv-circle{clip-path:circle(0% at 50% 50%);transition:clip-path 1.5s var(--ease-out)}
.js .rv-circle.in{clip-path:circle(75% at 50% 50%)}
.story-circle{animation:breathe var(--breath) ease-in-out infinite}
.story-circle{background:#fff7fb}
.story-plant{transform:none;position:absolute;height:214px;margin-top:-14px;margin-right:12px;width:auto;font-size:0;animation:logo-float 7s ease-in-out infinite}
@keyframes logo-float{0%,100%{translate:0 0}50%{translate:0 -9px}}
.story-stamp:before{content:"";position:absolute;inset:-8px;border-radius:50%;border:1px dashed #c75fa1;animation:spin 32s linear infinite}

.about-orbit{
  position:relative;width:156px;height:156px;border:0;margin:34px auto 0;
  display:grid;place-items:center;
}
.about-orbit:before{
  content:"";position:absolute;inset:28px;border-radius:50%;border:1px solid #e1a7cc;
  animation:breathe var(--breath) ease-in-out infinite;
}
.about-orbit svg{position:absolute;inset:0;width:100%;height:100%;animation:spin 30s linear infinite}
.about-orbit text{font:600 10.5px var(--sans);letter-spacing:.18em;fill:var(--green)}
.about-orbit b{position:relative;font-size:30px;font-weight:400;color:var(--green);animation:spin 22s linear infinite reverse}

.values-grid article{border-top:0;position:relative}
.values-grid article:before{
  content:"";position:absolute;left:0;right:0;top:0;height:1px;background:#cd6aa9;
  transform-origin:left;transition:transform 1.2s var(--ease-out) calc(var(--i,0)*.16s);
}
.js .values-grid article:not(.in):before{transform:scaleX(0)}

/* ---------- 10. Quote ---------- */
.js .rv-words .w{opacity:.14;transition:opacity .7s calc(var(--w,0)*.05s)}
.js .rv-words.in .w{opacity:1}
.quote-flower{animation:spin 60s linear infinite}

/* ---------- 11. Newsletter ---------- */
.input-row{position:relative;border-bottom:0}
.input-row:before,.input-row:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:#ce90b7}
.input-row:after{height:2px;background:var(--green);transform:scaleX(0);transform-origin:left;transition:transform .55s var(--ease-out)}
.input-row:focus-within:after{transform:scaleX(1)}
.input-row button{transition:transform .35s var(--spring)}
.input-row button:hover{transform:translateX(6px)}

/* ---------- 12. Mobile menu ---------- */
@media(max-width:650px){
  .menu-toggle span{transition:transform .45s var(--ease-out)}
  .menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(3px) rotate(45deg)}
  .menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-3px) rotate(-45deg)}
  .main-nav{
    display:flex;visibility:hidden;clip-path:inset(0 0 100% 0);
    transition:clip-path .55s var(--ease-out),visibility 0s .55s;
  }
  .main-nav.open{visibility:visible;clip-path:inset(0 0 -40px 0);transition:clip-path .55s var(--ease-out),visibility 0s}
  .main-nav>a{opacity:0;translate:0 -10px;transition:opacity .35s,translate .5s var(--ease-out)}
  .main-nav.open>a{opacity:1;translate:0 0}
  .main-nav.open>a:nth-child(1){transition-delay:.08s}
  .main-nav.open>a:nth-child(2){transition-delay:.13s}
  .main-nav.open>a:nth-child(3){transition-delay:.18s}
  .main-nav.open>a:nth-child(4){transition-delay:.23s}
  .main-nav.open>a:nth-child(5){transition-delay:.28s}
  .page-hero:before{font-size:260px;right:-80px;top:-60px}
}
@media(max-width:850px){
  .hero-art .hero-product{scale:.85}
}

/* ---------- Reduced motion: no movement, content is simply present ---------- */
@media (prefers-reduced-motion:reduce){
  *,*:before,*:after{
    animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;transition-delay:0s!important;scroll-behavior:auto!important;
  }
  .marquee{justify-content:center}
  .marquee-track{animation:none}
  .marquee-track>:nth-child(n+5){display:none}
  .hero-art .hero-product,.hero-art .art-leaf{translate:none}
}

/* Phones: shrink the hero products so all three fit inside the arch */
@media(max-width:650px){
  .hero-art .hero-product{scale:.62}
  .hero-art .hp-one{left:calc(50% - 176px)}
  .hero-art .hp-two{left:calc(50% - 98px)}
  .hero-art .hp-three{left:calc(50% - 8px)}
}

/* ---------- iOS emoji fix ----------
   The characters ✳ and ↗ turn into colour emoji on iPhones, so the asterisk
   is drawn as an SVG mask instead (inherits colour, size and animation). */
:root{
  --ast:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5v19M2.5 12h19M5.3 5.3l13.4 13.4M18.7 5.3 5.3 18.7' stroke='%23000' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  --ast-curtain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5v19M2.5 12h19M5.3 5.3l13.4 13.4M18.7 5.3 5.3 18.7' stroke='%23f7b8e0' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}
.visual-spark,.trust-icon,.curtain span,.burst i,.quote-flower,.about-orbit b,.marquee-track b{
  display:block;width:1em;height:1em;background:currentColor;
  -webkit-mask:var(--ast) center/contain no-repeat;mask:var(--ast) center/contain no-repeat;
}
.trust-icon{display:inline-block}
.ico-arrow{display:block;width:1em;height:1em;flex:none}
.btn span .ico-arrow,.text-link span .ico-arrow{display:inline-block;vertical-align:-.14em}
.marquee-track b{padding:0;margin:0 24px;font-size:12px;align-self:center}
