/* menu: orange circle with dots that unfolds into a rounded panel */
.nav{position:fixed;z-index:70;top:calc(22px + env(safe-area-inset-top,0px));right:44px;width:56px;height:56px;border-radius:28px;background:var(--orange);overflow:hidden;transition:width .5s cubic-bezier(.7,0,.2,1),height .5s cubic-bezier(.7,0,.2,1),border-radius .5s cubic-bezier(.7,0,.2,1)}
.nav.open{width:212px;border-radius:28px}
.tog{position:absolute;z-index:2;top:0;right:0;width:56px;height:56px;border:0;background:none;cursor:pointer}
.dots,.x{position:absolute;inset:0;display:grid;place-items:center;transition:opacity .25s,transform .4s}
.dots i{display:block;width:5px;height:5px;border-radius:50%;background:#fff;margin:2px 0}
.x{opacity:0;transform:rotate(-90deg);font-size:0}
.x::before,.x::after{content:"";position:absolute;left:18px;top:27px;width:20px;height:2.5px;background:#fff;border-radius:2px;transform:rotate(45deg)}.x::after{transform:rotate(-45deg)}
.nav.open .dots{opacity:0;transform:rotate(90deg)}.nav.open .x{opacity:1;transform:none}
.list{padding:18px 20px 22px 40px;width:212px;pointer-events:none;opacity:0;transition:opacity .2s}.nav.open .list{pointer-events:auto;opacity:1;transition:opacity .35s .25s}
.list button{display:block;width:100%;text-align:left;background:none;border:0;padding:7px 0;font-weight:500;font-size:15px;cursor:pointer;line-height:1.3}
.list button:hover{text-decoration:underline}.list .dim{opacity:.6}.list .sub{padding-left:14px}
.list .grp{font-size:11px;font-weight:500;opacity:.65;margin:10px 0 2px}

/* content sheet */
.sheet{position:fixed;inset:0;z-index:80;display:grid;place-items:center;background:rgba(43,26,5,.35);opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s .3s}
.sheet.on{opacity:1;visibility:visible;transition:opacity .3s}
.sheet .box{position:relative;width:min(92vw,480px);--p:34px;padding:var(--p);border-radius:28px;background:var(--orange);transform:scale(.85);transition:transform .45s cubic-bezier(.3,1.5,.5,1)}
.sheet.on .box{transform:none}
.box h2{margin:0 0 24px;font-size:30px;line-height:1.15;padding-right:56px;color:#fff;min-height:40px;height:40px;display:flex;align-items:center}.box p{margin:0;font-size:17px;line-height:1.55;font-weight:500;color:#fff3df}
.box .cl{position:absolute;top:var(--p);right:var(--p);width:40px;height:40px;border:0;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='%23fea831' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px 14px no-repeat;font-size:0;color:transparent;padding:0;cursor:pointer}
.box .ml{display:flex;flex-direction:column;gap:12px;font-weight:500;font-size:18px}.box .ml a{text-decoration:none}.box .ml a:hover{text-decoration:underline}

/* loader: 3 seconds, orange fades out while the ring of text keeps spinning */
.loader{position:fixed;inset:0;z-index:100;display:grid;place-items:center;pointer-events:none}
.loader .bgfade{position:absolute;inset:0;background:var(--orange);animation:fade 5s cubic-bezier(.45,0,.6,1) forwards}
.loader{--r:clamp(230px,18vw,340px)}
.ring{grid-area:1/1;position:relative;overflow:visible;width:var(--r);aspect-ratio:1;animation:spin 5s linear forwards,txt 5s ease-in forwards}
.ring text{font-family:var(--round);font-weight:500;font-size:19px;fill:#fff}
@keyframes fade{0%,15%{opacity:1}100%{opacity:0}}
@keyframes spin{to{transform:rotate(450deg)}}
@keyframes txt{0%,70%{opacity:1}100%{opacity:0}}

/* page transition: orange fills the screen from the bottom */
.wipe{position:fixed;inset:0;z-index:200;background:var(--orange);transform:translateY(101%);transition:transform .8s cubic-bezier(.7,0,.2,1);pointer-events:none}
.wipe.on{transform:none;pointer-events:auto}
/* message form */
.box input,.box textarea{display:block;width:100%;font:inherit;font-size:16px;border:0;border-radius:14px;padding:14px 18px;margin-bottom:14px;color:#3b3224;background:#fff;resize:vertical}
.box input::placeholder,.box textarea::placeholder{color:#a39a85}
.box textarea{min-height:128px}
.box .row2{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}
.box .go{border:0;border-radius:99px;background:#fff;color:var(--orange);font:inherit;font-weight:500;padding:13px 26px;cursor:pointer}
.box .go.ghost{background:rgba(255,255,255,.25);color:#fff}

/* text inside the spinning ring: appears, stays, fades out with the loader */
.inside{grid-area:1/1;position:relative;width:calc(var(--r)*.62);text-align:center;color:#fff;font-family:var(--round);opacity:0;animation:ins 5s ease-in-out forwards}
.inside small{display:block;white-space:nowrap;font-size:calc(var(--r)*.058);line-height:1.25;font-weight:500}
.inside b{display:block;margin-top:calc(var(--r)*.05);font-size:calc(var(--r)*.165);line-height:1;font-weight:500;letter-spacing:-.01em}
@keyframes ins{0%,6%{opacity:0;transform:translateY(12px) scale(.92)}16%{opacity:1;transform:none}70%{opacity:1;transform:none}100%{opacity:0}}

/* language switcher */
.list .lg-btn{display:flex;align-items:center;gap:10px;margin-top:12px;padding:4px 0}
.lg-ico{position:relative;display:block;width:36px;height:36px;flex:none;filter:drop-shadow(0 2px 3px rgba(150,70,0,.25))}
.lg-ico.globe{animation:wob 5s ease-in-out infinite}
.lg-ico.pop{animation:lpop .7s cubic-bezier(.3,1.5,.5,1)}
.lg-ico .sp{transform-box:fill-box;transform-origin:center;animation:twk 2.2s ease-in-out infinite}
.bst{position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px;border-radius:50%;pointer-events:none}
@keyframes wob{0%,84%,100%{transform:rotate(0)}88%{transform:rotate(-12deg)}93%{transform:rotate(10deg)}97%{transform:rotate(-4deg)}}
@keyframes lpop{0%{transform:scale(.2) rotate(-200deg);opacity:0}60%{transform:scale(1.18) rotate(12deg);opacity:1}100%{transform:none;opacity:1}}
@keyframes twk{50%{transform:scale(.55) rotate(20deg);opacity:.7}}
.lg-row{display:flex;gap:8px;margin-left:-24px;height:0;pointer-events:none}
.lg-row.open{height:56px;pointer-events:auto}
.list .lc{display:block;width:38px;height:38px;padding:0;margin-top:10px;border-radius:50%;transform:scale(.3);opacity:0;transition:transform .4s cubic-bezier(.3,1.7,.5,1),opacity .25s;transition-delay:calc(var(--n)*55ms)}
.lg-row.open .lc{transform:none;opacity:1}
.list .lc:hover{text-decoration:none;transform:translateY(-3px) scale(1.08);transition-delay:0s}
.list .lc.sel{box-shadow:0 0 0 3px rgba(255,255,255,.95),0 0 0 6px rgba(255,255,255,.35)}

/* text swap animation when language changes */
.sw{animation:sw .55s cubic-bezier(.2,.8,.3,1) both;animation-delay:calc(var(--d,0)*35ms)}
@keyframes sw{from{opacity:0;transform:translateY(10px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}

/* even spacing: same breathing room at the top and the bottom of the panel, in both states */
.list{padding:18px 20px 28px 40px}
.list .lg-btn{padding:0;margin-top:14px}
.lg-row{overflow:hidden}
.lg-row.open{height:48px;overflow:visible}

/* the menu looks identical on every page: explicit colours, never inherited from the page */
.nav,.nav .list,.nav .list button,.nav .list .grp{color:#fff}
.nav .list{font-family:var(--round)}

/* emoji life: the hand waves and the eyes look around for ~2.5s, then everything rests for 3s */
.wave,.eyes{display:inline-block;will-change:transform}
.wave{transform-origin:72% 82%;animation:wave 5.5s ease-in-out 5.6s infinite}
.eyes{animation:look 5.5s ease-in-out 6.2s infinite}
@keyframes wave{0%{transform:rotate(0)}5%{transform:rotate(16deg)}10%{transform:rotate(-10deg)}15%{transform:rotate(16deg)}20%{transform:rotate(-10deg)}25%{transform:rotate(16deg)}30%{transform:rotate(-8deg)}36%{transform:rotate(10deg)}42%,100%{transform:rotate(0)}}
@keyframes look{0%{transform:translate(0,0)}7%,15%{transform:translate(-.14em,0)}24%,32%{transform:translate(.14em,0)}38%{transform:translate(0,-.1em)}45%,100%{transform:translate(0,0)}}
@media (prefers-reduced-motion:reduce){.wave,.eyes{animation:none}}
.box p+p{margin-top:14px}
