/* The owner's Scottish Fold and a small R35 share the build-note stage. */
.site-build-note{overflow:visible}
.site-build-note .site-build-note-inner{position:relative}
.site-build-note .site-note-mascots{position:relative;isolation:isolate;display:block;flex:0 0 220px;width:220px;align-self:stretch;min-height:67px;overflow:visible;pointer-events:none}
.site-build-note .site-note-mascots img{position:absolute;display:block;max-width:none;object-fit:contain;transform:none;animation:none;filter:drop-shadow(0 5px 5px rgba(0,0,0,.44))}
.site-build-note .site-note-mascots .site-cat-mascot,.site-build-note .site-note-mascots .site-cat-paw{z-index:3;left:0;bottom:-30px;width:105px;height:110px;object-position:center bottom;transform-origin:55% 83%}
.site-build-note .site-note-mascots .site-cat-paw{z-index:5;clip-path:polygon(51% 62%,100% 61%,100% 100%,51% 100%);filter:none;transform-origin:76% 78%}
.site-build-note .site-note-car-wrap{position:absolute;z-index:4;left:75px;bottom:-18px;display:block;width:145px;height:70px;transform-origin:43% 85%}
.site-build-note .site-note-car-wrap .site-note-car{inset:0;width:100%;height:100%;object-position:center bottom}
.site-build-note .site-note-car-wrap:after{content:"";position:absolute;z-index:2;left:7%;top:46%;width:24px;height:16px;border-radius:50%;background:radial-gradient(circle at 36% 50%,rgba(255,255,255,.97),rgba(255,244,208,.67) 18%,rgba(255,232,182,.2) 43%,transparent 72%);filter:blur(2px);mix-blend-mode:screen;opacity:0;pointer-events:none}
.site-build-note.is-dismissed .site-note-mascots{display:none}
@media(prefers-reduced-motion:no-preference){
  .site-build-note.site-note-ready .site-note-mascots:not(.is-active) .site-cat-mascot,.site-build-note.site-note-ready .site-note-mascots:not(.is-active) .site-cat-paw{opacity:0;transform:translateY(24px) rotate(-5deg)}
  .site-build-note.site-note-ready .site-note-mascots:not(.is-active) .site-note-car-wrap{opacity:0;transform:translateX(48px)}
  .site-build-note .site-note-mascots.is-active .site-cat-mascot{animation:site-cat-emerge 1.1s cubic-bezier(.2,.75,.25,1) both,site-cat-breathe 5.8s ease-in-out 2.77s infinite}
  .site-build-note .site-note-mascots.is-active .site-note-car-wrap{animation:site-car-arrive 1.35s cubic-bezier(.24,.7,.27,1) .22s both}
  .site-build-note .site-note-mascots.is-active .site-note-car-wrap:after{animation:site-car-headlight 1.4s ease-in-out 1.25s both}
  .site-build-note .site-note-mascots.is-active .site-cat-paw{animation:site-cat-paw 2.45s ease-in-out .32s both,site-cat-breathe 5.8s ease-in-out 2.77s infinite}
}
@keyframes site-cat-emerge{0%{opacity:0;transform:translateY(24px) rotate(-5deg)}52%{opacity:1;transform:translateY(-2px) rotate(1deg)}100%{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes site-cat-breathe{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2px) rotate(1deg)}}
@keyframes site-car-arrive{0%{opacity:0;transform:translateX(48px) rotate(0)}42%{opacity:1}67%{transform:translateX(-6px) rotate(-1.8deg)}80%{transform:translateX(3px) rotate(.7deg)}100%{opacity:1;transform:translateX(0) rotate(0)}}
@keyframes site-car-headlight{0%,22%,44%,100%{opacity:0}9%,32%{opacity:.9}}
@keyframes site-cat-paw{0%,54%{opacity:0;transform:translateY(24px) rotate(-5deg)}67%{opacity:1;transform:translate(7px,-3px) rotate(-7deg)}76%{transform:translate(9px,-4px) rotate(-5deg)}100%{opacity:1;transform:translateY(0) rotate(0)}}
@media(max-width:700px){
  .site-build-note .site-note-mascots{flex-basis:123px;width:123px;min-height:68px}
  .site-build-note .site-note-mascots .site-cat-mascot,.site-build-note .site-note-mascots .site-cat-paw{left:-5px;bottom:-22px;width:76px;height:80px}
  .site-build-note .site-note-car-wrap{left:44px;bottom:-16px;width:79px;height:39px}
  .site-build-note .site-note-car-wrap:after{width:16px;height:11px}
}
@media(max-width:360px){
  .site-build-note .site-note-mascots{flex-basis:101px;width:101px}
  .site-build-note .site-note-mascots .site-cat-mascot,.site-build-note .site-note-mascots .site-cat-paw{width:70px;height:73px}
  .site-build-note .site-note-car-wrap{left:31px;width:70px;height:35px}
}
@media(prefers-reduced-motion:reduce){
  .site-build-note .site-note-mascots .site-cat-mascot,.site-build-note .site-note-mascots .site-cat-paw,.site-build-note .site-note-car-wrap{animation:none!important;transform:none!important;opacity:1!important}
  .site-build-note .site-note-car-wrap:after{display:none}
}
.motion-off .site-build-note .site-note-mascots .site-cat-mascot,.motion-off .site-build-note .site-note-mascots .site-cat-paw,.motion-off .site-build-note .site-note-car-wrap{animation:none!important;transform:none!important;opacity:1!important}
.motion-off .site-build-note .site-note-car-wrap:after{display:none!important}

/* A deliberate, visitor-initiated replay of the real R35 recording. */
.site-build-note .site-note-bubble{flex:1 1 360px;min-width:0}
.site-build-note .site-note-audio{display:flex;flex:0 0 173px;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.site-build-note .site-note-audio[hidden],.site-build-note.is-dismissed .site-note-audio{display:none!important}
.site-build-note .site-note-audio-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin:0;padding:0 12px;width:auto;min-width:137px;height:34px;border:1px solid #d88189;border-radius:999px;background:linear-gradient(110deg,#4c252e,#2a202a);color:#fff;font-size:11px;font-weight:750;letter-spacing:.015em;white-space:nowrap;box-shadow:0 0 0 1px rgba(255,255,255,.05) inset;transition:background .2s,border-color .2s,transform .2s}
.site-build-note .site-note-audio-button:hover{background:#703442;border-color:#f4a5aa;transform:translateY(-1px)}
.site-build-note .site-note-audio-button[aria-pressed="true"]{border-color:#f4a5aa;background:#583843}
.site-build-note .site-note-audio-credit{font-size:10px;line-height:1.25;color:#cbd6de;text-decoration-color:#82939e;text-underline-offset:2px}
@media(max-width:700px){
  .site-build-note .site-build-note-inner{display:grid;grid-template-columns:minmax(101px,123px) minmax(0,1fr) 32px;column-gap:8px;row-gap:4px;align-items:center}
  .site-build-note .site-note-mascots{grid-column:1;grid-row:1 / span 2}
  .site-build-note .site-note-bubble{grid-column:2;grid-row:1;align-self:center}
  .site-build-note [data-note-dismiss]{grid-column:3;grid-row:1;margin:0}
  .site-build-note .site-note-audio{grid-column:2 / 4;grid-row:2;flex-direction:row;flex-wrap:wrap;align-items:center;gap:3px 8px}
  .site-build-note .site-note-audio-button{height:31px;min-width:124px;padding:0 9px;font-size:10px}
  .site-build-note .site-note-audio-credit{font-size:10px}
  .site-build-note .site-note-quiet{grid-column:1 / -1}
  .site-build-note.is-dismissed .site-build-note-inner{display:flex}
}
@media(max-width:360px){
  .site-build-note .site-build-note-inner{grid-template-columns:101px minmax(0,1fr) 32px;column-gap:6px}
}
@media(prefers-reduced-motion:reduce){.site-build-note .site-note-audio-button{transition:none}}
.motion-off .site-build-note .site-note-audio-button{transition:none}
/* Owner's original cat, smooth restrained motion, and the shared TOP control. */
.owner-mascot{padding:0;border:0;background:transparent;cursor:pointer;position:fixed;right:max(86px,calc(78px + env(safe-area-inset-right)));bottom:max(20px,env(safe-area-inset-bottom));z-index:27;width:82px;height:116px;display:block;filter:drop-shadow(0 4px 8px #0003);transition:filter .25s ease;transform-origin:50% 85%}
.owner-mascot img{display:block;width:100%;height:100%;object-fit:contain;animation:owner-cat-breathe 6s cubic-bezier(.45,0,.55,1) infinite;transform-origin:50% 85%}
.owner-mascot:hover{filter:drop-shadow(0 5px 10px #0005)}.owner-mascot:focus-visible{outline:3px solid #ed4f61;outline-offset:4px;border-radius:14px}
.owner-mascot.is-meowing img{animation:owner-cat-greet .65s cubic-bezier(.2,.7,.3,1) both}
@keyframes owner-cat-breathe{0%,100%{transform:translateY(0) rotate(-.5deg) scaleY(1)}50%{transform:translateY(-3px) rotate(.5deg) scaleY(1.012)}}
@keyframes owner-cat-greet{0%,100%{transform:translateY(0) rotate(0)}45%{transform:translateY(-5px) rotate(-4deg)}}
.owner-back-top{position:fixed;z-index:27;right:24px;bottom:max(20px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;width:53px;height:53px;border:1px solid #ffffff99;border-radius:50%;background:#151c25;color:#fff;box-shadow:0 10px 27px #0004,0 0 0 3px #cc303b38;font:800 9px/1 system-ui;letter-spacing:.12em;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(16px);transition:opacity .24s ease,transform .24s ease,visibility .24s}
.owner-back-top.is-visible{opacity:1;visibility:visible;transform:none}.owner-back-top:hover{box-shadow:0 10px 27px #0004,0 0 0 5px #cc303b5c}.owner-back-top:focus-visible{outline:3px solid #f87580;outline-offset:4px}.owner-back-top>span:first-child{font-size:24px;line-height:.8}

.site-note-mascots .site-cat-mascot,.site-note-mascots .site-cat-paw{display:none!important}.site-note-mascots .site-gtr-wrap{left:30px}
@media(prefers-reduced-motion:reduce){.owner-mascot img,.owner-mascot.is-meowing img{animation:none!important;transform:none!important}.owner-mascot,.owner-back-top{transition:none!important}}
.motion-off .owner-mascot img,.motion-off .owner-mascot.is-meowing img{animation:none!important;transform:none!important}.motion-off .owner-back-top{transition:none!important}

.owner-back-top.is-visible>span:first-child{animation:owner-top-cue 5s ease-in-out infinite}
.owner-back-top:hover>span:first-child{animation:none;transform:translateY(-3px)}
@keyframes owner-top-cue{0%,70%,100%{opacity:1;transform:translateY(0)}80%{opacity:.5;transform:translateY(2px)}90%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.owner-back-top>span:first-child{animation:none!important;transform:none!important}}
.motion-off .owner-back-top>span:first-child{animation:none!important;transform:none!important}

@media(max-width:700px){.owner-mascot{right:70px;bottom:max(82px,calc(74px + env(safe-area-inset-bottom)));width:58px;height:88px}.site-note-mascots .site-gtr-wrap{left:25px}}

/* A compact pair: the red return arrow sits immediately to the cat's left. */
.owner-mascot-widget{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:27;display:flex;align-items:flex-end;gap:0;width:104px;height:94px;pointer-events:none}
.owner-mascot-widget .owner-mascot{position:relative;inset:auto;flex:0 0 64px;width:64px;height:94px;pointer-events:auto;margin-left:-4px}
.owner-mascot-widget .owner-back-top,.owner-mascot-widget .site-back-top{position:relative;inset:auto;order:-1;flex:0 0 44px;width:44px;height:44px;margin-bottom:2px;flex-direction:row;gap:0;border:0;border-radius:12px;background:transparent;color:#da2944;box-shadow:none;letter-spacing:0;pointer-events:none;visibility:hidden;opacity:0;transform:translateY(6px);transition:opacity .24s ease,transform .24s ease,visibility .24s}
.owner-mascot-widget .owner-back-top.is-visible,.owner-mascot-widget .site-back-top.is-visible{visibility:visible;opacity:1;transform:none;pointer-events:auto}
.owner-mascot-widget .owner-back-top>span,.owner-mascot-widget .site-back-top-arrow{font:800 34px/1 system-ui;filter:drop-shadow(0 1px 2px #fff9);animation:none}
.owner-mascot-widget .owner-back-top.is-visible>span,.owner-mascot-widget .site-back-top.is-visible .site-back-top-arrow{animation:owner-arrow-hover 3s ease-in-out infinite}
.owner-mascot-widget .owner-back-top:hover,.owner-mascot-widget .site-back-top:hover{background:#da294414;box-shadow:none;color:#b71632}
.owner-mascot-widget .owner-back-top:hover>span,.owner-mascot-widget .site-back-top:hover .site-back-top-arrow{animation:none;transform:translateY(-4px)}
@keyframes owner-arrow-hover{0%,100%{transform:translateY(0);opacity:.8}50%{transform:translateY(-5px);opacity:1}}
@media(max-width:700px){.owner-mascot-widget{right:max(12px,env(safe-area-inset-right));bottom:max(82px,calc(74px + env(safe-area-inset-bottom)));width:90px;height:70px}.owner-mascot-widget .owner-mascot{flex-basis:50px;width:50px;height:70px}}
@media(prefers-reduced-motion:reduce){.owner-mascot-widget .owner-back-top,.owner-mascot-widget .site-back-top{transition:none!important}.owner-mascot-widget .owner-back-top>span,.owner-mascot-widget .site-back-top-arrow{animation:none!important;transform:none!important}}
.motion-off .owner-mascot-widget .owner-back-top>span,.motion-off .owner-mascot-widget .site-back-top-arrow{animation:none!important;transform:none!important}

/* Slim red arrow, tucked beside the mascot's paws. */
.owner-mascot-widget{width:90px;height:80px}
.owner-mascot-widget .owner-mascot{flex:0 0 68px;width:68px;height:80px;margin-left:-6px}
.owner-mascot-widget .owner-back-top,.owner-mascot-widget .site-back-top{flex:0 0 28px;width:28px;height:32px;margin-bottom:2px;border-radius:8px}
.owner-mascot-widget .owner-back-top>span,.owner-mascot-widget .site-back-top-arrow{display:block;width:18px;height:24px;margin-left:4px;font-size:0;filter:drop-shadow(0 1px 1px #fff6)}
.owner-mascot-widget svg{display:block;width:18px;height:24px}
@media(max-width:700px){.owner-mascot-widget{width:76px;height:64px}.owner-mascot-widget .owner-mascot{flex-basis:54px;width:54px;height:64px}}

/* Full photographic two-frame blink above a small, dimensional name plaque. */
body .owner-mascot-widget:has(.owner-mascot.is-kwita.has-photo-billboard){right:max(16px,env(safe-area-inset-right,0px));bottom:max(20px,env(safe-area-inset-bottom,0px));z-index:10011;width:144px;height:140px;gap:4px;align-items:flex-end;overflow:visible;pointer-events:none}
body .owner-mascot-widget .owner-mascot.is-kwita.has-photo-billboard{--mascot-x:0px;--mascot-y:0px;position:relative;inset:auto;display:block;flex:0 0 112px;width:112px;height:140px;margin:0;padding:0;border:0;border-radius:17px;background:transparent;box-shadow:none;filter:none;overflow:visible;pointer-events:auto;transform:none}
body .owner-mascot-widget .owner-mascot.is-kwita.has-photo-billboard::before{content:"";position:absolute;z-index:1;inset:auto 0 0;height:44px;border:1px solid #d0cbd7;border-radius:17px;background:radial-gradient(ellipse at 50% 0,#49355324,transparent 58%),linear-gradient(170deg,#fffdf9 6%,#eeebf1 100%);box-shadow:inset 0 1px 0 #fff,0 7px 18px #20182d26,0 1px 2px #20182d17;pointer-events:none}
body .owner-mascot-widget .owner-mascot.is-kwita.has-photo-billboard>.cat-photo-sprite{position:absolute;z-index:2;inset:auto auto 36px calc(50% - 50px);display:block;width:100px;height:100px;margin:0;border:0;background:url('/brand/scottish-second-mascot-blink.webp') 0 center/200% 100% no-repeat;filter:drop-shadow(0 4px 4px #251e2d33);transform-origin:50% 85%;animation:kwita-billboard-breathe 6.8s ease-in-out infinite;pointer-events:none}
body .owner-mascot-widget .owner-mascot.is-kwita.is-blinking>.cat-photo-sprite{background-position:100% center}
body .owner-mascot-widget .owner-mascot.is-kwita .kwita-launch-label{position:absolute;z-index:3;inset:auto 0 5px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;width:100%;height:24px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#40334d;box-shadow:none;transform:none;font:700 12px/1.1 system-ui;white-space:nowrap;pointer-events:none}
body .owner-mascot-widget .owner-mascot.is-kwita .kwita-launch-label::after{content:"AI guide";color:#6d6275;font:500 9px/1.1 system-ui;letter-spacing:.03em}
body .owner-mascot-widget:has(.owner-mascot.is-kwita) .owner-back-top,body .owner-mascot-widget:has(.owner-mascot.is-kwita) .site-back-top{margin-bottom:8px}
body .owner-mascot-widget .owner-mascot.is-kwita:focus-visible{outline:3px solid #765b92;outline-offset:4px}
@keyframes kwita-billboard-breathe{0%,100%{transform:translate3d(var(--mascot-x,0px),var(--mascot-y,0px),0) scaleY(1)}50%{transform:translate3d(var(--mascot-x,0px),calc(var(--mascot-y,0px) - 1px),0) scaleY(1.008)}}
body .owner-mascot-widget .owner-mascot.is-kwita.is-resting>.cat-photo-sprite,body .owner-mascot-widget .owner-mascot.is-kwita[data-motion=off]>.cat-photo-sprite,body.motion-off .owner-mascot-widget .owner-mascot.is-kwita>.cat-photo-sprite{animation:none!important;transform:none!important;background-position:0 center}
@media(max-width:700px){
  body .owner-mascot-widget:has(.owner-mascot.is-kwita.has-photo-billboard){right:max(12px,env(safe-area-inset-right,0px));bottom:max(82px,calc(74px + env(safe-area-inset-bottom,0px)));width:124px;height:122px}
  body .owner-mascot-widget .owner-mascot.is-kwita.has-photo-billboard{flex-basis:92px;width:92px;height:122px}
  body .owner-mascot-widget .owner-mascot.is-kwita.has-photo-billboard::before{height:38px;border-radius:15px}
  body .owner-mascot-widget .owner-mascot.is-kwita.has-photo-billboard>.cat-photo-sprite{inset:auto auto 31px calc(50% - 41px);width:82px;height:82px}
  body .owner-mascot-widget .owner-mascot.is-kwita .kwita-launch-label{height:22px;font-size:11px}
  body .owner-mascot-widget .owner-mascot.is-kwita .kwita-launch-label::after{font-size:8px}
}
@media(prefers-reduced-motion:reduce){body .owner-mascot-widget .owner-mascot.is-kwita>.cat-photo-sprite{animation:none!important;transform:none!important;background-position:0 center}}
/* A visible TOP child must not override the open chat's hidden widget. */
body .owner-mascot-widget:has(.kwita-cat-trigger[aria-expanded="true"])> *{visibility:hidden!important;pointer-events:none!important}

/* The photographic head greets once; no invented tail is added to this portrait. */
body .owner-mascot-widget .owner-mascot.is-kwita.is-greeting>.cat-photo-sprite{animation:kwita-billboard-greet .7s cubic-bezier(.2,.7,.3,1) both}
@keyframes kwita-billboard-greet{0%,100%{transform:translate3d(var(--mascot-x,0px),var(--mascot-y,0px),0) rotate(0)}42%{transform:translate3d(var(--mascot-x,0px),calc(var(--mascot-y,0px) - 2px),0) rotate(-2deg)}72%{transform:translate3d(var(--mascot-x,0px),var(--mascot-y,0px),0) rotate(1deg)}}
