/* One quiet companion across the shop; reactions happen only on intent. */
.site-companion{position:fixed;right:18px;bottom:16px;z-index:15;display:block;width:64px;height:150px;max-width:none;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;mix-blend-mode:multiply;pointer-events:none}
.site-companion[hidden]{display:none!important}
.site-companion .mascot-play{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer;pointer-events:auto}
.site-companion .mascot-play:focus-visible,.site-companion .mascot-pause:focus-visible,.site-companion .mascot-close:focus-visible{outline:2px solid #111;outline-offset:3px}
.site-companion .mascot-portrait{position:relative;display:block;width:64px;height:150px;overflow:hidden;border:0;border-radius:0;background:transparent;mix-blend-mode:normal;transform-origin:50% 95%;animation:companion-idle 5.8s ease-in-out infinite}
.site-companion .mascot-portrait img{position:absolute;display:block;width:176px;height:auto;max-width:none;left:-55px;top:-25px;filter:grayscale(1) contrast(1.12) brightness(1.12)}
.site-companion .mascot-close{position:absolute;right:-7px;top:-8px;display:grid;place-items:center;width:29px;height:29px;padding:0;border:0;border-radius:50%;background:#fff;color:#111;font:500 17px Arial,sans-serif;opacity:0;cursor:pointer;pointer-events:auto;transition:opacity .2s ease}
.site-companion .mascot-pause{position:absolute;left:-8px;top:-8px;display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:#fff;color:#111;font:600 11px Arial,sans-serif;opacity:0;cursor:pointer;pointer-events:auto;transition:opacity .2s ease}
.site-companion:hover .mascot-close,.site-companion:focus-within .mascot-close,.site-companion:hover .mascot-pause,.site-companion:focus-within .mascot-pause{opacity:1}
.site-companion .mascot-play::after{content:'';position:absolute;top:1px;left:-6px;width:31px;height:15px;background:url('/assets/onda-galileo.png') center/contain no-repeat;opacity:0;pointer-events:none}
.site-companion.is-nodding .mascot-portrait{animation-play-state:paused}
.site-companion.is-nodding .mascot-portrait img{animation:companion-nod .88s ease-in-out both;transform-origin:57% 24%}
.site-companion.is-happy .mascot-portrait{animation:companion-happy 1.1s ease-in-out both}
.site-companion.is-happy .mascot-play::after{animation:companion-mark 1.1s ease-out both}
.site-companion.is-paused .mascot-portrait,.site-companion.is-background .mascot-portrait{animation-play-state:paused}
body:has(dialog[open]) .site-companion{visibility:hidden}
@keyframes companion-idle{0%,46%,100%{transform:translateY(0) rotate(0)}62%{transform:translateY(-4px) rotate(-1.1deg)}78%{transform:translateY(-1px) rotate(.8deg)}}
@keyframes companion-nod{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(3px) rotate(2.4deg)}65%{transform:translateY(-2px) rotate(-1.6deg)}}
@keyframes companion-happy{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-5px) rotate(-2deg)}68%{transform:translateY(-2px) rotate(1.5deg)}}
@keyframes companion-mark{0%,100%{opacity:0;transform:translateY(5px) scale(.8)}35%,70%{opacity:1;transform:translateY(-3px) scale(1)}}
@media(max-width:700px){.site-companion{right:10px;bottom:12px;width:50px;height:118px}.site-companion .mascot-portrait{width:50px;height:118px}.site-companion .mascot-portrait img{width:138px;left:-43px;top:-20px}.site-companion .mascot-close{opacity:1;right:-6px;top:-9px}.site-companion .mascot-pause{opacity:.88;left:-6px;top:-9px}body.checkout-page .site-companion{display:none}}
@media(prefers-reduced-motion:reduce){.site-companion .mascot-portrait,.site-companion.is-nodding .mascot-portrait img,.site-companion.is-happy .mascot-portrait,.site-companion.is-happy .mascot-play::after{animation:none!important;transform:none!important}.site-companion .mascot-close,.site-companion .mascot-pause{transition:none}}

/* A small, grounded customer-help chat opened by Galileo's character. */
.galileo-chat-panel{position:fixed;right:22px;bottom:22px;z-index:70;display:flex;flex-direction:column;width:min(390px,calc(100vw - 32px));height:min(620px,calc(100dvh - 36px));padding:0;border:1px solid #d7d8d1;border-radius:20px;background:#fff;color:#182c24;box-shadow:0 18px 64px #102b2226;overflow:hidden;font-family:inherit}
.galileo-chat-panel[hidden]{display:none!important}
.galileo-chat-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px 20px 15px;border-bottom:1px solid #e8e9e4;background:#fbfbf7}
.galileo-chat-kicker{display:block;margin-bottom:7px;color:#62786d;font-size:.66rem;font-weight:700;letter-spacing:.14em}
.galileo-chat-header h2{margin:0;color:#172820;font-family:Georgia,serif;font-size:1.45rem;font-weight:500;line-height:1.2}
.galileo-chat-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid #dedfd8;border-radius:50%;background:#fff;color:#182c24;font-size:1.45rem;cursor:pointer}
.galileo-chat-close:focus-visible,.galileo-chat-form input:focus-visible,.galileo-chat-form button:focus-visible,.galileo-chat-account:focus-visible{outline:2px solid #246b50;outline-offset:3px}
.galileo-chat-messages{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:8px;min-height:0;padding:17px 16px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.galileo-chat-bubble{max-width:90%;margin:0;padding:11px 13px;border-radius:15px;background:#f2f4ef;color:#20352b;font-size:.91rem;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.galileo-chat-bubble--user{align-self:flex-end;background:#174b3a;color:#fff;border-bottom-right-radius:5px}
.galileo-chat-bubble--assistant{border-bottom-left-radius:5px}
.galileo-chat-privacy{margin:0;padding:0 17px 11px;color:#68736c;font-size:.7rem;line-height:1.45}
.galileo-chat-form{display:flex;gap:8px;padding:10px 13px 9px;border-top:1px solid #e8e9e4;background:#fff}
.galileo-chat-form input{min-width:0;flex:1;height:46px;padding:0 12px;border:1px solid #d4d8d0;border-radius:12px;background:#fff;color:#172820;font:inherit;font-size:.9rem}
.galileo-chat-form button{min-height:46px;padding:0 15px;border:0;border-radius:12px;background:#174b3a;color:white;font:inherit;font-size:.88rem;font-weight:650;cursor:pointer}
.galileo-chat-form button:disabled{opacity:.55;cursor:wait}
.galileo-chat-citation{max-width:90%;color:#25664c;font-size:.78rem;text-underline-offset:3px;overflow-wrap:anywhere}
.galileo-chat-account{align-self:flex-start;margin:0 16px 12px;color:#596b60;font-size:.76rem;text-underline-offset:3px}
.galileo-chat-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.galileo-chat-open .site-companion{visibility:hidden}
@media(max-width:700px){.galileo-chat-panel{right:10px;bottom:max(10px,env(safe-area-inset-bottom));width:calc(100vw - 20px);height:min(620px,calc(100dvh - 20px));border-radius:18px}.galileo-chat-header{padding:16px 16px 13px}.galileo-chat-messages{padding:14px 12px}.galileo-chat-form{padding:9px 10px}.galileo-chat-form button{padding:0 12px}}

/* Quiet, editorial Instagram link in the footer. */
footer .footer-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1fr);gap:32px 7%;align-items:start}
footer .footer-top>.footer-social{grid-column:2;display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:0;min-width:0}
footer .footer-top>.footer-social .footer-social-kicker{color:#72726e;font-size:.7rem;font-weight:600;letter-spacing:.12em;line-height:1.4;text-transform:uppercase}
.footer-social-link{display:inline-flex;align-items:center;gap:13px;max-width:100%;min-height:44px;color:#1d1d1b;text-decoration:none}
.footer-social-handle{min-width:0;color:#1d1d1b;font-size:clamp(1.15rem,2vw,1.55rem);font-weight:600;letter-spacing:-.03em;line-height:1.2;overflow-wrap:anywhere}
.footer-social-link:focus-visible{outline:2px solid #1d1d1b;outline-offset:4px}
footer .footer-top>.footer-legal{grid-column:1/-1;display:flex;flex-direction:row;justify-content:flex-start;flex-wrap:wrap;gap:12px 24px;margin:22px 0 0;padding-top:19px;border-top:1px solid #ddd;font-size:.8rem;line-height:1.5}
.footer-legal a{text-decoration:none}.footer-legal a:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:650px){footer .footer-top{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}footer .footer-top>.footer-social,footer .footer-top>.footer-legal{grid-column:1}footer .footer-top>.footer-legal{gap:9px 18px;margin-top:4px}.footer-social-handle{font-size:1.25rem}}

/* A compact search, available without adding a row of filters to the design. */
.category-search{width:min(100%,380px);margin:0 0 32px auto}
.category-search summary{width:max-content;margin-left:auto;padding:4px 0 9px;border-bottom:1px solid #111;cursor:pointer;font-size:.88rem;font-weight:700;list-style:none}
.category-search summary::-webkit-details-marker{display:none}
.category-search summary::before{content:'⌕';display:inline-block;margin-right:10px;font-size:1.2rem;line-height:.7;font-weight:400}
.category-search input{width:100%;min-height:48px;margin-top:12px;padding:8px 0;border:0;border-bottom:1px solid #999;border-radius:0;background:#fff;color:#111;font:inherit;font-size:1rem}
.category-search input:focus-visible{outline:2px solid #111;outline-offset:3px}
.category-search output{display:block;margin-top:7px;color:#666;font-size:.82rem}
.category-search output:empty{display:none}

/* Responsive companion: an intentional welcome, not an overlay or looping GIF. */
.companion-dock{display:flex;align-items:center;gap:20px;max-width:380px;margin:28px 0 0;padding:16px 0;border-top:1px solid var(--line,#ddd)}
.companion-dock[hidden]{display:none!important}
.companion-dock .site-companion{position:relative;inset:auto;flex:0 0 82px;width:82px;height:154px;z-index:auto;transform:none;transition:none;mix-blend-mode:normal;will-change:auto}
.companion-dock .mascot-portrait{width:82px;height:154px;animation:none;background:#fff}
.companion-dock .mascot-portrait img{width:176px;left:-45px;top:-25px;filter:none}
.companion-dock .mascot-play::after{display:none}
.companion-dock .mascot-close{opacity:1;right:-4px;top:-8px;width:44px;height:44px;background:transparent}
.companion-dock .mascot-pause{display:none}
.companion-greeting{margin:0;max-width:225px;font-size:.92rem;line-height:1.6;color:var(--muted,#666)}
footer>.companion-dock{margin:0 0 28px}
html{scroll-padding-top:24px}
@media(max-width:1024px){
  .hero-copy,.product-sheet-copy,.category-main{min-width:0}
  .header nav{flex-wrap:wrap;row-gap:12px}
  .product-sheet-copy .size-options{flex-wrap:wrap}
}
@media(max-width:700px){
  .companion-dock{gap:16px;margin-top:22px}
  .companion-dock .site-companion{flex-basis:72px;width:72px;height:138px}
  .companion-dock .mascot-portrait{width:72px;height:138px}
  .companion-dock .mascot-portrait img{width:158px;left:-41px;top:-23px}
  .header .brand-reveal,.header .brand-reveal[open]{width:clamp(150px,43vw,200px);min-width:150px}
  .header .brand-reveal summary,.header .brand-art{width:100%}
  .header nav a{min-height:44px;display:inline-flex;align-items:center}
  .product-header{flex-wrap:wrap;gap:12px}
  .product-header nav{flex-wrap:wrap;gap:12px 18px}
  .product-header nav a{min-height:44px;display:inline-flex;align-items:center}
  .size-options button{min-width:44px;min-height:44px}
  input,select,textarea{font-size:16px}
}
@media(max-width:380px){.header nav{gap:8px 14px;font-size:.8rem}.header-actions .bag{padding:9px 12px}.companion-greeting{font-size:.85rem}}
