/* WeMove Pittsburgh: base layer (tokens, reset, type, buttons, frame + grid rules, motion utilities). */

:root {
	--wm-gold: var(--wp--preset--color--gold, #F2C107);
	--wm-gold-strong: var(--wp--preset--color--gold-strong, #D9AC00);
	--wm-gold-soft: var(--wp--preset--color--gold-soft, #FFF4CC);
	--wm-ink: var(--wp--preset--color--ink, #111317);
	--wm-ink-2: var(--wp--preset--color--ink-2, #1A1D22);
	--wm-steel: var(--wp--preset--color--steel, #2A2E35);
	--wm-text: var(--wp--preset--color--text, #4F555D);
	--wm-muted: var(--wp--preset--color--muted, #80868E);
	--wm-line: var(--wp--preset--color--line, #E7E5DF);
	--wm-paper: var(--wp--preset--color--paper, #F6F5F1);
	--wm-white: #FFFFFF;
	--wm-on-dark: #F3F2EE;
	--wm-on-dark-2: rgb(243 242 238 / .72);
	--wm-line-dark: rgb(255 255 255 / .1);

	--wm-display: var(--wp--preset--font-family--display, Geist, system-ui, sans-serif);
	--wm-mono: var(--wp--preset--font-family--mono, "Geist Mono", ui-monospace, monospace);

	--wm-ease: cubic-bezier(.2, .7, .2, 1);
	--wm-ease-out: cubic-bezier(.23, 1, .32, 1);

	/* Frame: the 4-column grid every section sits on. Width snapped to 4px so each rule lands on a whole pixel. */
	--wm-gutter: 40px;
	--wm-cols: 4;
	--wm-col: 25%;
	--wm-fw: min(1360px, round(down, 100% - 2 * var(--wm-gutter), 4px));
	--wm-fl: round(down, (100% - var(--wm-fw)) / 2, 1px);
	--wm-rule: var(--wm-line);

	--wm-pad-section: 128px;
	--wm-header-h: 78px;
	--wm-header-top: 24px;
}
@media (max-width: 1023px) {
	:root { --wm-gutter: 24px; --wm-cols: 2; --wm-col: 50%; --wm-pad-section: 96px; --wm-header-h: 66px; --wm-header-top: 16px; }
}
@media (max-width: 599px) {
	:root { --wm-gutter: 16px; --wm-cols: 1; --wm-col: 100%; --wm-pad-section: 72px; --wm-header-h: 60px; --wm-header-top: 12px; }
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--wm-header-h) + var(--wm-header-top) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--wm-white);
	color: var(--wm-text);
	font-family: var(--wm-display);
	font-size: 1rem;
	line-height: 1.6;
	letter-spacing: -0.006em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01" 0;
	overflow-x: clip;
}
img, video, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
:where(.wp-site-blocks) > * + * { margin-block-start: 0; }

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--wm-display);
	color: var(--wm-ink);
	font-weight: 500;
	margin: 0;
	text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
strong, b { font-weight: 600; color: var(--wm-ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:where(.wm-prose, .wm-post__content, .entry-content) a:where(:not(.wp-block-button__link)) {
	color: var(--wm-ink);
	text-decoration: underline;
	text-decoration-color: var(--wm-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: .22em;
	transition: text-decoration-color .2s, background-size .3s var(--wm-ease);
}
:where(.wm-prose, .wm-post__content, .entry-content) a:where(:not(.wp-block-button__link)):hover { text-decoration-color: var(--wm-ink); }
.wm-dark :where(.wm-prose) a:not(.wp-block-button__link), .wm-dark a:not(.wp-block-button__link) { color: var(--wm-on-dark); }

.wm-h-display { font-size: clamp(2.5rem, 1.56rem + 3.85vw, 5rem); line-height: 1.02; letter-spacing: -0.045em; }
.wm-h-section { font-size: clamp(2rem, 1.44rem + 2.3vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; }
.wm-h-card { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.5rem); line-height: 1.2; letter-spacing: -0.02em; }
.wm-lead { font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.5; color: var(--wm-text); }

::selection { background: var(--wm-gold); color: var(--wm-ink); }

/* Eyebrow: a box label. Gold bar + mono caps. */
.wm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wm-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wm-ink);
	line-height: 1.3;
	margin: 0;
}
.wm-eyebrow::before {
	content: "";
	flex: none;
	width: 3px;
	height: 1.15em;
	background: var(--wm-gold);
}
.wm-dark .wm-eyebrow, .wm-hero .wm-eyebrow { color: var(--wm-on-dark); }
.wm-eyebrow--center { justify-content: center; flex-direction: column; gap: 10px; }
.wm-eyebrow--center::before { width: 18px; height: 3px; }

.wm-mono { font-family: var(--wm-mono); letter-spacing: 0; }

/* ------------------------------------------------------------------ buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.wp-block-button { margin: 0; }
.wp-block-button__link, .wm-btn-el {
	--wm-btn-bg: var(--wm-gold);
	--wm-btn-fg: var(--wm-ink);
	--wm-btn-fill: var(--wm-ink);
	--wm-btn-fill-fg: var(--wm-white);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 58px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 0;
	background: var(--wm-btn-bg);
	color: var(--wm-btn-fg);
	font-family: var(--wm-display);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color .18s var(--wm-ease-out), border-color .18s var(--wm-ease-out), transform .16s var(--wm-ease-out);
}
/* fill slides up from the bottom on hover */
.wp-block-button__link::before, .wm-btn-el::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	background: var(--wm-btn-fill);
	transform: translateY(101%);
	transition: transform .2s var(--wm-ease-out);
}
/* arrow chip */
.wp-block-button__link::after, .wm-btn-el::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11 11 3M4.5 3H11v6.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'/%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 14 14'%3E%3Cpath d='M3 11 11 3M4.5 3H11v6.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s var(--wm-ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.wp-block-button__link:hover, .wm-btn-el:hover { color: var(--wm-btn-fill-fg); transition-duration: .26s; }
	.wp-block-button__link:hover::before, .wm-btn-el:hover::before { transform: translateY(0); transition-duration: .3s; }
	.wp-block-button__link:hover::after, .wm-btn-el:hover::after { transition-duration: .3s; }
	.wp-block-button__link:hover::after, .wm-btn-el:hover::after { transform: translate(2px, -2px); }
}
.wp-block-button__link:active, .wm-btn-el:active { transform: scale(.98); }
.wp-block-button__link:focus-visible, .wm-btn-el:focus-visible { outline: 2px solid var(--wm-ink); outline-offset: 3px; }
:is(.wm-dark, .wm-hero, .wm-footer, .wm-contact__pitch, .wm-cta, .wm-post-cta, .wm-post-card-cta, .wm-menu, .wm-header, .wm-mobile-actions, .wm-perk--dark) .wp-block-button__link:focus-visible { outline-color: var(--wm-gold); }

/* variants (block styles + context) */
.is-style-wm-dark .wp-block-button__link, .wm-btn-el--dark { --wm-btn-bg: var(--wm-ink); --wm-btn-fg: var(--wm-white); --wm-btn-fill: var(--wm-gold); --wm-btn-fill-fg: var(--wm-ink); }
.is-style-wm-ghost .wp-block-button__link, .wm-btn-el--ghost { --wm-btn-bg: transparent; --wm-btn-fg: var(--wm-ink); --wm-btn-fill: var(--wm-ink); --wm-btn-fill-fg: var(--wm-white); border-color: var(--wm-ink); }
.is-style-wm-light .wp-block-button__link, .wm-btn-el--light { --wm-btn-bg: var(--wm-white); --wm-btn-fg: var(--wm-ink); --wm-btn-fill: var(--wm-gold); --wm-btn-fill-fg: var(--wm-ink); }
.wm-dark .is-style-wm-ghost .wp-block-button__link, .wm-hero .is-style-wm-ghost .wp-block-button__link, .wm-contact__pitch .is-style-wm-ghost .wp-block-button__link,
.wm-post-cta .is-style-wm-ghost .wp-block-button__link, .wm-cta .is-style-wm-ghost .wp-block-button__link, .wm-post-card-cta .is-style-wm-ghost .wp-block-button__link, .wm-btn-el--ghost-light {
	--wm-btn-fg: var(--wm-white); --wm-btn-fill: var(--wm-white); --wm-btn-fill-fg: var(--wm-ink); border-color: rgb(255 255 255 / .7);
}
.wm-dark .wp-block-button:not([class*="is-style"]) .wp-block-button__link, .wm-hero .wp-block-button:not([class*="is-style"]) .wp-block-button__link, .wm-contact__pitch .wp-block-button:not([class*="is-style"]) .wp-block-button__link { --wm-btn-fill: var(--wm-white); --wm-btn-fill-fg: var(--wm-ink); }
.wm-btn--tel .wp-block-button__link::after, .wm-btn-el--tel::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E");
	width: 16px; height: 16px;
}
@media (max-width: 599px) {
	.wp-block-button__link, .wm-btn-el { min-height: 52px; padding: 0 18px; font-size: .975rem; }
}

/* ------------------------------------------------------------------ frame + rules */
.wm-section {
	position: relative;
	isolation: isolate;
	padding: 0;
	margin: 0;
	background: var(--wm-white);
}
.wm-section::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--wm-fl);
	width: var(--wm-fw);
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(var(--wm-rule), var(--wm-rule)) right 0 / 1px 100% no-repeat,
		linear-gradient(to right, var(--wm-rule) 0 1px, transparent 1px) 0 0 / var(--wm-col) 100% repeat-x;
}
.wm-section--paper { background: var(--wm-paper); --wm-rule: #E3E0D8; }
.wm-dark, .wm-section--dark { background: var(--wm-ink); color: var(--wm-on-dark-2); --wm-rule: var(--wm-line-dark); }
.wm-dark :where(h1, h2, h3, h4, h5, h6, strong) { color: var(--wm-on-dark); }
.wm-frame {
	position: relative;
	z-index: 1;
	width: var(--wm-fw);
	margin-left: var(--wm-fl);
	margin-right: 0;
	max-width: none;
}
.wm-pad { padding-block: var(--wm-pad-section); }
.wm-pad-top { padding-top: var(--wm-pad-section); }
.wm-pad-bottom { padding-bottom: var(--wm-pad-section); }
/* hairline under a section, on the frame only */
.wm-hr { position: relative; z-index: 1; height: 1px; width: var(--wm-fw); margin-left: var(--wm-fl); background: var(--wm-rule); }

/* WP flow-layout margins must not leak into grid/flex components */
:where(.wm-grid, .wm-cells, .wm-cards, .wm-steps, .wm-intro, .wm-split, .wm-faq, .wm-stats, .wm-contact, .wm-footer__cols, .wm-hero__inner, .wm-areas__cols, .wm-perks, .wm-post-grid, .wm-map-block, .wm-faq-grid, .wm-lp-hero__inner, .wm-header__actions, .wm-cards__note, .wm-steps__list, .wm-rows, .wm-footer__top, .wm-footer__mid, .wm-svcs, .wm-svc, .wm-xlinks) > * { margin-block: 0 !important; }
.wm-frame > * + * { margin-block-start: 0; }

/* Corner ticks (framed cards) */
.wm-ticks { position: relative; }
.wm-ticks::after {
	content: "";
	position: absolute;
	inset: 6px;
	pointer-events: none;
	--t: var(--wm-tick, var(--wm-gold));
	background:
		linear-gradient(var(--t), var(--t)) 0 0 / 9px 1px no-repeat,
		linear-gradient(var(--t), var(--t)) 0 0 / 1px 9px no-repeat,
		linear-gradient(var(--t), var(--t)) 100% 0 / 9px 1px no-repeat,
		linear-gradient(var(--t), var(--t)) 100% 0 / 1px 9px no-repeat,
		linear-gradient(var(--t), var(--t)) 0 100% / 9px 1px no-repeat,
		linear-gradient(var(--t), var(--t)) 0 100% / 1px 9px no-repeat,
		linear-gradient(var(--t), var(--t)) 100% 100% / 9px 1px no-repeat,
		linear-gradient(var(--t), var(--t)) 100% 100% / 1px 9px no-repeat;
}

/* ------------------------------------------------------------------ lists, tables, prose */
.wm-prose > * + * { margin-top: 1.1em; }
.wm-prose > :where(h2, h3, h4) { margin-top: 1.8em; }
.wm-prose > :where(h2, h3, h4) + * { margin-top: .7em; }
.wm-prose > :first-child { margin-top: 0; }
.wm-prose :where(ul, ol) { padding-left: 0; list-style: none; margin-block: 1.1em 0; }
.wm-prose :where(ul, ol) li { position: relative; padding-left: 26px; }
.wm-prose :where(ul, ol) li + li { margin-top: .55em; }
.wm-prose ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .62em;
	width: 8px;
	height: 8px;
	background: var(--wm-gold);
}
.wm-prose ol { counter-reset: wm-ol; }
.wm-prose ol li { counter-increment: wm-ol; }
.wm-prose ol li::before { content: counter(wm-ol, decimal-leading-zero) / ""; position: absolute; left: 0; top: .15em; font-family: var(--wm-mono); font-size: .75rem; color: var(--wm-ink); }
.wm-prose h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.5rem); line-height: 1.25; letter-spacing: -0.02em; }
.wm-prose h4 { font-size: 1.15rem; line-height: 1.3; }

.wp-block-table { margin: 1.6em 0 0; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; min-width: 520px; }
.wp-block-table th, .wp-block-table td { text-align: left; vertical-align: top; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--wm-line); }
.wp-block-table thead th { font-family: var(--wm-mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--wm-ink); background: var(--wm-paper); border-bottom: 1px solid var(--wm-ink); }
.wp-block-table tbody tr:hover td { background: rgb(242 193 7 / .06); }
.wp-block-table td:first-child { color: var(--wm-ink); font-weight: 500; }
.wm-dark .wp-block-table thead th { background: var(--wm-ink-2); color: var(--wm-on-dark); border-color: var(--wm-gold); }
.wm-dark .wp-block-table td { border-color: var(--wm-line-dark); }
.wm-dark .wp-block-table td:first-child { color: var(--wm-on-dark); }

/* Callout paragraph (bold/italic CTA lines inside docs) */
.wm-callout { border-left: 3px solid var(--wm-gold); padding: 14px 0 14px 18px; background: linear-gradient(90deg, rgb(242 193 7 / .08), transparent 70%); }

/* ------------------------------------------------------------------ focus + a11y */
:focus-visible { outline: 2px solid var(--wm-ink); outline-offset: 2px; }
:where(.wm-dark, .wm-hero, .wm-header, .wm-footer, .wm-cta, .wm-contact-sec, .wm-menu, .wm-post-cta, .wm-post-card-cta, .wm-band--dark, .wm-mobile-actions) :focus-visible { outline-color: var(--wm-gold); }
.wm-contact__form :focus-visible { outline-color: var(--wm-ink); }
.screen-reader-text, .wm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 1000; top: 12px; left: 12px; width: auto; height: auto; clip: auto; clip-path: none; background: var(--wm-gold); color: var(--wm-ink); padding: 12px 16px; }

/* ------------------------------------------------------------------ motion utilities (JS adds .js on <html>) */
.js .wm-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--wm-ease-out), transform .7s var(--wm-ease-out); }
.js .wm-reveal.is-in { opacity: 1; transform: none; }
.js .wm-reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--wm-ease); }
.js .wm-reveal-img img { transform: scale(1.12); transition: transform 1.4s var(--wm-ease); }
.js .wm-reveal-img.is-in { clip-path: inset(0 0 0 0); }
.js .wm-reveal-img.is-in img { transform: none; }
/* split lines (hero) */
.wm-line { display: block; overflow: clip; overflow-clip-margin: .2em; padding-bottom: .04em; margin-bottom: -.04em; }
.wm-line > span { display: inline-block; }
.js .wm-split-ready .wm-line > span { transform: translateY(105%); opacity: 0; filter: blur(4px); transition: transform .6s var(--wm-ease-out), opacity .4s var(--wm-ease-out), filter .4s var(--wm-ease-out); transition-delay: calc(var(--i, 0) * 60ms + 60ms); }
.js .wm-split-ready.is-in .wm-line > span { transform: none; opacity: 1; filter: none; }
/* word scrub (section headings) */
.wm-words .wm-w { will-change: auto; }
@media (prefers-reduced-motion: reduce) {
	.js .wm-reveal, .js .wm-reveal-img, .js .wm-reveal-img img, .js .wm-split-ready .wm-line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; transition: none !important; }
	.wm-words .wm-w { opacity: 1 !important; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* emphasis inherits the light text colour inside dark components */
:where(.wm-dark, .wm-hero, .wm-post-cta, .wm-contact__pitch, .wm-perk--dark, .wm-post-card-cta, .wm-cta, .wm-menu) strong { color: inherit; }
/* hero headline waits for the line split (no visible -> hidden -> reveal flash) */
@media (prefers-reduced-motion: no-preference) {
	.js:not(.wm-js-timeout) .wm-hero:not(.wm-lp-hero) h1:not(.wm-split-ready) { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
	.js .wm-hero .wm-hero__main > :not(h1), .js .wm-hero .wm-hero__side > * {
		opacity: 0; transform: translateY(10px);
		transition: opacity .5s var(--wm-ease-out), transform .5s var(--wm-ease-out);
		transition-delay: calc(180ms + var(--wm-d, 0) * 50ms);
	}
	.js .wm-hero.is-ready .wm-hero__main > :not(h1), .js .wm-hero.is-ready .wm-hero__side > *,
	.wm-js-timeout .wm-hero .wm-hero__main > :not(h1), .wm-js-timeout .wm-hero .wm-hero__side > * { opacity: 1; transform: none; }
}

/* the lander has no headline reveal (LCP on paid traffic): only the secondary fade */
.wm-lp-hero .wm-hero__main > * { transition-delay: calc(60ms + var(--wm-d, 0) * 40ms) !important; }

/* reduced motion: fades only, nothing moves */
@media (prefers-reduced-motion: reduce) {
	.wm-hero__media img { transform: none !important; transition: none !important; }
	.wm-header { transition: opacity .2s !important; }
	.wm-header.is-hidden:not(.is-menu-open) { transform: none; opacity: 0; pointer-events: none; }
	.wm-menu, .wm-header.is-menu-open .wm-menu { transform: none !important; clip-path: none !important; transition: opacity .15s, visibility 0s .15s !important; }
	.wm-header.is-menu-open .wm-menu { transition: opacity .15s, visibility 0s !important; }
	.wm-menu__body > *, .wm-menu__nav li { transform: none !important; transition: opacity .15s !important; transition-delay: 0s !important; }
	.wm-mobile-actions { transition: opacity .2s !important; transform: none !important; opacity: 0; pointer-events: none; }
	.wm-mobile-actions.is-visible { opacity: 1; pointer-events: auto; }
	.wp-block-details::details-content { transition: none !important; }
	.wm-card__media img, .wm-post-card__media img, .wm-cell::before, .wp-block-button__link::before, .wp-block-button__link::after { transition: none !important; }
	.wm-wordmark span { transform: none !important; }
}

/* links inside dark panels stay light */
.wm-contact__pitch a:not(.wp-block-button__link), .wm-cta a:not(.wp-block-button__link) { color: var(--wm-on-dark); text-decoration-color: var(--wm-gold); }
