/* Loop is part of the page, never a fixed widget or an overlay on the content. */
.loop-laugh-mouth,.loop-sad-mouth,.loop-tears { display:none; }
.loom-companion { position:relative; width:190px; max-width:100%; margin:0; text-align:center; justify-self:center; }
.mascot-drift { transform:translateY(var(--loop-scroll-y,0px)) rotate(var(--loop-scroll-tilt,0deg)); }
.mascot-button { display:block; width:100%; position:relative; padding:0; background:none; color:var(--black); border:0; border-radius:45%; touch-action:manipulation; }
.mascot-button img,.mascot-button svg { display:block; width:100%; height:auto; aspect-ratio:1; overflow:visible; }
.mascot-button:focus-visible { outline:2px dashed var(--red); outline-offset:5px; }
.mascot-caption { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:-2px; font-size:10px; line-height:1.5; color:var(--gray); }
.mascot-caption strong { font-size:12px; font-weight:600; color:var(--black); }
.mascot-caption span::before { content:'·'; margin-right:8px; color:var(--red); }
.mascot-bubble { position:absolute; z-index:20; left:50%; bottom:calc(100% - 32px); width:220px; max-width:70vw; transform:translateX(-50%); margin:0; padding:14px 17px; border:1px solid var(--black); border-radius:20px 20px 20px 4px; background:var(--cream); color:var(--black); font-size:13px; line-height:1.4; box-shadow:4px 5px 0 #FF00261A; pointer-events:none; }
.mascot-bubble:empty { display:none; }
.loop-character { transform-origin:120px 195px; }
.loop-arm-left { transform-origin:69px 130px; transition:transform .4s var(--ease); }
.loop-arm-right { transform-origin:176px 135px; transition:transform .4s var(--ease); }
.loop-eyes { transform-origin:125px 110px; }
.loop-pupils { transform:translate(var(--loop-look-x,0px),var(--loop-look-y,0px)); transition:transform .14s ease-out; }
.loop-smile { transform-origin:124px 150px; transition:transform .35s var(--ease); }
.loop-sparks { opacity:0; transform-origin:120px 120px; transition:opacity .3s,transform .4s var(--ease); transform:scale(.8); }
.is-awake .loop-eyes { animation:loop-blink 6.8s 1s infinite; }
.mascot-button:hover .loop-arm-left,.mascot-button:focus-visible .loop-arm-left { transform:rotate(24deg); }
.mascot-button:hover .loop-arm-right,.mascot-button:focus-visible .loop-arm-right { transform:rotate(-14deg); }
.mascot-button:hover .loop-smile { transform:scale(1.15); }
.mascot-button:hover .loop-sparks,.mascot-button:focus-visible .loop-sparks,.is-playing .loop-sparks { opacity:1; transform:scale(1); }
.is-playing .loop-arm-left { animation:loop-wave .22s ease-in-out 4 alternate; }
.is-playing .loop-eyes { animation:loop-wink .7s both; }
.loop-intro-row { display:grid; grid-template-columns:200px minmax(0,670px); justify-content:space-between; align-items:center; gap:50px; margin-top:35px; }
.loop-intro-row>p { font-size:20px; line-height:1.65; }
.intro-with-loop { display:flex; align-items:center; justify-content:space-between; gap:40px; margin-top:35px; }
.intro-with-loop .intro-copy { margin:0; }
.intro-with-loop .loom-companion { width:200px; flex-shrink:0; margin-right:4vw; }
.contact-form-intro .loom-companion { margin:40px 0 0; width:155px; }
.contact-form-intro>p:not(.eyebrow) { font-size:16px; max-width:310px; line-height:1.7; }
.contact-form-intro .mascot-bubble { left:0; transform:none; }
@keyframes loop-blink { 0%,43%,47%,100% { transform:scaleY(1); } 45% { transform:scaleY(.07); } }
@keyframes loop-wave { from { transform:rotate(12deg); } to { transform:rotate(40deg); } }
@keyframes loop-wink { 0%,100% { transform:scaleY(1); } 30%,50% { transform:scaleY(.12); } }
@media(max-width:800px) {
  .loop-intro-row { grid-template-columns:135px minmax(0,1fr); gap:24px; }
  .loop-intro-row .loom-companion { width:135px; }
  .loop-intro-row>p { font-size:17px; }
  .intro-with-loop { gap:25px; }
  .intro-with-loop .loom-companion { width:145px; margin:0; }
  .mascot-bubble { width:190px; font-size:12px; }
}
@media(max-width:560px) {
  .loop-intro-row { display:flex; flex-direction:column-reverse; align-items:stretch; gap:22px; }
  .loop-intro-row .loom-companion { align-self:flex-end; margin-right:15px; }
  .intro-with-loop { flex-direction:column; align-items:stretch; gap:15px; }
  .intro-with-loop .loom-companion { align-self:flex-end; margin-right:15px; }
  .loop-intro-row .mascot-bubble,.intro-with-loop .mascot-bubble { left:auto; right:0; transform:none; }
  .contact-form-intro .loom-companion { width:120px; margin-top:28px; }
  .mascot-caption { gap:5px; font-size:9px; }.mascot-caption strong { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
  .loom-companion * { animation:none!important; transition:none!important; }
  .mascot-drift,.loop-pupils { transform:none!important; }
}
.motion-off .loom-companion * { animation:none!important; transition:none!important; }
.motion-off .mascot-drift,.motion-off .loop-pupils { transform:none!important; }
