/* Ground the welcome mascot behind the foreground menu, without moving cards. */
.home-benny{position:relative;top:92px;left:-26px;pointer-events:none;filter:drop-shadow(1px 4px 3px #49301f38)}
.station-grid{position:relative;z-index:2}
.home-copy{z-index:1}
/* The lower body is occluded by the card. A small anchored sway replaces lift. */
@keyframes benny-idle{
  0%,12%,100%{transform:rotate(0)}
  43%{transform:rotate(-.3deg)}
  66%{transform:rotate(.16deg)}
  84%{transform:rotate(0)}
}

/* Solid live letters retain a readable fallback. The aligned, clipped glaze
   adds rich interiors above the chocolate edge, without altering the glyphs. */
.home-copy h1.bakery-wordmark{color:#eab057;text-shadow:0 1px 0 #fff0bd,0 2px 0 #d79744,0 3px 0 #d79744,1px 4px 0 #b5773d,2px 5px 0 #653b24}
.bakery-wordmark>span{position:relative}
.bakery-wordmark>.word-kitchen{color:#e37c87;text-shadow:0 1px 0 #ffe3c1,0 2px 0 #c76763,0 3px 0 #c76763,1px 4px 0 #a45845,2px 5px 0 #653b24}
@supports (background-clip:text){
  .bakery-wordmark>span::after{
    content:attr(data-word);position:absolute;inset:0;pointer-events:none;
    color:transparent;-webkit-text-fill-color:transparent;-webkit-text-stroke:0;text-shadow:none;
    background-image:linear-gradient(108deg,transparent 44%,#fff8d58c 50%,transparent 56%),linear-gradient(#ffe29c 3%,#f4bd60 38%,#db8a3f 80%,#ca7532);
    background-size:260% 100%,100% 100%;background-position:145% 0,0 0;
    background-clip:text;-webkit-background-clip:text;
    animation:title-glaze 12s ease-in-out infinite;
    transition:filter 180ms ease-out;
  }
  .bakery-wordmark>.word-kitchen::after{
    background-image:linear-gradient(108deg,transparent 44%,#fff8d58c 50%,transparent 56%),linear-gradient(#ffc9ba 3%,#ef96a0 38%,#da697f 80%,#bd4f6a);
  }
}
@keyframes title-glaze{0%,68%{background-position:145% 0,0 0}92%,100%{background-position:-55% 0,0 0}}
@media(hover:hover) and (pointer:fine){.bakery-wordmark:hover>span::after{filter:brightness(1.05) saturate(1.06)}}
body:has(dialog[open]) .bakery-wordmark>span::after,
body.ambient-asleep .bakery-wordmark>span::after,
.bakery-wordmark.idle-resting>span::after{animation-play-state:paused!important}

@media(min-width:761px) and (max-width:1000px){.home-benny{left:-8px}}
@media(max-width:760px){.home-benny{top:76px;left:-12px}}
@media(max-width:440px){
  .home-benny{top:52px;left:0}
  .home-copy h1.bakery-wordmark{ text-shadow:0 1px 0 #fff0bd,0 2px 0 #cb8741,1px 3px 0 #653b24 }
  .bakery-wordmark>.word-kitchen{text-shadow:0 1px 0 #ffe3c1,0 2px 0 #bc6260,1px 3px 0 #653b24}
}
/* Keep him beside the sign even on the narrowest phone layout. */
@media(max-width:340px){
  .home-intro{display:grid;grid-template-columns:96px minmax(0,1fr);padding:0;margin-inline:-2px}
  .home-benny{top:64px;left:0;width:118px;height:147.5px;margin:0;transform:none}
  .home-copy{margin:0;padding-inline:12px 8px}
}
/* Earlier global reduced-motion rules also stop pseudo-element animations. */
body[data-motion=reduced] .bakery-wordmark>span::after{filter:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){body[data-motion=system] .bakery-wordmark>span::after{filter:none!important;transition:none!important}}
