/**
 * Maz Electric — base frontend styles.
 * Tokens come from theme.json; this file owns what theme.json cannot:
 * inverse-section safety overrides, interaction states, utilities, print.
 */

/* ------------------------------------------------------------------ */
/* Skip link                                                            */
/* ------------------------------------------------------------------ */

.maz-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--signal);
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	text-decoration: none;
}

.maz-skip-link:focus-visible {
	left: 0.5rem;
	top: 0.5rem;
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Inverse-section safety (self-check items 4 / 4b / 22 / 22b)          */
/* Belt-and-suspenders: theme.json sets no global heading color, and    */
/* these overrides guarantee readable links + headings on dark bands    */
/* regardless of future theme.json edits.                               */
/* ------------------------------------------------------------------ */

.has-ink-background-color a:not(.wp-block-button__link),
.has-surface-background-color a:not(.wp-block-button__link) {
	color: inherit;
}

.has-ink-background-color :is(h1, h2, h3, h4, h5, h6),
.has-surface-background-color :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

/* ------------------------------------------------------------------ */
/* Buttons: current-flow interaction states                             */
/* ------------------------------------------------------------------ */

.wp-block-button__link {
	transition: transform var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out);
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-button__link:hover {
		transform: translateY(-2px);
	}
}

.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
}

.has-ink-background-color .wp-block-button__link:focus-visible,
.has-surface-background-color .wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--signal);
}

.wp-block-button__link:active {
	transform: translateY(0);
}

/* Generic link focus */

a:focus-visible {
	outline: 2px solid var(--wp--preset--color--signal);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ------------------------------------------------------------------ */
/* Utilities: mono spec label, card, hairline                           */
/* ------------------------------------------------------------------ */

.maz-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: var(--wp--custom--label--letter-spacing);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.has-ink-background-color .maz-label,
.has-surface-background-color .maz-label {
	color: var(--wp--preset--color--signal);
}

.maz-card {
	background: var(--wp--preset--color--card);
	border: 1px solid #ddd9d0;
	border-radius: 10px;
	transition: border-color var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out);
}

@media (hover: hover) and (pointer: fine) {
	.maz-card:hover {
		border-color: var(--wp--preset--color--ink);
	}
}

.has-ink-background-color .maz-card,
.has-surface-background-color .maz-card {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--rule);
}

/* ------------------------------------------------------------------ */
/* Header nav (wp:group nav pattern) + sticky mobile call bar           */
/* ------------------------------------------------------------------ */

.maz-nav p {
	margin: 0;
}

.maz-nav a {
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.5rem 0.125rem;
	display: inline-block;
}

@media (hover: hover) and (pointer: fine) {
	.maz-nav a:hover {
		color: var(--wp--preset--color--signal);
	}
}

.maz-sticky-cta {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 9000;
	display: none;
	padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom));
	background: var(--wp--preset--color--ink);
	border-top: 1px solid var(--wp--preset--color--rule);
}

.maz-sticky-cta a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	background: var(--wp--preset--color--signal);
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	text-decoration: none;
	border-radius: 999px;
}

@media (max-width: 781px) {
	.maz-sticky-cta {
		display: block;
	}

	body {
		padding-bottom: 72px;
	}
}

/* ------------------------------------------------------------------ */
/* Circuit trace (SVG line-draw motif)                                  */
/* ------------------------------------------------------------------ */

.maz-trace {
	display: block;
	width: 100%;
	height: auto;
	color: var(--wp--preset--color--signal);
}

/* ------------------------------------------------------------------ */
/* Print: reveals always visible, chrome removed                        */
/* ------------------------------------------------------------------ */

@media print {
	.has-reveal,
	.has-reveal-children > * {
		opacity: 1 !important;
		transform: none !important;
		translate: none !important;
		animation: none !important;
	}

	.maz-sticky-cta,
	.maz-skip-link {
		display: none !important;
	}
}

/* ------------------------------------------------------------------ */
/* Structural layout (classNames referenced by parts/templates)        */
/* ------------------------------------------------------------------ */

.maz-site-header {
	padding-block: var(--wp--preset--spacing--30);
}

.maz-site-header__bar {
	gap: var(--wp--preset--spacing--40);
}

.maz-header-actions {
	gap: var(--wp--preset--spacing--30);
}

.maz-header-actions__phone a {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	font-size: 0.875rem;
	text-decoration: none;
}

.maz-main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.maz-page-title {
	margin-block-end: var(--wp--preset--spacing--40);
}

.maz-post-card {
	padding: var(--wp--preset--spacing--40);
}

.maz-post-list .wp-block-post-template {
	gap: var(--wp--preset--spacing--40);
}

.maz-404 {
	text-align: center;
	padding-block: var(--wp--preset--spacing--80);
}

.maz-404 .wp-block-buttons {
	justify-content: center;
}

.maz-site-footer {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	margin-block-start: var(--wp--preset--spacing--70);
}

.maz-site-footer__columns {
	gap: var(--wp--preset--spacing--50);
}

.maz-site-footer__contact a,
.maz-site-footer__areas {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
}

.maz-site-footer .maz-hours {
	margin: 0;
	font-size: 0.875rem;
}

.maz-site-footer .maz-hours__row {
	display: flex;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	max-width: 18rem;
}

.maz-site-footer .maz-hours dd {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
}

.maz-site-footer__legal {
	margin-block-start: var(--wp--preset--spacing--50);
	padding-block-start: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--rule);
}

.maz-site-footer__license,
.maz-site-footer__copyright {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

/* ------------------------------------------------------------------ */
/* Responsive defenses (file 30)                                        */
/* ------------------------------------------------------------------ */

html,
body {
	overflow-x: hidden;
}

img,
iframe,
video,
svg,
embed,
object {
	max-width: 100%;
	height: auto;
}

/* Hand-authored flex-basis columns must stack on phones even if core
   stacking CSS is absent or overridden. */
@media (max-width: 781px) {
	.wp-block-columns.maz-site-footer__columns > .wp-block-column {
		flex-basis: 100% !important;
	}
}

@media (max-width: 1024px) {
	.maz-site-header__bar {
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 768px) {
	.maz-nav {
		gap: var(--wp--preset--spacing--30);
	}

	.maz-header-actions__phone {
		display: none;
	}

	.maz-main {
		padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	}
}

@media (max-width: 480px) {
	.maz-post-card {
		padding: var(--wp--preset--spacing--30);
	}

	.maz-site-footer .maz-hours__row {
		max-width: none;
	}
}

/* ------------------------------------------------------------------ */
/* Pattern layer (5b)                                                   */
/* ------------------------------------------------------------------ */

.maz-front {
	padding-block-end: 0;
}

.maz-front > .maz-section,
.maz-main > .maz-section {
	padding-block: var(--wp--preset--spacing--60);
}

/* Hero */

.maz-hero {
	padding-block: var(--wp--preset--spacing--70) 0;
	overflow: hidden;
}

.maz-hero__inner {
	padding-block-end: var(--wp--preset--spacing--60);
}

.maz-hero__title {
	max-width: 22ch;
}

.maz-hero__sub {
	max-width: 46ch;
	color: var(--wp--preset--color--muted);
}

.maz-hero__actions {
	margin-block-start: var(--wp--preset--spacing--40);
}

.is-style-outline .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--signal);
	background: transparent;
	color: var(--wp--preset--color--signal);
}

/* Trust strip */

.maz-trust-strip {
	border-block: 1px solid #ddd9d0;
	padding-block: var(--wp--preset--spacing--30);
}

.maz-trust-strip__row {
	gap: var(--wp--preset--spacing--40);
}

.maz-trust-strip__review a {
	color: inherit;
}

/* Emergency band */

.maz-emergency {
	padding-block: var(--wp--preset--spacing--50);
}

.maz-emergency__row {
	gap: var(--wp--preset--spacing--40);
}

.maz-emergency__heading {
	margin: 0;
	max-width: 26ch;
}

.maz-emergency__phone {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--xl);
}

.maz-emergency__phone a {
	color: inherit;
	text-decoration: none;
}

.maz-emergency__phone a:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	.maz-emergency__phone a:hover {
		text-decoration: underline;
	}
}

/* Card grids */

.maz-service-cards .wp-block-post-template,
.maz-project-cards .wp-block-post-template,
.maz-testimonials .wp-block-post-template,
.maz-guide-cards .wp-block-post-template {
	gap: var(--wp--preset--spacing--40);
}

.maz-service-card,
.maz-project-card,
.maz-guide-card {
	padding: var(--wp--preset--spacing--40);
	height: 100%;
}

/* Testimonial cards are grid items in the server-rendered band
 * (v2.2.0): grid stretch equalizes heights natively. height: 100%
 * here re-triggers circular row sizing — the row computes short,
 * min-height:auto restores the real content height, and the card
 * overflows its track onto whatever flows after the grid. */
.maz-testimonial {
	padding: var(--wp--preset--spacing--40);
}

.maz-service-card .wp-block-post-title a,
.maz-project-card .wp-block-post-title a,
.maz-guide-card .wp-block-post-title a {
	text-decoration: none;
}

.maz-testimonial__quote p {
	font-size: var(--wp--preset--font-size--md);
}

.maz-testimonial__author {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: var(--wp--custom--label--letter-spacing);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.maz-testimonials__credential {
	margin-block-start: var(--wp--preset--spacing--40);
	text-align: center;
}

/* Smart home cutaway */

.maz-cutaway {
	padding-block: var(--wp--preset--spacing--70);
}

.maz-cutaway__grid {
	gap: var(--wp--preset--spacing--60);
	align-items: center;
}

.maz-cutaway__copy {
	flex: 1 1 26rem;
	min-width: 0;
}

.maz-cutaway__figure {
	flex: 1 1 20rem;
	min-width: 0;
	color: var(--wp--preset--color--signal);
}

.maz-cutaway__figure svg {
	display: block;
	width: 100%;
	height: auto;
}

.maz-cutaway__spot circle {
	fill: var(--wp--preset--color--signal);
	transition: r var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out);
}

@media (hover: hover) and (pointer: fine) {
	.maz-cutaway__spot:hover circle {
		r: 12;
	}
}

.maz-cutaway__list {
	padding-inline-start: 1.25rem;
}

.maz-cutaway__list li {
	margin-block-end: var(--wp--preset--spacing--20);
}

/* Stats */

.maz-stats {
	gap: var(--wp--preset--spacing--50);
	justify-content: space-around;
	text-align: center;
}

.maz-stat {
	display: grid;
	gap: var(--wp--preset--spacing--10);
	justify-items: center;
}

.maz-stat__value {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--size-3-xl);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

/* CTA band */

.maz-cta-band {
	padding-block: var(--wp--preset--spacing--70);
	text-align: center;
}

.maz-cta-band__inner > * {
	margin-inline: auto;
}

.maz-cta-band .wp-block-buttons {
	justify-content: center;
	margin-block-start: var(--wp--preset--spacing--40);
}

/* Contact page */

.maz-contact .maz-quote-form {
	margin-block: var(--wp--preset--spacing--50);
}

/* Guide reading template */

.maz-guide-single .wp-block-post-content {
	font-size: var(--wp--preset--font-size--md);
}

@media (max-width: 900px) {
	.maz-service-cards .wp-block-post-template.is-layout-grid,
	.maz-project-cards .wp-block-post-template.is-layout-grid,
	.maz-testimonials .wp-block-post-template.is-layout-grid,
	.maz-guide-cards .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Small-phone display type: fluid clamp floors are still generous at
   360px wide; step the display sizes down one notch. */
@media (max-width: 480px) {
	.has-size-4-xl-font-size {
		font-size: 2.25rem !important;
	}

	.has-size-3-xl-font-size {
		font-size: 2rem !important;
	}

	.maz-emergency__phone {
		font-size: var(--wp--preset--font-size--lg);
	}
}

/* ================================================================== */
/* v1.1.0 PREMIUM PASS                                                 */
/* Depth, texture, composition, and interaction upgrades. Later rules  */
/* intentionally override the v1.0 baseline at equal specificity.      */
/* ================================================================== */

::selection {
	background: var(--wp--preset--color--signal);
	color: var(--wp--preset--color--ink);
}

/* ---------------------------------------------------------------- */
/* Texture utilities: blueprint grid + radial signal glow             */
/* ---------------------------------------------------------------- */

.maz-grid-bg {
	position: relative;
	isolation: isolate;
}

.maz-grid-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(to right, rgba(139, 148, 158, 0.07) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(139, 148, 158, 0.07) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 85%);
	-webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 85%);
	pointer-events: none;
}

.maz-glow {
	position: relative;
	isolation: isolate;
}

.maz-glow::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 55% 45% at 22% 30%, rgba(255, 198, 39, 0.13), transparent 70%);
	pointer-events: none;
}

/* ---------------------------------------------------------------- */
/* Header: sticky, translucent, hairline                              */
/* ---------------------------------------------------------------- */

.maz-site-header {
	position: sticky;
	top: 0;
	z-index: 9500;
	background: rgba(13, 17, 23, 0.86);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

@supports (backdrop-filter: blur(12px)) {
	.maz-site-header {
		backdrop-filter: blur(12px) saturate(1.4);
		-webkit-backdrop-filter: blur(12px) saturate(1.4);
	}
}

body.admin-bar .maz-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .maz-site-header {
		top: 46px;
	}
}

.maz-nav a {
	position: relative;
}

.maz-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0.125rem;
	width: 100%;
	height: 2px;
	background: var(--wp--preset--color--signal);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out);
}

@media (hover: hover) and (pointer: fine) {
	.maz-nav a:hover::after {
		transform: scaleX(1);
	}

	.maz-nav a:hover {
		color: var(--wp--preset--color--paper);
	}
}

/* ---------------------------------------------------------------- */
/* Buttons v2: sweep shine + arrow slide                              */
/* ---------------------------------------------------------------- */

.wp-block-button__link {
	position: relative;
	overflow: hidden;
	transition:
		transform var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out),
		box-shadow var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out);
}

.wp-block-button__link::before {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 55%;
	height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	transform: skewX(-18deg);
	transition: left var(--wp--custom--animation--duration--base) var(--wp--custom--animation--easing--out);
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-button__link:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 24px -8px rgba(255, 198, 39, 0.55);
	}

	.wp-block-button__link:hover::before {
		left: 120%;
	}

	.is-style-outline .wp-block-button__link:hover {
		box-shadow: 0 0 0 1px var(--wp--preset--color--signal), 0 8px 24px -10px rgba(255, 198, 39, 0.45);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link::before {
		display: none;
	}
}

/* ---------------------------------------------------------------- */
/* Section header system: kicker + extending hairline                 */
/* ---------------------------------------------------------------- */

.maz-section > .maz-label:first-child,
.maz-section-head {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

.maz-section > .maz-label:first-child::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(to right, var(--wp--preset--color--signal) 0 2.5rem, #ddd9d0 2.5rem);
}

.has-ink-background-color .maz-label:first-child::after,
.has-surface-background-color .maz-label:first-child::after {
	background: linear-gradient(to right, var(--wp--preset--color--signal) 0 2.5rem, var(--wp--preset--color--rule) 2.5rem);
}

.maz-section > h2 {
	max-width: 24ch;
	margin-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
}

/* ---------------------------------------------------------------- */
/* Cards v2: spec-sheet treatment                                     */
/* ---------------------------------------------------------------- */

.maz-card {
	position: relative;
	border: 1px solid #e3ded4;
	border-radius: 12px;
	box-shadow:
		0 1px 2px rgba(13, 17, 23, 0.04),
		0 8px 24px -12px rgba(13, 17, 23, 0.10);
	transition:
		transform var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out),
		border-color var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out),
		box-shadow var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out);
}

.maz-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 12px;
	right: 12px;
	height: 2px;
	border-radius: 0 0 2px 2px;
	background: linear-gradient(to right, var(--wp--preset--color--signal) 0 3rem, transparent 3rem);
	opacity: 0;
	transition: opacity var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out);
}

@media (hover: hover) and (pointer: fine) {
	.maz-card:hover {
		transform: translateY(-4px);
		border-color: var(--wp--preset--color--ink);
		box-shadow:
			0 2px 4px rgba(13, 17, 23, 0.06),
			0 20px 40px -16px rgba(13, 17, 23, 0.22);
	}

	.maz-card:hover::before {
		opacity: 1;
	}
}

.has-ink-background-color .maz-card,
.has-surface-background-color .maz-card {
	box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
	.has-ink-background-color .maz-card:hover,
	.has-surface-background-color .maz-card:hover {
		border-color: var(--wp--preset--color--signal);
		box-shadow: 0 20px 44px -18px rgba(255, 198, 39, 0.28);
	}
}

/* Index numerals via CSS counters — spec-sheet feel, zero markup risk */

.maz-service-cards .wp-block-post-template,
.maz-project-cards .wp-block-post-template,
.maz-guide-cards .wp-block-post-template {
	counter-reset: maz-card;
}

.maz-service-cards .wp-block-post-template > li,
.maz-project-cards .wp-block-post-template > li,
.maz-guide-cards .wp-block-post-template > li {
	counter-increment: maz-card;
}

.maz-service-card::after,
.maz-project-card::after,
.maz-guide-card::after {
	content: "0" counter(maz-card);
	position: absolute;
	top: var(--wp--preset--spacing--30);
	right: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: var(--wp--custom--label--letter-spacing);
	color: #5d646d;
	opacity: 0.7;
}

.maz-service-card .wp-block-post-title,
.maz-project-card .wp-block-post-title,
.maz-guide-card .wp-block-post-title {
	margin-block: var(--wp--preset--spacing--20) var(--wp--preset--spacing--20);
}

.maz-service-card .wp-block-post-title a,
.maz-project-card .wp-block-post-title a,
.maz-guide-card .wp-block-post-title a {
	background-image: linear-gradient(var(--wp--preset--color--signal), var(--wp--preset--color--signal));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	transition: background-size var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out);
}

@media (hover: hover) and (pointer: fine) {
	.maz-card:hover .wp-block-post-title a {
		background-size: 100% 2px;
	}
}

/* ---------------------------------------------------------------- */
/* Hero v2                                                            */
/* ---------------------------------------------------------------- */

.maz-hero {
	/* Bottom padding reproduces the space the removed trace divider
	 * occupied: its spacing--40 top margin plus its fluid height
	 * (60px at full content width, scaling down with the viewport). */
	padding-block: var(--wp--preset--spacing--80) calc(var(--wp--preset--spacing--40) + clamp(2rem, 5vw, 3.75rem));
	background:
		radial-gradient(ellipse 70% 55% at 75% 15%, rgba(255, 198, 39, 0.07), transparent 65%),
		var(--wp--preset--color--ink);
}

.maz-hero__grid {
	gap: var(--wp--preset--spacing--60);
	align-items: center;
}

.maz-hero__copy {
	flex: 1 1 30rem;
	min-width: 0;
}

.maz-hero__panel {
	flex: 1 1 18rem;
	min-width: 0;
	max-width: 26rem;
	color: var(--wp--preset--color--signal);
}

.maz-hero__panel svg {
	display: block;
	width: 100%;
	height: auto;
}

.maz-hero__title {
	line-height: var(--wp--custom--display--line-height);
	letter-spacing: var(--wp--custom--display--letter-spacing);
	max-width: 12ch;
	margin-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

.maz-accent {
	color: var(--wp--preset--color--signal);
}

.maz-hero__sub {
	max-width: 44ch;
}

.maz-node {
	animation: maz-node-pulse 2.4s var(--wp--custom--animation--easing--out) infinite;
	transform-origin: center;
	transform-box: fill-box;
}

.maz-node--2 {
	animation-delay: 0.8s;
}

.maz-node--3 {
	animation-delay: 1.6s;
}

@keyframes maz-node-pulse {
	0%, 100% {
		opacity: 0.5;
		transform: scale(1);
	}

	50% {
		opacity: 1;
		transform: scale(1.45);
	}
}

/* Load-entrance stagger (above-fold content should not wait for scroll) */

.maz-enter > * {
	animation: maz-enter-up var(--wp--custom--animation--duration--slow) var(--wp--custom--animation--easing--out) both;
}

.maz-enter > *:nth-child(2) { animation-delay: 0.12s; }
.maz-enter > *:nth-child(3) { animation-delay: 0.24s; }
.maz-enter > *:nth-child(4) { animation-delay: 0.36s; }

@keyframes maz-enter-up {
	from {
		opacity: 0;
		translate: 0 var(--wp--custom--animation--distance--base);
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.maz-enter > *,
	.maz-node {
		animation: none;
	}
}

/* ---------------------------------------------------------------- */
/* Service ticker                                                     */
/* ---------------------------------------------------------------- */

.maz-ticker {
	overflow: hidden;
	background: var(--wp--preset--color--ink);
	border-block: 1px solid var(--wp--preset--color--rule);
	padding-block: var(--wp--preset--spacing--30);
}

.maz-ticker__track {
	display: flex;
	gap: 3rem;
	width: max-content;
	animation: maz-ticker-scroll 32s linear infinite;
}

.maz-ticker__item {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: var(--wp--custom--label--letter-spacing);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	white-space: nowrap;
}

.maz-ticker__item::after {
	content: "//";
	margin-inline-start: 3rem;
	color: var(--wp--preset--color--signal);
}

@keyframes maz-ticker-scroll {
	to {
		transform: translateX(-50%);
	}
}

@media (hover: hover) and (pointer: fine) {
	.maz-ticker:hover .maz-ticker__track {
		animation-play-state: paused;
	}
}

@media (prefers-reduced-motion: reduce) {
	.maz-ticker__track {
		animation: none;
		flex-wrap: wrap;
		width: auto;
	}

	.maz-ticker__track > [aria-hidden] {
		display: none;
	}
}

/* ---------------------------------------------------------------- */
/* Emergency band v2: hazard edges + live indicator                   */
/* ---------------------------------------------------------------- */

.maz-emergency {
	position: relative;
	padding-block: var(--wp--preset--spacing--60);
}

.maz-emergency::before,
.maz-emergency::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 10px;
	background: repeating-linear-gradient(
		-45deg,
		var(--wp--preset--color--ink) 0 12px,
		transparent 12px 24px
	);
	opacity: 0.9;
}

.maz-emergency::before {
	top: 0;
}

.maz-emergency::after {
	bottom: 0;
}

.maz-emergency__phone a {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.maz-emergency__phone a::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	animation: maz-live 1.6s ease-in-out infinite;
}

@keyframes maz-live {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(13, 17, 23, 0.45);
	}

	50% {
		box-shadow: 0 0 0 7px rgba(13, 17, 23, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.maz-emergency__phone a::before {
		animation: none;
	}
}

/* ---------------------------------------------------------------- */
/* Stats v2: outlined numerals with signal accent                     */
/* ---------------------------------------------------------------- */

.maz-stat__value {
	font-size: clamp(3.5rem, 8vw, 6rem);
	font-weight: 800;
	letter-spacing: var(--wp--custom--display--letter-spacing);
	color: transparent;
	-webkit-text-stroke: 2px var(--wp--preset--color--ink);
	position: relative;
}

@supports not (-webkit-text-stroke: 2px black) {
	.maz-stat__value {
		color: var(--wp--preset--color--ink);
	}
}

.maz-stat {
	position: relative;
	padding-block-start: var(--wp--preset--spacing--30);
}

.maz-stat::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	translate: -50% 0;
	width: 2.5rem;
	height: 3px;
	background: var(--wp--preset--color--signal);
}

/* ---------------------------------------------------------------- */
/* Testimonials on ink                                                */
/* ---------------------------------------------------------------- */

.maz-testimonial {
	position: relative;
	padding-block-start: var(--wp--preset--spacing--60);
}

.maz-testimonial::after {
	content: "\201C";
	position: absolute;
	top: 0.25rem;
	left: var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--display);
	font-size: 4.5rem;
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--signal);
	opacity: 0.9;
}

.maz-testimonial__author::before {
	content: "— ";
	color: var(--wp--preset--color--signal);
}

/* ---------------------------------------------------------------- */
/* CTA band v2                                                        */
/* ---------------------------------------------------------------- */

.maz-cta-band {
	background:
		radial-gradient(ellipse 60% 70% at 50% 110%, rgba(255, 198, 39, 0.12), transparent 70%),
		var(--wp--preset--color--surface);
	border-block-start: 1px solid var(--wp--preset--color--rule);
}

.maz-cta-band h2 {
	font-size: var(--wp--preset--font-size--size-3-xl);
	letter-spacing: var(--wp--custom--display--letter-spacing);
}

/* ---------------------------------------------------------------- */
/* Footer v2: brand moment                                            */
/* ---------------------------------------------------------------- */

.maz-site-footer {
	border-block-start: 1px solid var(--wp--preset--color--rule);
}

.maz-site-footer__brandline {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 6vw, 4rem);
	font-weight: 800;
	letter-spacing: var(--wp--custom--display--letter-spacing);
	line-height: 1;
	color: var(--wp--preset--color--paper);
	margin-block-end: var(--wp--preset--spacing--50);
}

.maz-site-footer__brandline .maz-accent {
	color: var(--wp--preset--color--signal);
}

/* ---------------------------------------------------------------- */
/* Cutaway polish                                                     */
/* ---------------------------------------------------------------- */

.maz-cutaway__spot circle {
	filter: drop-shadow(0 0 6px rgba(255, 198, 39, 0.6));
}

/* Print additions */

@media print {
	.maz-ticker,
	.maz-enter > * {
		animation: none !important;
	}

	.maz-enter > * {
		opacity: 1 !important;
	}
}

.maz-testimonial-band {
	padding-block: var(--wp--preset--spacing--70);
}

.maz-testimonial-band .maz-testimonials__credential {
	color: var(--wp--preset--color--signal);
}

/* =================================================================
 * v2.2.0 FIXES
 * Server-rendered testimonial grid + attribution, archive density,
 * mobile tap targets.
 * ================================================================= */

/* Testimonial grid (replaces the query-block ul; same visual rhythm) */

.maz-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40, 1.5rem);
}

@media (max-width: 781px) {
	.maz-testimonials__grid {
		grid-template-columns: 1fr;
	}
}

.maz-testimonial__stars {
	margin: 0 0 0.625rem;
	font-size: 0.875rem;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--signal);
}

.maz-testimonial__author {
	margin: 0.875rem 0 0;
	font-weight: 700;
}

.maz-testimonial__location {
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

/* Mobile tap targets: nav links reach 44px hit height */

@media (max-width: 781px) {
	.maz-site-header nav a {
		padding-block: 0.75rem;
	}

	.maz-site-header .maz-site-header__brand,
	.maz-site-header > div > a:first-child {
		padding-block: 0.75rem;
	}
}

/* =================================================================
 * v2.3.0 BRAND LOCKUP — interactive bulb
 * ================================================================= */

.maz-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.maz-brand__svg {
	height: 3.5rem;
	width: auto;
	display: block;
	/* SVGs clip at the viewport by default, which puts a hard
	 * rectangular edge on the glow. Let it breathe. */
	overflow: visible;
}

.maz-brand__maz {
	fill: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--display);
}

.maz-brand__electric {
	fill: var(--wp--preset--color--muted);
}

.maz-brand__electric text {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 500;
}

/* The bolt is the mark's negative space: on the ink header it cuts
 * through to the background. */

.maz-brand__bolt {
	fill: var(--wp--preset--color--ink);
}

/* Lit state: hot lemon center, warm amber halo (the theme's signal). */

.maz-brand__bulb {
	filter:
		brightness(1.08) saturate(1.06)
		drop-shadow(0 0 6px rgba(255, 198, 39, 0.7))
		drop-shadow(0 0 22px rgba(255, 198, 39, 0.42));
	transition: filter 0.25s ease;
	/* Off until 1.2s after load (backwards fill holds the 0% frame),
	 * then the strike. Delayed so the light-up is an event, not a blink
	 * lost in page load. */
	animation: maz-bulb-strike 1.4s ease-out 1.2s backwards;
}

/* Off = dark glass: desaturated and dimmed, not transparent.
 * The strike alternates real off and lit-with-glow until it holds. */

@keyframes maz-bulb-strike {
	0% {
		filter: grayscale(1) brightness(0.38);
	}

	8% {
		filter: brightness(1.02) drop-shadow(0 0 4px rgba(255, 198, 39, 0.45));
	}

	13% {
		filter: grayscale(1) brightness(0.38);
	}

	24% {
		filter: brightness(1.05) drop-shadow(0 0 5px rgba(255, 198, 39, 0.55));
	}

	31% {
		filter: grayscale(0.85) brightness(0.5);
	}

	46%,
	100% {
		filter:
			brightness(1.08) saturate(1.06)
			drop-shadow(0 0 6px rgba(255, 198, 39, 0.7))
			drop-shadow(0 0 22px rgba(255, 198, 39, 0.42));
	}
}

/* Hover / keyboard focus: turn it up. */

@media (hover: hover) and (pointer: fine) {
	.maz-brand:hover .maz-brand__bulb {
		filter:
			brightness(1.16) saturate(1.1)
			drop-shadow(0 0 10px rgba(255, 198, 39, 1))
			drop-shadow(0 0 34px rgba(255, 198, 39, 0.65));
	}
}

.maz-brand:focus-visible {
	outline: 2px solid var(--wp--preset--color--signal);
	outline-offset: 4px;
}

.maz-brand:focus-visible .maz-brand__bulb {
	filter:
		brightness(1.16) saturate(1.1)
		drop-shadow(0 0 10px rgba(255, 198, 39, 1))
		drop-shadow(0 0 34px rgba(255, 198, 39, 0.65));
}

@media (max-width: 781px) {
	.maz-brand__svg {
		height: 2.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.maz-brand__bulb {
		animation: none;
		transition: none;
	}
}

@media print {
	.maz-brand__bulb {
		filter: none;
		animation: none;
	}

	.maz-brand__maz {
		fill: #000;
	}

	.maz-brand__bolt {
		fill: #fff;
	}
}

/* =================================================================
 * v2.4.0 FUNCTIONING CIRCUIT (hero panel)
 * Power flow along the traces, breaker switches that kill and
 * re-energize their branch, hover quickens the current.
 * ================================================================= */

.maz-circuit {
	--maz-flow-duration: 3s;
}

/* Current: bright pulses traveling the traces. pathLength=100 makes
 * dash units path-relative, so all branches flow at matched speed. */

.maz-circuit__flow {
	stroke: #ffd84d;
	stroke-width: 2;
	stroke-linecap: round;
	fill: none;
	stroke-dasharray: 3 22;
	stroke-dashoffset: 0;
	opacity: 0.9;
	animation: maz-circuit-flow var(--maz-flow-duration) linear infinite;
	/* current switches on after the hero's trace draw settles */
	animation-delay: 1.4s;
}

@keyframes maz-circuit-flow {
	to {
		stroke-dashoffset: -100;
	}
}

@media (hover: hover) and (pointer: fine) {
	.maz-circuit:hover {
		--maz-flow-duration: 1.2s;
	}
}

/* Breakers: real switches. Track + sliding handle. */

.maz-circuit__breaker {
	cursor: pointer;
}

.maz-circuit__breaker-handle {
	fill: var(--wp--preset--color--signal);
	transition: transform 0.16s var(--wp--custom--animation--easing--out, ease-out), fill 0.16s ease;
}

.maz-circuit__breaker[aria-checked="false"] .maz-circuit__breaker-handle {
	transform: translateX(-20px);
	fill: var(--wp--preset--color--muted);
}

.maz-circuit__breaker:focus-visible {
	outline: none;
}

.maz-circuit__breaker:focus-visible .maz-circuit__breaker-track {
	stroke: var(--wp--preset--color--paper);
	stroke-width: 2.5;
}

/* A branch with its breaker off: cold traces, no current, dark node. */

.maz-circuit__branch.is-off .maz-trace {
	stroke: var(--wp--preset--color--rule);
	transition: stroke 0.2s ease;
}

.maz-circuit__branch.is-off .maz-circuit__flow {
	opacity: 0;
}

.maz-circuit__branch.is-off .maz-node {
	animation: none;
	fill: var(--wp--preset--color--rule);
}

.maz-circuit__branch.is-off rect {
	stroke: var(--wp--preset--color--rule);
}

/* Re-energize: a quick strike when a breaker flips back on. */

.maz-circuit__branch.is-flick .maz-trace,
.maz-circuit__branch.is-flick .maz-node {
	animation: maz-circuit-strike 0.45s steps(1, end);
}

@keyframes maz-circuit-strike {
	0% {
		opacity: 0.2;
	}

	25% {
		opacity: 1;
	}

	40% {
		opacity: 0.35;
	}

	60%,
	100% {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.maz-circuit__flow {
		animation: none;
		/* static current marks so the circuit still reads as live */
		stroke-dasharray: 3 22;
		opacity: 0.55;
	}

	.maz-circuit__breaker-handle {
		transition: none;
	}

	.maz-circuit__branch.is-flick .maz-trace,
	.maz-circuit__branch.is-flick .maz-node {
		animation: none;
	}

	.maz-circuit__branch.is-off .maz-trace {
		transition: none;
	}
}

@media print {
	.maz-circuit__flow {
		display: none;
	}
}

/* --- v2.5.0: breakers control the house ---------------------------- */

.maz-cutaway__spot circle {
	transition:
		r var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out),
		fill 0.2s ease;
}

.maz-cutaway__spot.is-unpowered circle {
	fill: var(--wp--preset--color--rule);
	filter: none;
}

.maz-cutaway__spot.is-flick circle {
	animation: maz-circuit-strike 0.45s steps(1, end);
}

@media (prefers-reduced-motion: reduce) {
	.maz-cutaway__spot circle {
		transition: r var(--wp--custom--animation--duration--fast) var(--wp--custom--animation--easing--out);
	}

	.maz-cutaway__spot.is-flick circle {
		animation: none;
	}
}

/* =================================================================
 * v2.6.0 CUTAWAY INTERACTIVITY
 * Legend <-> spot two-way sync, pinned callouts, ambient breathing.
 * ================================================================= */

/* Legend: spec-sheet rows instead of browser bullets */

.maz-legend {
	list-style: none;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
}

.maz-legend__item {
	margin: 0;
	border-block-end: 1px solid var(--wp--preset--color--rule);
}

.maz-legend__item:first-child {
	border-block-start: 1px solid var(--wp--preset--color--rule);
}

.maz-legend__row {
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 0.75rem;
	row-gap: 0.2rem;
	align-items: center;
	width: 100%;
	padding: 0.8rem 0.6rem;
	background: transparent;
	border: 0;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.maz-legend__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--signal);
	box-shadow: 0 0 6px rgba(255, 198, 39, 0.55);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.maz-legend__title {
	font-weight: 700;
	color: var(--wp--preset--color--paper);
}

.maz-legend__desc {
	grid-column: 2;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
}

@media (hover: hover) and (pointer: fine) {
	.maz-legend__row:hover {
		background: rgba(255, 198, 39, 0.06);
	}

	.maz-legend__row:hover .maz-legend__dot {
		box-shadow: 0 0 12px rgba(255, 198, 39, 0.9);
		transform: scale(1.2);
	}
}

.maz-legend__row:focus-visible {
	outline: 2px solid var(--wp--preset--color--signal);
	outline-offset: -2px;
}

.maz-legend__row.is-hot,
.maz-legend__row.is-active {
	background: rgba(255, 198, 39, 0.08);
}

.maz-legend__row.is-hot .maz-legend__dot,
.maz-legend__row.is-active .maz-legend__dot {
	box-shadow: 0 0 12px rgba(255, 198, 39, 0.9);
	transform: scale(1.2);
}

/* Spots: hot state, keyboard focus, ambient breathing */

.maz-cutaway__figure {
	position: relative;
}

.maz-cutaway__spot {
	cursor: pointer;
	animation: maz-spot-breathe 3.4s ease-in-out infinite;
}

.maz-cutaway__spot:nth-of-type(2) {
	animation-delay: 0.6s;
}

.maz-cutaway__spot:nth-of-type(3) {
	animation-delay: 1.2s;
}

.maz-cutaway__spot:nth-of-type(4) {
	animation-delay: 1.8s;
}

.maz-cutaway__spot:nth-of-type(5) {
	animation-delay: 2.4s;
}

@keyframes maz-spot-breathe {
	0%,
	100% {
		opacity: 0.72;
	}

	50% {
		opacity: 1;
	}
}

.maz-cutaway__spot.is-hot {
	animation: none;
	opacity: 1;
}

.maz-cutaway__spot.is-hot circle {
	r: 12;
	filter: drop-shadow(0 0 12px rgba(255, 198, 39, 0.95));
}

.maz-cutaway__spot:focus-visible {
	outline: none;
}

.maz-cutaway__spot:focus-visible circle {
	stroke: var(--wp--preset--color--paper);
	stroke-width: 2;
}

.maz-cutaway__spot.is-unpowered {
	animation: none;
	opacity: 1;
}

/* Callout: pinned card at the spot */

.maz-cutaway__callout {
	position: absolute;
	transform: translate(-50%, calc(-100% - 16px));
	max-width: 230px;
	padding: 0.75rem 0.9rem;
	background: #161b22;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 8px;
	pointer-events: none;
	z-index: 5;
	animation: maz-callout-in 0.16s var(--wp--custom--animation--easing--out, ease-out);
}

.maz-cutaway__callout.is-below {
	transform: translate(-50%, 22px);
}

@keyframes maz-callout-in {
	from {
		opacity: 0;
		scale: 0.94;
	}

	to {
		opacity: 1;
		scale: 1;
	}
}

.maz-cutaway__callout-title {
	margin: 0 0 0.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--paper);
}

.maz-cutaway__callout-desc {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.maz-cutaway__callout-off {
	margin: 0.5rem 0 0;
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ff8f8f;
}

@media (prefers-reduced-motion: reduce) {
	.maz-cutaway__spot {
		animation: none;
		opacity: 1;
	}

	.maz-cutaway__callout {
		animation: none;
	}

	.maz-legend__row,
	.maz-legend__dot {
		transition: none;
	}
}

@media print {
	.maz-cutaway__callout {
		display: none;
	}
}

/* =================================================================
 * v2.7.0 SMART HOME PAGE
 * Packages, includes checklist, process steps, control panels,
 * add-on groups, front-page hook.
 * ================================================================= */

.maz-sh-hero .maz-sh-hero__inner,
.maz-sh-packages .maz-sh-packages__inner,
.maz-sh-includes .maz-sh-includes__inner,
.maz-sh-process .maz-sh-process__inner,
.maz-sh-control .maz-sh-control__inner,
.maz-sh-network .maz-sh-network__inner,
.maz-sh-addons .maz-sh-addons__inner {
	padding-block: var(--wp--preset--spacing--70);
}

.maz-sh-hook .maz-sh-hook__inner {
	padding-block: var(--wp--preset--spacing--50);
}

/* Shared responsive grid for cards/panels */

.maz-sh-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--wp--preset--spacing--40);
	margin-block-start: var(--wp--preset--spacing--50);
}

/* Package cards */

.maz-sh-package {
	padding: var(--wp--preset--spacing--40);
	display: flex;
	flex-direction: column;
}

.maz-sh-package__name {
	margin: 0 0 0.75rem;
	font-size: 1.375rem;
	color: var(--wp--preset--color--paper);
}

.maz-sh-package__price-label {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.maz-sh-package__price {
	margin: 0.125rem 0 0.75rem;
	font-size: clamp(1.875rem, 3.2vw, 2.375rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--wp--preset--color--signal);
}

.maz-sh-package__lede {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--muted);
}

.maz-sh-package__list {
	list-style: none;
	margin: auto 0 0;
	padding: 0;
}

.maz-sh-package__list li {
	padding: 0.45rem 0 0.45rem 1.4rem;
	position: relative;
	border-block-start: 1px solid var(--wp--preset--color--rule);
	font-size: 0.9375rem;
}

.maz-sh-package__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.95rem;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--signal);
}

/* Includes checklist */

.maz-sh-checklist {
	list-style: none;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 0.25rem var(--wp--preset--spacing--50);
}

.maz-sh-checklist li {
	padding: 0.5rem 0 0.5rem 1.75rem;
	position: relative;
	border-block-end: 1px solid var(--wp--preset--color--rule);
}

.maz-sh-checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0.5rem;
	color: var(--wp--preset--color--signal);
	font-weight: 700;
}

.maz-sh-checklist--plain {
	display: block;
	margin-block-start: 0.75rem;
}

.maz-sh-includes__hardware,
.maz-sh-includes__note,
.maz-sh-network__note {
	margin-block-start: var(--wp--preset--spacing--40);
	max-width: 62ch;
}

/* Process steps */

.maz-sh-steps {
	list-style: none;
	margin: var(--wp--preset--spacing--50) 0 0;
	padding: 0;
	counter-reset: none;
}

.maz-sh-step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--wp--preset--spacing--40);
	padding-block: var(--wp--preset--spacing--40);
	border-block-start: 1px solid var(--wp--preset--color--rule);
}

.maz-sh-step:last-child {
	border-block-end: 1px solid var(--wp--preset--color--rule);
}

.maz-sh-step__num {
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wp--preset--color--signal);
	min-width: 2.25rem;
}

.maz-sh-step__body {
	display: grid;
	gap: 0.35rem;
}

.maz-sh-step__title {
	font-size: 1.125rem;
	color: var(--wp--preset--color--paper);
}

.maz-sh-step__desc {
	color: var(--wp--preset--color--muted);
	max-width: 68ch;
}

/* Control / network panels */

.maz-sh-panel {
	padding: var(--wp--preset--spacing--40);
}

.maz-sh-panel__title {
	margin: 0 0 0.6rem;
	font-size: 1.125rem;
	color: var(--wp--preset--color--paper);
}

.maz-sh-panel p {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
}

/* Add-on groups: one-column list style per category */

.maz-sh-addon-groups {
	margin-block-start: var(--wp--preset--spacing--50);
	display: grid;
	gap: var(--wp--preset--spacing--50);
	max-width: 46rem;
}

.maz-sh-addon-group__title {
	margin: 0 0 0.4rem;
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--signal);
}

.maz-sh-addon-group__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.maz-sh-addon-group__list li {
	padding: 0.55rem 0;
	border-block-start: 1px solid var(--wp--preset--color--rule);
	color: var(--wp--preset--color--paper);
}

.maz-sh-addon-group__list li:last-child {
	border-block-end: 1px solid var(--wp--preset--color--rule);
}

/* Front-page hook */

.maz-sh-hook__inner {
	gap: var(--wp--preset--spacing--40);
}

.maz-sh-hook__line {
	margin: 0;
	font-weight: 600;
	max-width: 46ch;
}

@media (max-width: 781px) {
	.maz-sh-package__price {
		font-size: 1.75rem;
	}
}

/* =================================================================
 * v2.8.0 SMART HOME: SPEC MATRIX + FOLD SYSTEM
 * One collapsible component, three uses: package details, process
 * steps, add-on groups. Native details/summary — keyboard and AT
 * support for free.
 * ================================================================= */

/* Quantity matrix: the numbers do the comparing */

.maz-sh-specs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 1px;
	background: var(--wp--preset--color--rule);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 8px;
	overflow: hidden;
	margin: 0 0 1rem;
}

.maz-sh-specs__cell {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.15rem;
	padding: 0.7rem 0.75rem;
	background: #10151c;
	margin: 0;
}

.maz-sh-specs__label {
	font-size: 0.6875rem;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.maz-sh-specs__value {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--signal);
}

.maz-sh-specs__prefix {
	display: block;
	font-size: 0.5625rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.2rem;
}

/* Fold component */

.maz-fold {
	border-block-start: 1px solid var(--wp--preset--color--rule);
}

.maz-fold:last-child,
.maz-fold--step {
	border-block-end: 1px solid var(--wp--preset--color--rule);
}

.maz-fold--step {
	border-block-end: 0;
}

.maz-fold__summary {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.85rem 0.25rem;
	cursor: pointer;
	list-style: none;
	transition: background-color 0.15s ease;
}

.maz-fold__summary::-webkit-details-marker {
	display: none;
}

.maz-fold__title {
	font-weight: 700;
	color: var(--wp--preset--color--paper);
	flex: 1;
}

.maz-fold__count {
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 999px;
	padding: 0.1rem 0.55rem;
}

.maz-fold__marker {
	position: relative;
	width: 14px;
	height: 14px;
	flex: none;
}

.maz-fold__marker::before,
.maz-fold__marker::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	background: var(--wp--preset--color--signal);
	transition: rotate 0.2s ease, opacity 0.2s ease;
}

.maz-fold__marker::before {
	width: 14px;
	height: 2px;
}

.maz-fold__marker::after {
	width: 2px;
	height: 14px;
}

.maz-fold[open] > .maz-fold__summary .maz-fold__marker::after {
	rotate: 90deg;
	opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
	.maz-fold__summary:hover {
		background: rgba(255, 198, 39, 0.05);
	}
}

.maz-fold__summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--signal);
	outline-offset: -2px;
}

.maz-fold__content {
	padding: 0.1rem 0.25rem 1rem;
}

.maz-fold[open] > .maz-fold__content {
	animation: maz-fold-in 0.22s var(--wp--custom--animation--easing--out, ease-out);
}

@keyframes maz-fold-in {
	from {
		opacity: 0;
		translate: 0 -4px;
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

/* Fold-specific tweaks */

.maz-sh-package__fold {
	margin-block-start: auto;
}

.maz-sh-package__fold .maz-sh-package__list li:first-child {
	border-block-start: 0;
}

.maz-fold--step .maz-fold__title {
	font-size: 1.0625rem;
}

.maz-fold--step .maz-fold__content {
	padding-inline-start: calc(2.25rem + 0.875rem);
}

.maz-sh-step {
	display: block;
	padding-block: 0;
	border: 0;
}

.maz-sh-steps {
	margin-block-start: var(--wp--preset--spacing--50);
}

.maz-fold--addon .maz-sh-addon-group__title {
	flex: 1;
}

.maz-fold--addon .maz-sh-addon-group__list li:first-child {
	border-block-start: 0;
}

@media (prefers-reduced-motion: reduce) {
	.maz-fold[open] > .maz-fold__content {
		animation: none;
	}

	.maz-fold__marker::before,
	.maz-fold__marker::after,
	.maz-fold__summary {
		transition: none;
	}
}

@media print {
	/* Closed details don't print their content; reveal everything. */
	.maz-fold > .maz-fold__content {
		display: block !important;
	}

	.maz-fold__marker {
		display: none;
	}
}

/* ------------------------------------------------------------------
 * Responsive audit hardening (2.8.2)
 * ---------------------------------------------------------------- */

/* Mobile disclosure nav — styles apply only once JS enhances, so the
 * no-JS experience keeps the full link list visible. */

.maz-nav-toggle {
	display: none;
}

@media (max-width: 781px) {
	.maz-nav-enhanced .maz-nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		min-height: 44px;
		padding: 0.5rem 0.9rem;
		background: transparent;
		border: 1px solid rgba(255, 255, 255, 0.25);
		border-radius: 6px;
		color: var(--wp--preset--color--paper);
		font-family: var(--wp--preset--font-family--mono, monospace);
		font-size: 0.75rem;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.maz-nav-enhanced .maz-nav-toggle:focus-visible {
		outline: 2px solid var(--wp--preset--color--signal);
		outline-offset: 2px;
	}

	.maz-nav-toggle__bars {
		display: inline-block;
		width: 16px;
		height: 2px;
		background: var(--wp--preset--color--signal);
		box-shadow: 0 5px 0 var(--wp--preset--color--signal), 0 -5px 0 var(--wp--preset--color--signal);
	}

	.maz-nav-enhanced[data-nav-open] .maz-nav-toggle__bars {
		box-shadow: 0 5px 0 var(--wp--preset--color--signal);
	}

	.maz-nav-enhanced .maz-nav {
		display: none;
	}

	.maz-nav-enhanced[data-nav-open] .maz-nav {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		flex-basis: 100%;
		gap: 0;
		padding-block: 0.25rem 0.75rem;
	}

	.maz-nav-enhanced[data-nav-open] .maz-nav p {
		margin: 0;
	}

	.maz-nav-enhanced[data-nav-open] .maz-nav a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding-inline: 0.25rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}
}

@media (hover: hover) and (pointer: fine) {
	.maz-nav-enhanced .maz-nav-toggle:hover {
		border-color: var(--wp--preset--color--signal);
	}
}

/* Tap targets: query-loop card titles render as short inline-block
 * links; padding extends the touch area without moving the layout. */

@media (max-width: 781px) {
	.wp-block-post-title a {
		display: inline-block;
		padding-block: 0.7rem;
		margin-block: -0.7rem;
	}

	.maz-emergency__phone a,
	a.maz-emergency__phone {
		min-height: 44px;
		align-items: center;
	}
}

/* Form controls: 16px floor prevents iOS zoom-on-focus; 44px height
 * meets the touch-target minimum. Applies everywhere — desktop only
 * benefits. */

.maz-quote-form input:not([type="checkbox"]):not([type="radio"]),
.maz-quote-form select,
.maz-quote-form textarea,
.wp-block-search__input {
	font-size: 1rem;
	min-height: 44px;
}

.maz-quote-form input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
}

/* ==================================================================
 * 2.9.0 — Elevation pass
 * Section rhythm & ghost numerals · display typography · card
 * species · panel-schedule footer · live-wire accents · hover energy
 * ================================================================== */

/* --- 1. Section rhythm ------------------------------------------- */

.maz-front {
	counter-reset: mazsec;
}

.maz-front .maz-sec {
	counter-increment: mazsec;
	position: relative;
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.maz-front .maz-sec::before {
	content: counter(mazsec, decimal-leading-zero) / "";
	position: absolute;
	top: clamp(0.5rem, 2vw, 1.5rem);
	right: 0;
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: clamp(4.5rem, 12vw, 9rem);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--ink);
	opacity: 0.05;
	pointer-events: none;
	user-select: none;
}


/* Kicker + amperage rule: every section H2 becomes a moment. */

.maz-sec .maz-label:first-child,
.maz-sec > .maz-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: #8a5800;
}

.maz-sec .maz-label:first-child::before,
.maz-sec > .maz-label::before {
	content: "";
	width: 2.25rem;
	height: 3px;
	background: var(--wp--preset--color--signal);
	flex: none;
}

.maz-sec h2 {
	font-size: clamp(1.9rem, 4.2vw, 3.1rem);
	letter-spacing: -0.015em;
	line-height: 1.08;
}

/* --- 2. Monumental stats ----------------------------------------- */

.maz-stats {
	gap: clamp(1.5rem, 4vw, 3rem);
}

.maz-stat {
	border-top: 3px solid var(--wp--preset--color--ink);
	padding-top: 1rem;
	flex: 1 1 200px;
}

.maz-stat__value {
	font-size: clamp(4rem, 9vw, 7rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.03em;
	display: block;
}

.maz-stat__value::after {
	content: "";
	display: inline-block;
	width: 0.55em;
	height: 0.12em;
	margin-left: 0.08em;
	background: var(--wp--preset--color--signal);
	vertical-align: 0.06em;
}

/* --- Testimonial band: one display-scale lead quote --------------- */

/* --- 3. Card species --------------------------------------------- */

/* Projects: work-order tickets. */

.maz-sec--projects {
	counter-reset: mazjob;
}

.maz-sec--projects .maz-project-card {
	counter-increment: mazjob;
	position: relative;
	border-inline-start: 3px solid var(--wp--preset--color--signal);
	padding-top: 3.1rem;
}

.maz-sec--projects .maz-project-card::before {
	content: "JOB " counter(mazjob, decimal-leading-zero) / "";
	position: absolute;
	top: 0.9rem;
	left: 1.25rem;
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: #5d646d;
}

.maz-sec--projects .maz-project-card::after {
	content: "";
	position: absolute;
	top: 1.05rem;
	right: 1.25rem;
	width: 0.6rem;
	height: 0.6rem;
	background: var(--wp--preset--color--signal);
}

/* Services: spec-sheet cards. */

.maz-sec--services .maz-card h3 {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.maz-sec--services .maz-card h3::before {
	content: "";
	width: 0.55rem;
	height: 0.55rem;
	background: var(--wp--preset--color--signal);
	flex: none;
	align-self: center;
}

/* Guides: editorial Q-rows. */

.maz-sec--guides {
	counter-reset: mazq;
}

.maz-sec--guides .maz-card {
	counter-increment: mazq;
}

/* Q labels replace the generic corner index — one numbering system. */

.maz-sec--guides .maz-card::after {
	content: none;
}

.maz-sec--guides .maz-card h3::before {
	content: "Q" counter(mazq) / "";
	display: block;
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: #8a5800;
	margin-bottom: 0.5rem;
}

/* --- 4. Panel-schedule footer ------------------------------------ */

.maz-site-footer__brandline {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	padding-bottom: 1.4rem;
}

.maz-site-footer__columns .wp-block-column {
	border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
	padding-inline-start: 1.4rem;
	position: relative;
}

.maz-site-footer__columns .wp-block-column::before {
	content: "";
	position: absolute;
	top: 0.25rem;
	left: -1px;
	width: 3px;
	height: 1.1rem;
	background: var(--wp--preset--color--signal);
}

.maz-site-footer__columns .maz-label {
	letter-spacing: 0.18em;
}

.maz-site-footer__legal {
	border-top: 3px double rgba(255, 255, 255, 0.22);
	padding-top: 1rem;
	margin-top: 2.25rem;
}

/* --- 5 & 6. Hover energy (pointer-guarded) ------------------------ */

.maz-card {
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.maz-card:hover {
		transform: translateY(-3px);
		border-color: var(--wp--preset--color--signal);
		box-shadow: 0 10px 28px rgba(22, 24, 29, 0.09);
	}

	.maz-sec--projects .maz-project-card:hover {
		border-inline-start-width: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.maz-card,
	.maz-card:hover {
		transition: none;
		transform: none;
	}
}

/* Ticker: soft edge fades. */

.maz-ticker {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Mobile scale-downs. */

@media (max-width: 781px) {
	.maz-front .maz-sec::before {
		font-size: 3.6rem;
		opacity: 0.06;
	}

	.maz-site-footer__columns .wp-block-column {
		border-inline-start: 0;
		padding-inline-start: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		padding-top: 1rem;
	}

	.maz-site-footer__columns .wp-block-column::before {
		display: none;
	}
}

/* ------------------------------------------------------------------
 * 2.9.2 — contrast repair
 * Muted (#8B949E) passes on ink but fails on paper (2.84:1). Labels
 * default to a light-context gray that clears 4.5:1; dark contexts
 * restore the original muted. Signal-colored labels (footer, kickers)
 * keep their higher-specificity colors untouched.
 * ---------------------------------------------------------------- */

.maz-label {
	color: #5d646d;
}

.has-ink-background-color .maz-label,
.has-surface-background-color .maz-label,
[class*="maz-"][class*="-band"] .maz-label {
	color: var(--wp--preset--color--muted);
}

/* Client login: quiet but findable in the legal row; full tap target
 * on touch, underline for affordance. */

.maz-site-footer__login a {
	color: var(--wp--preset--color--muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.maz-site-footer__login a:hover {
		color: var(--wp--preset--color--signal);
	}
}

.maz-site-footer__login a:focus-visible {
	outline: 2px solid var(--wp--preset--color--signal);
	outline-offset: 2px;
}

@media (max-width: 781px) {
	.maz-site-footer__login a {
		display: inline-block;
		padding-block: 0.7rem;
		margin-block: -0.7rem;
	}
}

/* Client login in the primary nav: an outline pill so it reads as an
 * action, not a fifth content page. Inside the mobile disclosure it
 * becomes a standard 44px row, amber-marked. */

.maz-nav__login a {
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	padding: 0.32rem 0.85rem;
}

.maz-nav__login a:focus-visible {
	outline: 2px solid var(--wp--preset--color--signal);
	outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.maz-nav__login a:hover {
		border-color: var(--wp--preset--color--signal);
		color: var(--wp--preset--color--signal);
	}
}

@media (max-width: 781px) {
	.maz-nav-enhanced[data-nav-open] .maz-nav__login a {
		border: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 0;
		padding-inline: 0.25rem;
		color: var(--wp--preset--color--signal);
	}
}

/* 2.9.8: the pill is its own hover affordance — suppress the nav's
 * scaleX underline bar, which rendered as a stray line jutting out
 * beneath the pill's rounded border. */

.maz-nav__login a::after {
	content: none;
}
