/* The rug and skirting disappear behind the poodle's contour, including its
   raised head. Only the head responds to the two social balls. */
.poodle-head{transform-box:view-box;transform-origin:700px 560px;transform:translateY(0px) rotate(0deg);transition:transform .9s cubic-bezier(.25,.1,.25,1)}
.study-poodle.is-alert .poodle-head{transform:translateY(-12px) rotate(8deg)}
.poodle-social-link{pointer-events:all;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}
.poodle-ball-focus{opacity:0;transition:opacity .2s ease}
.poodle-social-link:focus-visible .poodle-ball-focus{opacity:.85}
.poodle-social-link:hover .poodle-ball-ink,.poodle-social-link:focus-visible .poodle-ball-ink{color:var(--frame-fg)}
@media(prefers-reduced-motion:reduce){.poodle-head,.poodle-ball-focus{transition:none}}
.poodle-occlusion,.poodle-ball-shell{transition:fill .4s ease}
/* Small expressive eye movements and a separately rigged tail; the torso rests. */
.poodle-tail{transform-box:view-box;transform-origin:1220px 690px;transform:rotate(0deg)}
.poodle-eye{transform-box:view-box;transform:translate(0,0) scaleY(1);transition:color .4s ease,transform .4s ease}
.study-poodle.is-alert .poodle-eye{color:color-mix(in srgb,var(--study-ink) 65%,var(--frame-fg) 35%);animation:poodle-eye-interest 2.8s ease-in-out infinite}
:root[data-mode="day"] .study-poodle.is-alert .poodle-eye{color:#fff}
@keyframes poodle-eye-interest{0%,100%{transform:translate(-2px,-1px) scaleY(1.16)}32%{transform:translate(-3px,-2px) scaleY(1.22)}73%{transform:translate(-1px,-1px) scaleY(1.18)}}
@media(prefers-reduced-motion:reduce){.poodle-eye{transition:none}.study-poodle.is-alert .poodle-eye{animation:none;transform:scaleY(1.12)}}
/* Rafa's note appears on hover, focus or a touch; social links remain separate. */
.study-poodle{pointer-events:none;outline:none}
.poodle-name-hit{pointer-events:all;cursor:help;-webkit-tap-highlight-color:transparent}
.poodle-name{font-family:'Atelier Footer Hand',cursive;fill:currentColor;color:var(--study-ink);opacity:0;pointer-events:none;transform:translateY(3px);transition:opacity .3s ease,transform .4s ease}
.poodle-name.is-visible{opacity:1;transform:translateY(0px)}
.poodle-name-title{font-size:18px}
.poodle-name-caption{font-size:13px}
.poodle-name-position[data-compact="true"] .poodle-name-title{transform:translateY(22px)}
.poodle-name-position[data-compact="true"] .poodle-name-caption,.poodle-name-position[data-compact="true"] .poodle-name-rule{display:none}
@media(prefers-reduced-motion:reduce){.poodle-name{transition:none;transform:none}}

/* The small metal key retains a readable contour at narrow room scales. */
.study-journal-key{color:color-mix(in srgb,var(--study-ink) 88%,var(--frame-fg) 12%)}
:root[data-mode="day"] .study-journal-key{color:rgba(255,255,255,.7)}
@media(max-width:700px){.study-journal-key .key-main-line{vector-effect:non-scaling-stroke;stroke-width:.45px}.study-journal-key .key-pressure-line{vector-effect:non-scaling-stroke;stroke-width:.6px}.study-journal-key .key-metal-ink>path:nth-last-child(-n+2){stroke-width:.25px}}

/* Curl hatching uses a restrained warm ink; no flat coat fill is added. */
:root[data-project="2"] .poodle-coat{color:color-mix(in srgb,var(--study-ink) 70%,#aa7954 30%);opacity:.86}
:root[data-project="2"][data-mode="day"] .poodle-coat{color:#8d7056;opacity:.57}

/* Project 2: anchor the tail at the rump; keep the smaller eyes within the face. */
:root:is([data-project="2"],[data-project="3"]) .poodle-tail{transform-origin:1238px 572px}
:root[data-project="2"] .poodle-eye{opacity:.84}
:root:is([data-project="2"],[data-project="3"]) .study-poodle.is-alert .poodle-eye{animation:poodle-eye-follow 3.2s ease-in-out infinite}
@keyframes poodle-eye-follow{0%,100%{transform:translate(0,0)}35%{transform:translate(-1.2px,-.7px)}72%{transform:translate(-.3px,-.2px)}}
@media(prefers-reduced-motion:reduce){:root:is([data-project="2"],[data-project="3"]) .study-poodle.is-alert .poodle-eye{animation:none;transform:none}}

.project1-page > .room-controls{position:absolute;top:1px;left:var(--side);z-index:60;color:var(--study-ink)}
:root[data-project="2"] .project1-page .room-map{top:46px;left:0;right:auto}
.project1-page .top{position:relative;z-index:40}
.project1-page .room-menu-panel{filter:none}
.project1-page .study-candle-flame,.project1-page .study-candle-sparks{display:block}
.project1-page .study-candle-flame{color:#d9b95f;animation:study-flame-dance 2.9s ease-in-out infinite}
.project1-page .study-lemon-tree .lemon-branch{animation: none}
.project1-page .study-lemon-tree .lemon-branch-a{animation:lemon-twig-a 17s ease-in-out infinite}
.project1-page .study-lemon-tree .lemon-branch-b{animation:lemon-twig-b 23s ease-in-out infinite}
.project1-page .study-lemon-tree .lemon-branch-c{animation:lemon-twig-c 19s ease-in-out infinite}
.project1-page .study-poodle .poodle-head{transform-origin:650px 635px}
.project1-page .study-poodle.is-alert .poodle-head{transform:translateY(-8px) rotate(3.2deg)}
.project1-home.is-crossing .walk-doorway{opacity:1}
.project1-home.is-departing{overflow:hidden}
.project1-home.is-departing .top{opacity:0;pointer-events:none}
.project1-home.is-zooming .study-architecture{opacity:0;transition:opacity 1s}
.project1-home.is-departing .candle-invite{opacity:0}
.project1-page .coffee-steam-wisp{animation-name:coffee-steam-room}
@media(prefers-reduced-motion:reduce){.project1-page .study-lemon-tree .lemon-branch,.project1-page .study-candle-flame{animation:none!important}.project1-page .study-poodle.is-alert .poodle-head{transform:none}}

.project1-page{--p2-paper:var(--frame-fg);--p2-leather:currentColor}
:root[data-project="2"] .project1-page .study-candle-flame,:root[data-project="2"] .project1-page .study-candle-sparks{display:block}
:root[data-project="2"] .project1-page .room-map{width:min(264px,calc(100vw - 28px));padding:7px 12px 4px;max-height:calc(100svh - 62px)}
:root[data-project="2"] .project1-page .room-map .room-map-routes{gap:0 6px;padding:0 0 4px}
:root[data-project="2"] .project1-page .room-map .room-map-route{font-size:15px;min-height:62px;gap:2px;padding:2px 0}
.project1-page .room-map-route svg{width:28px;height:28px}
.project1-page .room-map-route .map-route-label{white-space:normal;max-width:112px}
:root[data-project="2"] .project1-page .room-map .room-map-home{font-size:14px}
.project1-page .room-map-title{display:none}
:root[data-project="2"] .project1-page .room-map :is(.motion-toggle,.room-map-privacy){font-size:12px;min-height:36px}
:root[data-project="2"] .project1-page .room-map .room-map-head{margin-bottom:0}
.project1-page .crumpled-paper{pointer-events:none}
@media(prefers-reduced-motion:reduce){.project1-home.is-zooming .study-architecture{transition:none}}
/* The index points back into the illustration without moving an object. */
:root[data-project="2"] .project1-home[data-map-destination="walk"] .study-window :is(.window-casing,.window-church,.window-sash-outline,.window-sash-rails,.window-handle),
:root[data-project="2"] .project1-home[data-map-destination="world"] .diary-link,
:root[data-project="2"] .project1-home[data-map-destination="articles"] .pen-link,
:root[data-project="2"] .project1-home[data-map-destination="podcast"] .podcast-screen{color:#d5c39c}
:root[data-project="2"][data-mode="day"] .project1-home[data-map-destination="walk"] .study-window :is(.window-casing,.window-church,.window-sash-outline,.window-sash-rails,.window-handle),
:root[data-project="2"][data-mode="day"] .project1-home[data-map-destination="world"] .diary-link,
:root[data-project="2"][data-mode="day"] .project1-home[data-map-destination="articles"] .pen-link,
:root[data-project="2"][data-mode="day"] .project1-home[data-map-destination="podcast"] .podcast-screen{color:#fff1d1}
:root[data-project="2"] .project1-home[data-map-destination="world"] .diary-link .scene-object-label,
:root[data-project="2"] .project1-home[data-map-destination="articles"] .pen-link .scene-object-label,
:root[data-project="2"] .project1-home[data-map-destination="podcast"] .podcast-link .scene-object-label{opacity:1}
:root[data-project="2"] .project1-home[data-map-destination="podcast"] .podcast-wave-bar{animation:podcast-equalizer var(--beat) ease-in-out var(--phase) infinite}
