/* Pack-Man Consulting theme styles.
   Tokens come from theme.json (var(--wp--preset--*)); this file adds the
   editorial details theme.json can't express. */

:root {
	--pm-shadow: var(--wp--custom--shadow--panel);
	--pm-radius: var(--wp--custom--radius--md);
	--pm-radius-sm: var(--wp--custom--radius--sm);
	--pm-line: var(--wp--preset--color--line);
	--pm-accent: var(--wp--preset--color--accent);
	--pm-primary: var(--wp--preset--color--primary);
	--pm-heading: var(--wp--preset--color--heading);
	--pm-muted: var(--wp--preset--color--muted);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }

a {
	text-decoration-color: rgba(127, 151, 9, 0.6);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}
a:hover, a:focus-visible { text-decoration-color: currentColor; text-decoration-thickness: 0.12em; }
:focus-visible { outline: 3px solid var(--pm-accent); outline-offset: 3px; }
h1, h2 { text-wrap: balance; }
h1 { max-width: 24ch; }
p { text-wrap: pretty; }

.skip-link.screen-reader-text:focus {
	background: var(--pm-heading);
	color: #fff;
	border-radius: var(--pm-radius-sm);
}

/* ---------- Header ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.pm-main,
.pm-main > .alignfull,
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.pm-header-wrap { position: sticky; top: 0; z-index: 50; }
.pm-header {
	position: relative;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--pm-line);
	transition: box-shadow 300ms ease;
}
/* The blur lives on a pseudo-element: backdrop-filter on .pm-header itself would
   become the containing block for the fixed mobile-menu overlay and clip it to the header bar. */
@supports (backdrop-filter: blur(14px)) {
	.pm-header { background: rgba(255, 255, 255, 0.9); }
	.pm-header::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		backdrop-filter: blur(14px);
		pointer-events: none;
	}
}
.admin-bar .pm-header-wrap { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .pm-header-wrap { top: 0; } }
body.is-scrolled .pm-header { box-shadow: 0 6px 24px rgba(27, 33, 31, 0.08); }
.pm-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 2px;
	background: var(--pm-primary);
	transform: scaleX(var(--pm-progress, 0));
	transform-origin: left;
}
.pm-header .wp-block-site-logo img { max-height: 3.25rem; width: auto; }
.pm-header .wp-block-navigation-item__content { position: relative; text-decoration: none; }
.pm-header .wp-block-navigation-item__content:hover,
.pm-header .current-menu-item > .wp-block-navigation-item__content,
.pm-header [aria-current="page"] { color: var(--pm-heading); }
.pm-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.4rem;
	height: 2px;
	background: var(--pm-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 250ms ease;
}
.pm-header .wp-block-navigation-item__content:hover::after,
.pm-header .current-menu-item > .wp-block-navigation-item__content::after,
.pm-header [aria-current="page"]::after { transform: scaleX(1); }
.pm-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.pm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; color: var(--pm-heading); }
@media (max-width: 781px) {
	.pm-header .pm-header__cta { display: none; }
	.pm-header .wp-block-site-logo img { max-height: 2.75rem; }
}

/* ---------- Eyebrow / kicker ---------- */
.is-style-pm-kicker {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1rem !important;
	color: var(--wp--preset--color--primary-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.is-style-pm-kicker::before {
	content: "";
	flex: 0 0 2rem;
	height: 0.2rem;
	background: var(--wp--preset--color--warm);
}
.has-text-align-center.is-style-pm-kicker { justify-content: center; }

/* ---------- Page intro / hero ---------- */
.is-style-pm-intro {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #ffffff 0%, #fafaf6 54%, var(--wp--preset--color--sage) 100%);
	border-bottom: 1px solid var(--pm-line);
}
.is-style-pm-intro::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(82, 107, 63, 0.055) 0 1px, transparent 1px 100%),
		linear-gradient(180deg, rgba(38, 50, 47, 0.04) 0 1px, transparent 1px 100%);
	background-size: 120px 120px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.is-style-pm-intro::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--pm-primary), var(--pm-accent) 38%, transparent 75%);
}
.is-style-pm-intro > * { position: relative; z-index: 1; }
.pm-lead,
.is-style-pm-intro .pm-lead { max-width: 67ch; color: var(--pm-muted); }

/* ---------- Sections ---------- */
.pm-section { border-bottom: 1px solid var(--pm-line); }
.pm-section.has-surface-background-color { background-color: rgba(255, 255, 255, 0.7) !important; }
.pm-section--accent { background: linear-gradient(135deg, #ffffff 0%, var(--wp--preset--color--sage) 100%); }
.has-dark-background-color :is(h1, h2, h3, h4),
.has-dark-background-color .is-style-pm-kicker { color: #fff; }
.has-dark-background-color .is-style-pm-kicker::before { background: var(--pm-accent); }
.has-dark-background-color p { color: #f2f4ea; }
.has-dark-background-color a { color: #fff; }
.pm-muted { color: var(--pm-muted); }

/* Aside with lime rule */
.is-style-pm-aside { border-left: 2px solid var(--pm-accent); padding-left: clamp(1.25rem, 3vw, 2rem); }
.is-style-pm-aside h2, .is-style-pm-aside h3 { font-size: var(--wp--preset--font-size--x-large); }

/* ---------- Cards ---------- */
.pm-cards { counter-reset: pm-card; }
.is-style-pm-card {
	position: relative;
	min-width: 0;
	padding: 1.5rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--pm-line);
	border-radius: var(--pm-radius);
	transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.pm-cards > .is-style-pm-card { counter-increment: pm-card; }
.pm-cards > .is-style-pm-card::before {
	content: counter(pm-card, decimal-leading-zero);
	display: block;
	margin-bottom: 1.25rem;
	color: var(--pm-primary);
	font-size: 0.8rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.is-style-pm-card:has(h2 a, h3 a)::after {
	content: "";
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 1.1rem;
	height: 1.1rem;
	background: var(--pm-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 280ms ease;
}
.is-style-pm-card :is(h2, h3) { font-size: var(--wp--preset--font-size--x-large); line-height: 1.25; padding-right: 1.5rem; }
.is-style-pm-card :is(h2, h3) a { text-decoration: none; }
.is-style-pm-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.is-style-pm-card:focus-within { outline: 3px solid var(--pm-accent); outline-offset: 3px; }
.is-style-pm-card > :last-child { margin-bottom: 0; }
.is-style-pm-card .pm-card__meta { color: var(--wp--preset--color--primary-dark); font-weight: 800; }
@media (hover: hover) and (pointer: fine) {
	.is-style-pm-card:has(a):hover { transform: translateY(-6px); border-color: var(--pm-primary); box-shadow: 0 12px 28px rgba(27, 33, 31, 0.08); }
	.is-style-pm-card:has(a):hover::after { transform: translate(3px, -3px); }
}

/* ---------- Lists ---------- */
.is-style-pm-check { list-style: none; padding-left: 0; display: grid; gap: 0.8rem; }
.is-style-pm-check li { position: relative; padding-left: 1.55rem; }
.is-style-pm-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62rem;
	width: 0.55rem;
	height: 0.55rem;
	background: var(--pm-accent);
	border: 1px solid var(--pm-primary);
	transform: rotate(45deg);
}

/* ---------- Images ---------- */
.is-style-pm-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	max-height: 34rem;
	border: 1px solid var(--pm-line);
	border-radius: var(--pm-radius);
	box-shadow: var(--pm-shadow);
	background: var(--pm-heading);
}
.is-style-pm-frame img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.is-style-pm-frame figcaption {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	margin: 0;
	padding: 0.85rem 1rem;
	border-radius: var(--pm-radius-sm);
	background: rgba(21, 25, 19, 0.86);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	text-align: left;
}

/* Logo wall (gallery) */
.wp-block-gallery.is-style-pm-logos {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: 0.75rem !important;
}
.wp-block-gallery.is-style-pm-logos .wp-block-image {
	width: auto !important;
	margin: 0 !important;
	display: grid;
	place-items: center;
	min-height: 6rem;
	padding: 1rem;
	background: #fff;
	border-radius: var(--pm-radius-sm);
}
.wp-block-gallery.is-style-pm-logos .wp-block-image img {
	width: 100% !important;
	height: 3.5rem !important;
	object-fit: contain !important;
	transition: transform 350ms ease;
}
@media (hover: hover) { .wp-block-gallery.is-style-pm-logos .wp-block-image:hover img { transform: scale(1.08); } }

/* ---------- Testimonials ---------- */
.is-style-pm-testimonial,
.pm-quote-card {
	margin: 0;
	padding: 1.5rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--pm-line);
	border-top: 3px solid var(--pm-accent);
	border-radius: var(--pm-radius);
}
.is-style-pm-testimonial p { font-size: 1.1rem; }
.is-style-pm-testimonial cite,
.pm-quote-card .pm-quote-card__name { display: block; margin-top: 1rem; color: var(--pm-heading); font-style: normal; font-weight: 800; font-size: 1rem; }
.pm-quote-card { display: flex; flex-direction: column; height: 100%; }
.pm-quote-card .wp-block-post-excerpt { font-size: 1.1rem; color: var(--pm-heading); }
.pm-quote-card .pm-quote-card__role { margin: 0; color: var(--pm-muted); font-size: 0.95rem; }
.pm-quote-card .pm-quote-card__footer { margin-top: auto; padding-top: 1rem; }
.pm-quote-card .pm-quote-card__name a { text-decoration: none; }
.pm-quote-card .pm-quote-card__name a:hover { text-decoration: underline; }

/* Horizontal, scroll-snapping track on the homepage */
.pm-testimonial-track .wp-block-post-template {
	display: flex !important;
	gap: 1.5rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--pm-line) transparent;
	padding: 0.25rem 0 1rem;
	margin: 0;
}
.pm-testimonial-track .wp-block-post-template > li { flex: 0 0 calc(50% - 0.75rem); scroll-snap-align: start; min-width: 0; }
@media (max-width: 781px) { .pm-testimonial-track .wp-block-post-template > li { flex-basis: 88%; } }
.pm-icon-button {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--pm-line);
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	color: var(--pm-heading);
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	transition: background 200ms ease, transform 200ms ease;
}
.pm-icon-button:hover:not(:disabled) { background: var(--wp--preset--color--sage); transform: translateY(-2px); }
.pm-icon-button:disabled { opacity: 0.4; cursor: default; }

/* Single testimonial */
.pm-testimonial-single .wp-block-post-content p { font-size: 1.25rem; line-height: 1.55; color: var(--pm-heading); }
.pm-testimonial-single .wp-block-post-content { border-left: 3px solid var(--pm-accent); padding-left: clamp(1.25rem, 3vw, 2rem); }

/* ---------- FAQ (details) ---------- */
.wp-block-details { border-bottom: 1px solid var(--pm-line); padding: 0; margin: 0 !important; }
.pm-faq { border-top: 1px solid var(--pm-line); }
.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.35rem 0;
	cursor: pointer;
	list-style: none;
	color: var(--pm-heading);
	font-size: 1.1rem;
	font-weight: 700;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	flex: 0 0 auto;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--pm-primary);
	transition: transform 250ms ease;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { max-width: 76ch; padding-right: 2.75rem; color: var(--pm-muted); }
.wp-block-details > :last-child { padding-bottom: 1.25rem; }

/* ---------- Tables ---------- */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; background: var(--wp--preset--color--surface); border-radius: var(--pm-radius); overflow: hidden; }
.wp-block-table :is(th, td) { text-align: left; padding: 0.9rem 1rem; border: 0; border-bottom: 1px solid var(--pm-line); vertical-align: top; }
.wp-block-table thead { background: var(--wp--preset--color--sage); border-bottom: 0; }
.wp-block-table th { color: var(--pm-heading); }

/* ---------- Contact facts ---------- */
.pm-facts p { margin: 0; }
.pm-facts .pm-fact { padding: 0.9rem 0; border-bottom: 1px solid var(--pm-line); }
.pm-facts .pm-fact:first-child { border-top: 1px solid var(--pm-line); }
.pm-facts strong { display: block; color: var(--pm-heading); }

/* ---------- Blog / insights ---------- */
.pm-post-grid .wp-block-post { display: flex; flex-direction: column; }
.pm-post-grid .wp-block-post-featured-image img { border-radius: var(--pm-radius-sm); aspect-ratio: 16 / 9; object-fit: cover; }
.pm-post-grid .wp-block-post-title a { text-decoration: none; }
.pm-post-grid .wp-block-post-title a:hover { text-decoration: underline; }
.pm-post-meta { color: var(--pm-muted); font-size: 0.9rem; }
.single .wp-block-post-content > * { max-width: var(--wp--style--global--content-size); }
.wp-block-post-content :is(h2, h3) { margin-top: 2.25rem; }

/* ---------- Contact Form 7 ---------- */
.wpcf7 form { display: grid; gap: 1.1rem; }
.wpcf7 form p { margin: 0; }
.wpcf7 label { display: block; font-weight: 700; color: var(--pm-heading); }
.wpcf7 .pm-optional { color: var(--pm-muted); font-weight: 400; }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.8rem 0.9rem;
	font: inherit;
	color: var(--wp--preset--color--ink);
	background: #fff;
	border: 1px solid #b9c2b1;
	border-radius: var(--pm-radius-sm);
}
.wpcf7 textarea { min-height: 9rem; resize: vertical; }
.wpcf7 :is(input, select, textarea):focus { outline: 3px solid var(--pm-accent); outline-offset: 1px; border-color: var(--pm-primary); }
.wpcf7 input[type="submit"] {
	justify-self: start;
	min-height: 3rem;
	padding: 0.85rem 1.4rem;
	border: 0;
	border-radius: var(--pm-radius-sm);
	background: var(--pm-primary);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--primary-dark); }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; color: var(--pm-muted); }
.wpcf7 .wpcf7-spinner { margin-left: 0.75rem; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: var(--pm-radius-sm); }

/* ---------- Buttons ---------- */
.wp-block-button__link { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; transition: background-color 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(27, 33, 31, 0.12); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--pm-heading); color: #fff; }
.has-dark-background-color .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: #fff; }
@media (max-width: 560px) {
	.pm-section .wp-block-buttons > .wp-block-button { width: 100%; }
	.pm-section .wp-block-buttons > .wp-block-button > .wp-block-button__link { width: 100%; }
}

/* ---------- Footer ---------- */
.pm-footer { border-top: 1px solid var(--pm-line); color: var(--pm-muted); }
.pm-footer h2 { font-size: 1.1rem; color: var(--pm-heading); }
.pm-footer a { color: var(--pm-heading); text-decoration: none; }
.pm-footer a:hover { text-decoration: underline; }
.pm-footer .wp-block-site-logo img { max-height: 3.25rem; width: auto; }
.pm-footer .wp-block-navigation { gap: 0.55rem; }
.pm-footer__meta { border-top: 1px solid var(--pm-line); font-size: 0.92rem; }

/* ---------- Carousel + marquee controls ---------- */
.pm-testimonial-track .wp-block-post-template > li { margin: 0 !important; }
.pm-track-controls { display: flex; justify-content: flex-end; align-items: center; gap: 0.65rem; margin-top: 0.75rem; }
.pm-track-position { margin-right: auto; font-size: 0.85rem; color: var(--pm-muted); font-variant-numeric: tabular-nums; }
.pm-icon-button svg { display: block; width: 1.15rem; height: 1.15rem; }
.pm-icon-button:focus-visible { outline: 3px solid var(--pm-accent); outline-offset: 2px; }

.pm-marquee { min-width: 0; margin-top: 1.25rem; }
.pm-marquee__viewport { overflow: hidden; }
.pm-marquee .wp-block-gallery.is-style-pm-logos { margin: 0; }
.pm-marquee[data-loop="true"] .wp-block-gallery.is-style-pm-logos {
	display: flex !important;
	flex-wrap: nowrap !important;
	width: max-content;
	gap: 1rem !important;
}
.pm-marquee[data-loop="true"] .wp-block-gallery.is-style-pm-logos .wp-block-image { flex: 0 0 11rem !important; width: 11rem !important; height: 6.5rem; }
.pm-marquee__controls { display: flex; justify-content: flex-end; margin-top: 0.75rem; }
.pm-marquee__controls[hidden] { display: none; }
.has-dark-background-color .pm-icon-button { background: #fff; color: var(--pm-heading); border-color: rgba(255, 255, 255, 0.18); }

/* ---------- Hero image parallax ---------- */
.is-style-pm-frame img { transform: translateY(var(--parallax-offset, 0)) scale(1.08); }

/* ---------- Homepage opening ---------- */
.packman-opening {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: #f6f7f3;
	color: #343806;
	touch-action: none;
}
.opening-locked { overflow: hidden; }
.opening-locked .packman-opening { display: block; }
.opening-locked .pm-header-wrap { visibility: hidden; pointer-events: none; }
.opening-locked main,
.opening-locked .pm-footer { visibility: hidden; opacity: 0; transition: opacity 700ms ease, visibility 0s linear 700ms; }
.opening-complete .pm-header-wrap { visibility: visible; pointer-events: auto; }
.opening-complete main,
.opening-complete .pm-footer { visibility: visible; opacity: 1; transition: opacity 700ms ease, visibility 0s linear 0s; }
.packman-opening__stage {
	height: 100%;
	display: grid;
	place-items: center;
	isolation: isolate;
	background:
		linear-gradient(90deg, rgba(82, 107, 63, 0.04) 1px, transparent 1px),
		linear-gradient(rgba(82, 107, 63, 0.04) 1px, transparent 1px);
	background-size: 120px 120px;
}
.packman-box {
	width: min(42.5rem, 88vw, 100svh);
	height: auto;
	aspect-ratio: 490 / 309;
	display: block;
	overflow: visible;
	transform-origin: top left;
}
.packman-wordmark path { fill: currentColor; }
.packman-wordmark--title { color: #343806; }
.packman-wordmark--subtitle { color: #b0b88d; }
.packman-opening__hint {
	position: absolute;
	bottom: 3rem;
	left: 50%;
	display: grid;
	justify-items: center;
	gap: 0.6rem;
	margin: 0;
	color: #526b3f;
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
	transform: translateX(-50%);
	animation: packman-hint-pulse 1.8s ease-in-out infinite;
}
.packman-opening__mouse { width: 1.25rem; height: 2rem; border: 2px solid currentColor; border-radius: 1rem; position: relative; }
.packman-opening__mouse::after {
	content: "";
	position: absolute;
	top: 0.35rem;
	left: 50%;
	width: 0.18rem;
	height: 0.42rem;
	border-radius: 1rem;
	background: currentColor;
	transform: translateX(-50%);
}
@keyframes packman-hint-pulse { 50% { opacity: 0.45; transform: translate(-50%, 0.35rem); } }
.packman-opening__skip {
	position: absolute;
	right: 1.5rem;
	top: 1.5rem;
	border: 0;
	padding: 0.75rem;
	background: transparent;
	color: #526b3f;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.packman-opening[data-phase="docking"] .packman-opening__hint { visibility: hidden; }
@media (max-width: 700px) { .packman-opening__hint { bottom: 2rem; } }
/* The docked carton replaces the header logo image. */
.pm-header .wp-block-site-logo .packman-brand-geometry,
.pm-header .wp-block-site-logo svg { display: block; width: auto; height: 3.6rem; max-width: 13rem; }
@media (max-width: 781px) { .pm-header .wp-block-site-logo svg { height: 2.75rem; } }

/* ---------- Layout refinements ---------- */
/* Narrow-measure elements (lead, H1) align with the wide content column instead of centring. */
:where(.is-style-pm-intro, .pm-section) > :is(h1, .pm-lead) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 73.75rem)) / 2)) !important;
	margin-right: auto !important;
}
/* Card grids: collapse empty tracks so three cards fill the row. */
.pm-cards.is-layout-grid,
.pm-proof.is-layout-grid,
.pm-partners.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)) !important; }
.pm-header .wp-block-site-logo img,
.pm-footer .wp-block-site-logo img { max-height: 3.6rem; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 :is(input, select, textarea) { font-weight: 400; }
.wpcf7 textarea { height: 10rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.packman-opening__hint { animation: none; }
	.is-style-pm-frame img { transform: none; }
	.wp-block-button__link:hover, .is-style-pm-card:has(a):hover, .pm-icon-button:hover { transform: none !important; }
}
