/*
 * Home page dog — walking character at the foot of the IP.
 *
 * Original artwork, markup and gait: "CSS-Only Walking Dog" by David Khourshid
 * (https://codepen.io/davidkpiano/pen/BGxgLa), based on a Dribbble shot by
 * Artua (https://dribbble.com/shots/4377627-Walking-dog).
 *
 * Copyright (c) 2018 David Khourshid
 * Released under the MIT License:
 *
 *   Permission is hereby granted, free of charge, to any person obtaining a copy
 *   of this software and associated documentation files (the "Software"), to
 *   deal in the Software without restriction, including without limitation the
 *   rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 *   sell copies of the Software, and to permit persons to whom the Software is
 *   furnished to do so, subject to the following conditions:
 *
 *   The above copyright notice and this permission notice shall be included in
 *   all copies or substantial portions of the Software.
 *
 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 *   DEALINGS IN THE SOFTWARE.
 *
 * What changed from the original pen, and why:
 *
 * - The source was SCSS but the pen ships plain CSS. It is copied here as CSS,
 *   so nothing needs a build step.
 * - The pen styles `html`, `body`, `:root`, `[class=🐕]` and a global
 *   `*, *:before, *:after`. Those were removed or rewritten: every selector now
 *   starts at `.wl-dog__art`, every custom property is `--wl-dog-*`, and every
 *   keyframe is `wl-dog-*`, so nothing here can reach another part of the site.
 * - The fixed 300×300 box is scaled by `--wl-dog-scale`, and four separate
 *   wrappers carry the four transforms that must not fight each other:
 *   `.wl-dog__lane` (horizontal travel, set by dog.js), `.wl-dog__facing`
 *   (mirroring for direction), `.wl-dog__jump` (height above the ground) and
 *   `.wl-dog__art` (the drawing scale). The contact shadow is a sibling of the
 *   art, not a child, so a hop lifts the character and leaves the ground where
 *   it is.
 * - The gait pauses when the dog stops (`[data-wl-dog-moving="0"]`) and is
 *   frozen entirely by `prefers-reduced-motion`.
 * - No mobile size cap: the size is the owner's setting on every screen. The
 *   dog may walk out of the frame — that is how it can enter from off-canvas —
 *   and being out of frame only clips it, because nothing here can widen a page.
 */

/* ---------------------------------------------------------------------------
 * Stage, wrappers, ground line
 * ------------------------------------------------------------------------ */

.wl-dog {
	/* Palette, prefixed so it cannot collide with the theme's own tokens. */
	--wl-dog-fur: #ffb141;
	--wl-dog-fur-dark: #f5832c;
	--wl-dog-spot: #f9584c;
	--wl-dog-snout: #544258;
	--wl-dog-collar: #3eab6c;
	--wl-dog-shadow: #d3d1d1;

	/* One gait cycle. dog.js rewrites this from the configured speed so the
	   paws keep pace with the ground instead of skating. */
	--wl-dog-duration: 0.7s;
	--wl-dog-half: calc(var(--wl-dog-duration) / 2);
	--wl-dog-easing: cubic-bezier(0.5, 0, 0.5, 1);
	--wl-dog-stagger: calc(-1 * var(--wl-dog-half) / 2);

	/* Scale defaults to "no scale" so the component still stands without PHP. */
	--wl-dog-scale: var(--wl-dog-scale-base, 0.4);

	/* The drawing does not fill its 300×300 box. The pen puts its contact
	   shadow 13.3333% up from the box's bottom edge, and that shadow line is
	   what reads as the ground: the paws swing between 45.7px and 62.7px above
	   the box edge, so they pass through the shadow band. Anchoring the shadow
	   to the ground (40px at full size, scaled with the drawing) is therefore
	   what the original artwork intends — anchoring to the lowest paw instead
	   would bury the shadow. */
	--wl-dog-feet-inset: 40px;

	/*
	 * The scene's whole-group nudge, resolved to the current device. The four
	 * scene tokens arrive from scenes.php on `:root` (dx/dy, desktop/mobile);
	 * the media query at the foot of this file swaps in the mobile pair, so
	 * every consumer below reads one pair and never asks which device it is
	 * on. Zero by default: a site without scene nudges draws exactly as before.
	 */
	--wl-scene-dx: var(--wl-scene-dx-d, 0px);
	--wl-scene-dy: var(--wl-scene-dy-d, 0px);

	position: absolute;
	left: calc(50% + var(--wl-scene-dx, 0px));
	/* --wl-dog-foot is measured from the artwork's own pixels and written by
	   front.js: the exports carry a transparent band under the feet, and the
	   dog has to stand on the painted ground, not on the frame's edge.
	   --wl-dog-ground arrives in pixels, converted by dog.js from the
	   configured percentage of the stage height, so the same number reads the
	   same on a phone and on a wide screen. */
	bottom: calc(var(--wl-dog-foot, 0px) + var(--wl-dog-ground, 0px) + var(--wl-scene-dy, 0px));
	width: 0;
	height: 0;
	/* Decoration only: never intercept a click, never widen the page. */
	pointer-events: none;
	z-index: 2;
	contain: layout style;
}

/* Horizontal travel. Whether the dog is mid-stride is expressed on the stage,
   so the gait can be stopped without touching this transform. */
.wl-dog__lane {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 0;
	transform: translate3d(var(--wl-dog-x, 0px), 0, 0);
}

/* Mirrored, not rotated: the drawing turns around on its own container so the
   travel transform above never has to be rewritten mid-walk. */
.wl-dog__facing {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 0;
	transform: scaleX(var(--wl-dog-flip, 1));
}

/* Height above the ground — a fourth layer, for the same reason as the other
   three: a hop must not have to share a transform with travel, mirroring or
   scale. Only the drawing sits in here; the contact shadow stays on the floor. */
.wl-dog__jump {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 0;
}

.wl-dog[data-wl-dog-jumping="1"] .wl-dog__jump {
	animation: wl-dog-jump 760ms cubic-bezier(0.3, 0, 0.24, 1) 1;
}

/* A crouch, up to the configured peak, and back down to the same ground. The
   peak is a percentage of the stage height, converted to pixels by dog.js. */
@keyframes wl-dog-jump {
	0% {
		transform: translateY(0);
	}

	10% {
		transform: translateY(calc(var(--wl-dog-jump-peak, 0px) * 0.08));
	}

	50% {
		transform: translateY(calc(-1 * var(--wl-dog-jump-peak, 0px)));
	}

	100% {
		transform: translateY(0);
	}
}

.wl-dog__art {
	position: absolute;
	left: 0;
	bottom: calc(-1 * var(--wl-dog-feet-inset) * var(--wl-dog-scale));
	width: 300px;
	height: 300px;
	margin-left: -150px;
	display: flex;
	justify-content: center;
	align-items: center;
	transform: scale(var(--wl-dog-scale));
	transform-origin: center bottom;
	z-index: 1;
	/* The drawing is positioned part by part, never by text flow. Inheriting a
	   centred text alignment (the hero column centres its content) used to shift
	   every absolutely positioned pseudo-element that had no `left` of its own —
	   the knee circles in particular slid a half-width to the side and poked out
	   in front of the legs. Reset it here so the drawing behaves the same
	   wherever it is placed. */
	text-align: start;
}

/* The pen's contact shadow, moved off the drawing and onto the ground: a hop
   lifts the character, not the floor it stands on. Sized in pixels rather than
   scaled, so the gait's own scaleX animation keeps the transform to itself. */
.wl-dog__shadow {
	position: absolute;
	left: 0;
	bottom: 0;
	width: calc(300px * var(--wl-dog-scale));
	height: calc(10px * var(--wl-dog-scale));
	margin-left: calc(-150px * var(--wl-dog-scale));
	background-color: var(--wl-dog-shadow);
	border-radius: 2px;
	animation: wl-dog-shadow calc(1 * var(--wl-dog-half)) infinite;
	opacity: 0.75;
}

.wl-dog__art *,
.wl-dog__art *::before,
.wl-dog__art *::after,
.wl-dog__shadow {
	box-sizing: border-box;
	animation-timing-function: var(--wl-dog-easing) !important;
}

.wl-dog__art * {
	position: absolute;
	will-change: transform;
}

/* ---------------------------------------------------------------------------
 * The drawing — same geometry as the pen
 * ------------------------------------------------------------------------ */

.wl-dog__art .neck {
	width: 50%;
	height: 100px;
	right: -5px;
	bottom: calc(100% - 10px);
	transform-origin: center bottom;
	transform: rotate(15deg);
	z-index: 2;
}

.wl-dog__art .neck > .fur {
	border-bottom-left-radius: 10px;
	height: 100%;
	width: 100%;
}

.wl-dog__art .neck > .fur::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	height: 50px;
	width: 100%;
	background-color: var(--wl-dog-fur-dark);
	z-index: 1;
	transform-origin: right bottom;
	transform: rotate(15deg);
}

.wl-dog__art .collar {
	width: calc(100% + 10px);
	height: 15%;
	background-color: var(--wl-dog-collar);
	left: -5px;
	bottom: 30px;
	border-radius: 5px;
	animation: wl-dog-collar var(--wl-dog-half) calc(var(--wl-dog-half) / 4) infinite;
	z-index: 2;
}

.wl-dog__art .collar::after {
	content: "";
	width: 18%;
	height: 120%;
	border-radius: 50%;
	background: var(--wl-dog-snout);
	position: absolute;
	right: 0;
	top: 110%;
	transform-origin: center top;
	animation: wl-dog-tag var(--wl-dog-half) infinite both;
}

.wl-dog__art .head {
	height: 80%;
	width: 145%;
	left: -2%;
	bottom: 50%;
	transform-origin: left center;
	z-index: 2;
	animation: wl-dog-head var(--wl-dog-half) calc(var(--wl-dog-half) / 4) infinite;
}

.wl-dog__art .head > .fur {
	height: 100%;
	width: 100%;
	border-bottom-right-radius: 80px;
}

.wl-dog__art .head > .fur::before {
	content: "";
	position: absolute;
	top: -80%;
	left: -30%;
	width: 100%;
	height: 0;
	padding-top: 100%;
	background-color: var(--wl-dog-spot);
	z-index: 1;
	border-radius: 50%;
}

.wl-dog__art .snout {
	--wl-dog-c: var(--wl-dog-snout);
	width: 25%;
	height: 0;
	padding-top: 25%;
	background-color: var(--wl-dog-c);
	top: 0;
	right: -5px;
	border-bottom-left-radius: 100%;
	z-index: 1;
}

.wl-dog__art .ears {
	bottom: 40%;
	height: 100%;
	width: 30%;
	left: 0;
	z-index: -1;
}

.wl-dog__art .ear {
	--wl-dog-c: var(--wl-dog-spot);
	width: 100%;
	height: 100%;
	bottom: 0;
	left: 0;
	transform-origin: left bottom;
	transform: rotate(-10deg);
	animation: wl-dog-ear-front calc(var(--wl-dog-duration) / 2) infinite;
}

.wl-dog__art .ear::before {
	content: "";
	position: absolute;
	height: 25px;
	width: 15px;
	z-index: 2;
	top: -2px;
	right: -7px;
	border-top-left-radius: 100%;
	border-width: 2px;
	border-color: transparent;
	border-style: solid;
	border-left: 2px solid var(--wl-dog-snout);
	transform-origin: bottom left;
	animation: wl-dog-ear-mark var(--wl-dog-half) calc(-1 * var(--wl-dog-half)) infinite;
}

.wl-dog__art .ear > .fur {
	border-top-left-radius: 100%;
	height: 100%;
	width: 100%;
}

.wl-dog__art .ear:nth-child(2) {
	left: 15px;
	bottom: 5px;
	transform: rotate(-5deg);
	--wl-dog-c: var(--wl-dog-fur);
	z-index: -1;
	animation: wl-dog-ear-back calc(var(--wl-dog-duration) / 2) infinite both;
}

.wl-dog__art .eye {
	--wl-dog-size: 6%;
	--wl-dog-c: var(--wl-dog-snout);
	width: var(--wl-dog-size);
	height: 0;
	padding: var(--wl-dog-size);
	left: 35%;
	top: 20%;
	border-radius: 50%;
	background-color: var(--wl-dog-c);
	z-index: 1;
}

.wl-dog__art .eye::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: var(--wl-dog-c);
	z-index: 1;
}

.wl-dog__art .eye::after {
	content: "";
	width: 100%;
	height: 100%;
	position: absolute;
	left: -50%;
	top: -50%;
	border-top-left-radius: 100%;
	border-width: 2px;
	border-color: var(--wl-dog-c);
	border-style: solid;
	border-bottom-color: var(--wl-dog-spot);
	border-right-color: var(--wl-dog-spot);
	transform: scale(1.25);
	z-index: 0;
}

.wl-dog__art .torso {
	width: 56.6667%;
	height: 33.3333%;
	animation: wl-dog-torso var(--wl-dog-half) both infinite;
}

.wl-dog__art .torso > .fur {
	height: 100%;
	width: 185px;
	border-top-left-radius: 40px;
	transform-origin: left center;
	transform: rotate(-20deg) translateY(10px);
	z-index: 1;
}

.wl-dog__art .torso > .fur::after {
	height: 100%;
	width: 100%;
	border-bottom-left-radius: 200px 85px;
	border-bottom-right-radius: 100px;
}

.wl-dog__art .torso > .legs {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.wl-dog__art .torso .spot {
	width: 120px;
	height: 120px;
	bottom: 40px;
	left: -20px;
	border-radius: 50%;
	background-color: var(--wl-dog-spot);
	z-index: 1;
	animation: wl-dog-spot var(--wl-dog-duration) calc(-1 * var(--wl-dog-half)) both infinite;
}

.wl-dog__art .torso .spot::after {
	content: "";
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background-color: inherit;
	position: absolute;
	bottom: -10px;
	right: 5px;
}

.wl-dog__art .torso > .tail {
	--wl-dog-c: var(--wl-dog-spot);
	bottom: calc(100% - 15px);
	left: 0;
	transform-origin: center bottom;
	transform: rotate(-45deg);
}

.wl-dog__art .tail {
	height: 15px;
	width: 20px;
	background-color: var(--wl-dog-c);
	border-top-right-radius: 10px 100%;
	border-top-left-radius: 10px 100%;
	animation: wl-dog-tail var(--wl-dog-half) infinite;
}

.wl-dog__art .tail > .tail {
	bottom: 90%;
	transform-origin: bottom left;
	transform: rotate(-10deg) translateY(50%) scaleX(0.8) scaleY(0.9);
	animation: wl-dog-tail-inner var(--wl-dog-half) var(--wl-dog-stagger) infinite;
}

.wl-dog__art .legs > .leg {
	bottom: 5px;
	--wl-dog-c: var(--wl-dog-fur);
}

.wl-dog__art .legs > .leg:nth-child(1),
.wl-dog__art .legs .leg:nth-child(3) {
	right: 15px;
}

.wl-dog__art .legs > .leg:nth-child(3),
.wl-dog__art .legs > .leg:nth-child(4) {
	--wl-dog-c: var(--wl-dog-fur-dark);
	z-index: -1;
}

.wl-dog__art .legs > .leg:nth-child(1),
.wl-dog__art .legs .leg:nth-child(4) {
	--wl-dog-delay: 0s;
}

.wl-dog__art .legs > .leg:nth-child(2),
.wl-dog__art .legs > .leg:nth-child(3) {
	--wl-dog-delay: calc(-1 * var(--wl-dog-duration) / 2);
}

.wl-dog__art .legs > .leg:nth-child(2) {
	left: 0;
}

.wl-dog__art .legs > .leg:nth-child(4) {
	left: 0;
}

.wl-dog__art .leg {
	position: absolute;
	height: 65px;
	width: 45px;
	background-color: var(--wl-dog-c);
	transform-origin: center 5px;
	animation: wl-dog-leg infinite var(--wl-dog-duration) var(--wl-dog-delay, 0s);
}

.wl-dog__art .leg > .leg-inner {
	animation: wl-dog-leg-inner infinite var(--wl-dog-duration) var(--wl-dog-delay);
	transform: rotate(90deg);
}

.wl-dog__art .leg > .fur {
	width: 144.4444%;
	height: 100%;
}

.wl-dog__art .leg > .fur::after {
	width: 45px;
	bottom: 0;
	top: initial;
	transform: rotate(15deg);
}

.wl-dog__art .fur {
	position: absolute;
	overflow: hidden;
}

.wl-dog__art .fur::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 150%;
	top: 0;
	left: 0;
	background-color: var(--wl-dog-c, var(--wl-dog-fur));
	transform-origin: center bottom;
}

.wl-dog__art .leg-inner {
	position: absolute;
	height: 65%;
	width: 100%;
	top: 100%;
	transform-origin: center top;
}

.wl-dog__art .leg-inner::before {
	content: "";
	width: 45px;
	height: 45px;
	background-color: var(--wl-dog-c);
	position: absolute;
	border-radius: 50%;
	top: -22.5px;
	/* The pen relies on the global `*:before { position: relative }` for this
	   knee circle, so it sat exactly at the joint. Here it is absolutely
	   positioned, which means its static position — and therefore its
	   horizontal placement — comes from the parent's text alignment. Pin it to
	   the joint's own left edge so the circle can never slide out in front of
	   the leg. */
	left: 0;
}

.wl-dog__art .leg-inner > .fur {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
}

.wl-dog__art .leg-inner > .fur::after {
	transform-origin: center top;
	transform: rotate(15deg);
}

/* ---------------------------------------------------------------------------
 * Keyframes (renamed; every one is reachable only inside .wl-dog)
 * ------------------------------------------------------------------------ */

@keyframes wl-dog-shadow {
	from,
	to {
		transform: scaleX(0.75);
	}

	45%,
	55% {
		transform: scaleX(0.5);
	}
}

@keyframes wl-dog-collar {
	from,
	to {
		transform: none;
	}

	50% {
		transform: translateY(-25%);
	}
}

@keyframes wl-dog-tag {
	from,
	to {
		transform: rotate(-15deg);
	}

	50% {
		transform: rotate(-15deg) scaleY(1.5);
	}
}

@keyframes wl-dog-head {
	from,
	to {
		transform: rotate(-10deg);
	}

	50% {
		transform: rotate(-15deg);
	}
}

@keyframes wl-dog-ear-front {
	50% {
		transform: rotate(-15deg);
	}
}

@keyframes wl-dog-ear-mark {
	from,
	to {
		transform: rotate(0deg);
	}

	50% {
		transform: rotate(25deg);
	}
}

@keyframes wl-dog-ear-back {
	from,
	to {
		transform: rotate(0deg);
	}

	50% {
		transform: rotate(-10deg);
	}
}

@keyframes wl-dog-torso {
	from,
	to {
		transform: none;
	}

	50% {
		transform: translateY(15%);
	}
}

@keyframes wl-dog-spot {
	from,
	66%,
	to {
		transform: none;
	}

	33% {
		transform: translateX(10px);
	}
}

@keyframes wl-dog-tail {
	from,
	to {
		transform: rotate(-45deg) translateX(-15%);
	}

	50% {
		transform: rotate(-25deg) translateX(15%);
	}
}

@keyframes wl-dog-tail-inner {
	from,
	to {
		transform: rotate(-10deg) translateY(50%) scaleX(0.8) scaleY(0.9);
	}

	50% {
		transform: rotate(5deg) translateY(50%) scaleX(0.8) scaleY(0.9);
	}
}

@keyframes wl-dog-leg {
	from,
	to {
		transform: none;
	}

	33% {
		transform: rotate(-55deg);
	}

	66% {
		transform: rotate(-20deg);
	}
}

@keyframes wl-dog-leg-inner {
	from,
	to {
		transform: none;
	}

	33% {
		transform: rotate(70deg);
	}

	76% {
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
 * Stopping: gait freezes the moment travel stops
 * ------------------------------------------------------------------------ */

.wl-dog[data-wl-dog-moving="0"] .wl-dog__art *,
.wl-dog[data-wl-dog-moving="0"] .wl-dog__shadow {
	animation-play-state: paused;
}

/* ---------------------------------------------------------------------------
 * Pause control
 *
 * The button sits just under the artwork, so reaching it means leaving the
 * figure's own box. A plain `:hover` rule lost it exactly there: the pointer
 * crossed the gap, the button faded out, and there was nothing left to click.
 *
 * dog.js now arms the element (`data-wl-dog-arm="1"`) when the pointer enters
 * the figure and keeps it armed through the brief trip to the button, so the
 * two areas behave as one continuous target. While paused, and while focused,
 * it stays put — the way to resume must never move away. On touch there is no
 * hover at all, so it is simply always visible and slightly subdued.
 *
 * The hit area grows by a few pixels around the button itself; it is a halo,
 * not a full-size transparent plate, so it cannot swallow a click meant for the
 * figure, a card or a link.
 * ------------------------------------------------------------------------ */

.wl-dog__pause {
	position: absolute;
	left: -14px;
	/* The social row starts right under the portrait, so the button has to sit
	   above it: at -6px it landed on the Facebook link and swallowed the click.
	   Measured: 40px clears the row at 1920/1600/1488/1440/1366/430/390 while
	   staying beside the dog's own body. */
	bottom: 40px;
	width: 32px;
	height: 32px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 1px solid rgba(44, 42, 37, 0.16);
	border-radius: 50%;
	background: rgba(251, 247, 238, 0.86);
	color: var(--wp--preset--color--ink-soft, #6b665c);
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	/* Hidden until needed, and while hidden it takes no clicks either: an
	   invisible button that swallows a click is worse than no button. */
	pointer-events: none;
	opacity: 0;
	transition: opacity 160ms ease;
	z-index: 3;
}

/* A small halo so the pointer does not have to land dead centre. */
.wl-dog__pause::before {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
}

/* In the sidebar the figure is only ~90px tall and the site title starts one
   gap below it, so the hero offset would hang the button — and the few pixels
   of halo around it — over the title's top edge. Lifting it and keeping the
   halo tight holds the whole target on the portrait it belongs to: the title
   link below keeps every pixel of its own hit area. */
.wl-rail .wl-dog__pause {
	bottom: 4px;
}

.wl-rail .wl-dog__pause::before {
	inset: -4px;
}

.wl-ip:hover .wl-dog__pause,
.wl-ip:focus-within .wl-dog__pause,
.wl-dog[data-wl-dog-arm="1"] .wl-dog__pause,
.wl-dog__pause:focus-visible,
.wl-dog[data-wl-dog-paused="1"] .wl-dog__pause {
	opacity: 1;
	pointer-events: auto;
}

@media (hover: none) {
	.wl-dog__pause {
		opacity: 0.55;
		pointer-events: auto;
	}
}

.wl-dog__pause:hover {
	background: rgba(251, 247, 238, 1);
	opacity: 1;
}

/* ---------------------------------------------------------------------------
 * Small screens: the button shrinks, the dog does not. Its size is a setting,
 * and a hidden ceiling that only appears on a phone is exactly what the setting
 * was meant to remove.
 * ------------------------------------------------------------------------ */

@media (max-width: 640px) {
	.wl-dog__pause {
		left: -10px;
		/* Same reason as the desktop offset: the social row wraps into two lines
		   here and starts closer to the portrait, so the button stays clear of it. */
		bottom: 20px;
		width: 34px;
		height: 34px;
	}

	/* The scene nudge switches to the mobile pair here, matching the theme's
	   own device breakpoint for the character (860px in style.css/distant.css);
	   a phone-sized window between the two breakpoints keeps the desktop pair,
	   which is the pair the character itself is still using there. */
}

/* The scene nudge follows the theme's device breakpoint, not this file's: both
   views flip their character settings at 860px, so the group nudge does too. */
@media (max-width: 860px) {
	.wl-dog {
		--wl-scene-dx: var(--wl-scene-dx-m, 0px);
		--wl-scene-dy: var(--wl-scene-dy-m, 0px);
	}
}

/* ---------------------------------------------------------------------------
 * Reduced motion: no gait, no travel, no hop. dog.js also starts paused.
 * ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.wl-dog__art *,
	.wl-dog__shadow {
		animation: none !important;
	}

	.wl-dog__lane {
		transform: none;
	}

	.wl-dog[data-wl-dog-jumping="1"] .wl-dog__jump {
		animation: none;
	}
}
