/* PortfolioMo – Template 1
   Colors come from the chosen palette: --pm-bg, --pm-surface, --pm-text, --pm-muted,
   --pm-primary, --pm-accent, --pm-on-primary.
   Text size rule for every template: nothing smaller than 16px, except the footer (15px). */

:root {
	--pm-bg: #0E0E0F;
	--pm-surface: #1A1A1D;
	--pm-text: #F4F4F5;
	--pm-muted: #A6A6AE;
	--pm-primary: #D93B3B;
	--pm-accent: #FF8A80;
	--pm-on-primary: #FFFFFF;
	--pm-primary-text: #DF5959;
	--pm-inv-bg: #F4F4F5;
	--pm-inv-surface: #FAFAFA;
	--pm-inv-text: #0E0E0F;
	--pm-inv-muted: #54545C;
	--pm-inv-primary: #C83636;
	--pm-inv-primary-text: #A92E2E;
	--pm-inv-on-primary: #FFFFFF;

	/* Fonts. Replaced by the font picked in Design (see pmp_font_css()). */
	--pm-font-heading: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pm-font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pm-radius: 14px;
	--pm-header-h: 76px;
}

/* Colors that are worked out from the palette. Declared again on .pm-invert so they follow the flipped colors. */
:root, .pm-invert {
	--pm-line: color-mix(in srgb, var(--pm-text) 12%, transparent);
	--pm-line-strong: color-mix(in srgb, var(--pm-text) 22%, transparent);
	--pm-tint: color-mix(in srgb, var(--pm-primary) 14%, transparent);
	--pm-hover: color-mix(in srgb, var(--pm-text) 8%, transparent);
}

/* Every other section uses the flipped palette: dark, light, dark… */
.pm-invert {
	--pm-bg: var(--pm-inv-bg);
	--pm-surface: var(--pm-inv-surface);
	--pm-text: var(--pm-inv-text);
	--pm-muted: var(--pm-inv-muted);
	--pm-primary: var(--pm-inv-primary);
	--pm-on-primary: var(--pm-inv-on-primary);
	--pm-primary-text: var(--pm-inv-primary-text);
	background: var(--pm-bg);
	color: var(--pm-text);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--pm-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body.pm {
	margin: 0;
	background: var(--pm-bg);
	color: var(--pm-text);
	font-family: var(--pm-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
/* Resets use :where() so they never outrank component styles. */
:where(.pm) :where(h1, h2, h3, h4, p, ul, ol, dl, dd) { margin: 0; padding: 0; }
:where(.pm) :where(ul, ol) { list-style: none; }
:where(.pm) img { max-width: 100%; height: auto; display: block; }
:where(.pm) a { color: inherit; }
:where(.pm) button { font: inherit; color: inherit; }
.pm :focus-visible { outline: 3px solid var(--pm-primary); outline-offset: 3px; border-radius: 6px; }
.pm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pm-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--pm-primary); color: var(--pm-on-primary); border-radius: 8px; text-decoration: none; }
.pm-skip:focus { top: 12px; }

.pm-wrap { width: min(1400px, 100% - 48px); margin-inline: auto; }

/* ---------- Type ---------- */

.pm-h2, .pm-h3, .pm-h4, .pm-hero-title, .pm-logo, .pm-article-title, .pm-cta-title,
.pm-stats strong, .pm-about-badge strong, .pm-tl-top h4, .pm-entry h2, .pm-entry h3, .pm-entry h4, .pm-blob-initials {
	font-family: var(--pm-font-heading);
}

.pm-h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.pm-h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 20px !important; }
.pm-h3 .pm-icon { color: var(--pm-primary-text); }
.pm-h4 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.pm-muted { color: var(--pm-muted); font-size: 16px; }
.pm-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; margin-bottom: 14px !important; }
.pm-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--pm-primary); }

.pm-prose { color: var(--pm-muted); }
.pm-prose p + p, .pm-prose p + ul, .pm-prose ul + p, .pm-prose p + ol { margin-top: 12px; }
.pm-prose ul, .pm-prose ol { padding-left: 20px; }
.pm-prose ul { list-style: disc; }
.pm-prose ol { list-style: decimal; }
.pm-prose li + li { margin-top: 4px; }
.pm-prose li::marker { color: var(--pm-primary-text); }
.pm-prose strong, .pm-prose b { color: var(--pm-text); font-weight: 600; }
.pm-prose a { color: var(--pm-text); text-decoration-color: var(--pm-primary-text); text-underline-offset: 3px; }
.pm-prose-sm { font-size: 16px; line-height: 1.6; }

/* ---------- Buttons ---------- */

.pm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.pm-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 26px;
	border-radius: 8px;
	border: 1.5px solid transparent;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
/* Hover: every button changes its background. */
.pm-btn-primary { background: var(--pm-primary); color: var(--pm-on-primary); }
.pm-btn-primary:hover { background: var(--pm-text); border-color: var(--pm-text); color: var(--pm-bg); transform: translateY(-2px); box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--pm-text) 60%, transparent); }
.pm-btn-outline { border-color: var(--pm-primary-text); color: var(--pm-text); }
.pm-btn-outline:hover { background: var(--pm-primary); color: var(--pm-on-primary); transform: translateY(-2px); }
.pm-btn-outline .pm-icon { color: var(--pm-primary-text); transition: color .25s; }
.pm-btn-outline:hover .pm-icon { color: inherit; }
.pm-btn-text { padding: 0 16px; min-height: 50px; }
.pm-btn-text:hover { background: var(--pm-hover); }
.pm-btn-text .pm-icon { transition: transform .25s; }
.pm-btn-text:hover .pm-icon { transform: translateX(4px); }
.pm-btn:active { transform: translateY(0); }

/* ---------- Header ---------- */

.pm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--pm-bg) 88%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--pm-line);
}
.admin-bar .pm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pm-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .pm-header { top: 0; } }
.pm-header-inner { height: var(--pm-header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pm-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 600; }
.pm-logo-mark {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 6px;
	border-radius: 9px;
	background: var(--pm-primary);
	color: var(--pm-on-primary);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .02em;
}
.pm-logo-name { color: var(--pm-text); }
.pm-logo-img { max-height: 44px; width: auto; }
.pm-nav ul { display: flex; gap: 36px; }
.pm-nav a { text-decoration: none; font-size: 16px; color: var(--pm-text); opacity: .82; transition: color .2s, opacity .2s; }
.pm-nav a:hover, .pm-nav a.is-active { color: var(--pm-primary-text); opacity: 1; }
.pm-nav-cta-mobile { display: none !important; }
.pm-header-actions { display: flex; align-items: center; gap: 8px; }
.pm-header-cta { min-height: 46px; padding: 0 20px; }
.pm-menu-btn:hover { background: var(--pm-hover); }
.pm-menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--pm-line-strong); border-radius: 10px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.pm-menu-close { display: none; }
.pm-menu-btn[aria-expanded="true"] .pm-menu-open { display: none; }
.pm-menu-btn[aria-expanded="true"] .pm-menu-close { display: inline; }
.pm-menu-btn span { line-height: 0; }

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

.pm-hero { padding: 72px 0 88px; position: relative; overflow: clip; }
.pm-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto auto;
	width: 60%;
	height: 100%;
	background: radial-gradient(ellipse at 70% 35%, color-mix(in srgb, var(--pm-primary) 16%, transparent), transparent 60%);
	pointer-events: none;
}
.pm-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.pm-hero-nophoto { grid-template-columns: 1fr; }
.pm-hero-nophoto .pm-hero-text { max-width: 900px; margin-inline: auto; text-align: center; }
.pm-hero-nophoto .pm-hero-lead { margin-inline: auto; }
.pm-hero-nophoto .pm-actions { justify-content: center; }
.pm-hero:has(.pm-hero-nophoto)::before { width: 100%; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--pm-primary) 14%, transparent), transparent 60%); }
.pm-hero:has(.pm-hero-nophoto) { padding-top: 104px; }
.pm-hero-title { font-size: clamp(40px, 5.6vw, 68px); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.pm-line { display: block; }
.pm-hero-title-next { margin-top: 0 !important; }
.pm-hello { color: var(--pm-primary-text); }
.pm-hero-lead { margin-top: 24px !important; max-width: 50ch; color: var(--pm-muted); font-size: 18px; }

.pm-hero-figure { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1.08; justify-self: end; }
.pm-blob { position: absolute; border-radius: 58% 42% 50% 50% / 46% 44% 56% 54%; }
.pm-blob-fill { inset: 14% 2% 0 4%; background: var(--pm-primary); transform: rotate(-8deg); }
.pm-blob-ring { inset: 4% 6% 6% 0; border: 2px solid var(--pm-text); opacity: .9; transform: rotate(10deg); }
.pm-blob-photo { inset: 2% 4% 8% 6%; overflow: hidden; background: var(--pm-surface); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.pm-blob-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.pm-blob-initials { display: grid; place-items: center; width: 100%; height: 100%; font-size: clamp(64px, 10vw, 120px); font-weight: 700; color: var(--pm-primary-text); }

.pm-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 72px !important; position: relative; }
.pm-links > li { flex: 1 1 230px; max-width: calc((100% - 48px) / 4); min-width: 0; }
.pm-hero:has(.pm-hero-nophoto) .pm-links { justify-content: center; }
.pm-link-card {
	transition: border-color .25s, background-color .25s, transform .25s;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: var(--pm-radius);
	background: var(--pm-surface);
	border: 1px solid var(--pm-line);
	text-decoration: none;
}
.pm-link-card:hover { border-color: var(--pm-primary-text); background: var(--pm-tint); transform: translateY(-2px); }
.pm-link-mark { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--pm-line-strong); font-size: 19px; font-weight: 600; color: var(--pm-muted); transition: border-color .2s, color .2s; }
.pm-brand-icon { font-family: "Font Awesome 6 Brands"; font-style: normal; font-weight: 400; font-size: 20px; line-height: 1; display: inline-block; -webkit-font-smoothing: antialiased; }
.pm-link-mark .pm-icon { width: 22px; height: 22px; }
.pm-link-card:hover .pm-link-mark { border-color: var(--pm-primary-text); color: var(--pm-primary-text); }
.pm-link-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pm-link-text strong { font-size: 18px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-link-text span { font-size: 16px; color: var(--pm-muted); }
.pm-link-arrow { color: var(--pm-muted); line-height: 0; }
.pm-link-card:hover .pm-link-arrow { color: var(--pm-primary-text); }

/* ---------- Sections ---------- */

.pm-section { padding: 104px 0; position: relative; overflow: clip; }
.pm-section > .pm-wrap, .pm-hero > .pm-wrap { position: relative; z-index: 1; }
.pm-tight-top { padding-top: 0; }
.pm-section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.pm-section-head p { margin-top: 14px !important; color: var(--pm-muted); }

.pm-card { background: var(--pm-surface); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.pm-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--pm-text); border-bottom: 1.5px solid var(--pm-primary); padding-bottom: 2px; align-self: flex-start; }
.pm-card-link { transition: color .25s, background-color .25s; border-radius: 4px 4px 0 0; }
.pm-card-link:hover { color: var(--pm-primary-text); background: var(--pm-tint); }
.pm-card-link .pm-icon { color: var(--pm-primary-text); }
/* Card rows: always centered, so 1 or 2 cards don't leave an empty gap on the right. */
.pm-cards { --gap: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.pm-cards > li { flex: 0 1 calc((100% - 2 * var(--gap)) / 3); min-width: 0; }

/* ---------- About ---------- */

.pm-about { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 80px; }
.pm-about-nophoto { grid-template-columns: 1fr; max-width: 820px; }
.pm-about-figure { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1.08; }
/* Same shaped photo as the hero, mirrored so the two don't look copied. */
.pm-about-figure .pm-blob { border-radius: 42% 58% 50% 50% / 44% 46% 54% 56%; }
.pm-about-figure .pm-blob-fill { inset: 12% 6% 0 0; transform: rotate(8deg); }
.pm-about-figure .pm-blob-ring { inset: 4% 0 6% 6%; transform: rotate(-10deg); }
.pm-about-figure .pm-blob-photo { inset: 2% 6% 8% 4%; }
.pm-about-badge {
	position: absolute;
	z-index: 2;
	right: -4%;
	bottom: 4%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 18px 26px;
	border-radius: 12px;
	background: var(--pm-surface);
	border: 1px solid var(--pm-line);
	box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .45);
	text-align: center;
}
.pm-about-badge strong { font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--pm-primary-text); }
.pm-about-badge span { font-size: 16px; color: var(--pm-muted); }
.pm-about-text .pm-h2 { margin-bottom: 22px !important; max-width: 20ch; }
.pm-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin-top: 28px !important; padding-top: 28px; border-top: 1px solid var(--pm-line); }
.pm-details dt { font-size: 16px; color: var(--pm-muted); }
.pm-details dd { font-weight: 500; overflow-wrap: break-word; min-width: 0; }
.pm-details a { text-decoration: none; }
.pm-details a:hover { color: var(--pm-primary-text); }

.pm-stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin-top: 88px !important; border-top: 1px solid var(--pm-line); border-bottom: 1px solid var(--pm-line); }
.pm-stats-n1 { max-width: 360px; margin-inline: auto; }
.pm-stats-n2 { max-width: 720px; margin-inline: auto; }
.pm-stats li { display: flex; flex-direction: column; align-items: center; padding: 32px 16px; text-align: center; }
.pm-stats li + li { border-left: 1px solid var(--pm-line); }
.pm-stats strong { font-size: clamp(34px, 4vw, 46px); font-weight: 600; line-height: 1.1; }
.pm-stats span { margin-top: 6px; color: var(--pm-muted); font-size: 16px; }

/* ---------- Resume ---------- */

.pm-resume { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.pm-resume-col:only-child { grid-column: 1 / -1; max-width: 820px; margin-inline: auto; width: 100%; }
.pm-timeline { border-top: 1px solid var(--pm-line); }
.pm-tl-item { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--pm-line); }
.pm-tl-mark {
	flex: none;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--pm-tint);
	color: var(--pm-primary-text);
	font-size: 16px;
	font-weight: 600;
}
.pm-tl-body { flex: 1; min-width: 0; }
.pm-tl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 20px; flex-wrap: wrap; }
.pm-tl-top > div { flex: 1 1 220px; min-width: 0; }
.pm-tl-top h4 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.pm-tl-sub { color: var(--pm-muted); font-size: 16px; }
.pm-tl-level { font-size: 16px; font-weight: 500; color: var(--pm-muted); margin-bottom: 2px !important; }
.pm-tl-date { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--pm-muted); padding-top: 3px; }
.pm-tl-date::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pm-line-strong); }
.pm-tl-date.is-current::before { background: var(--pm-primary); }
.pm-tl-body .pm-prose { margin-top: 12px; }
.pm-tl-honors { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px !important; font-size: 16px; font-weight: 500; }
.pm-tl-honors .pm-icon { color: var(--pm-primary-text); }

/* ---------- Skills ---------- */

.pm-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.pm-skills > .pm-skill-group { flex: 1 1 300px; max-width: 580px; min-width: 0; }
.pm-skill-group { padding: 28px; }
.pm-skill-group .pm-h4 { margin-bottom: 18px !important; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-chips li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--pm-line-strong); font-size: 16px; line-height: 1.3; }
.pm-chips-sm li { padding: 4px 10px; font-size: 16px; color: var(--pm-muted); }

/* ---------- Services ---------- */

.pm-service { display: flex; flex-direction: column; padding: 28px; transition: border-color .25s, transform .25s; }
.pm-service:hover { border-color: var(--pm-primary); transform: translateY(-3px); }
.pm-service-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 14px; background: var(--pm-tint); color: var(--pm-primary-text); }
.pm-service-icon .pm-fa { font-size: 24px; line-height: 1; }
.pm-service .pm-h4 { font-size: 20px; }
.pm-service .pm-prose { margin-top: 10px; }
.pm-service-price { margin-top: 14px !important; font-size: 16px; font-weight: 600; color: var(--pm-primary-text); }
.pm-service .pm-card-link { margin-top: auto; padding-top: 18px; }

/* ---------- Certifications ---------- */

.pm-cert { display: flex; flex-direction: column; padding: 26px; }
.pm-cert-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--pm-tint); color: var(--pm-primary-text); margin-bottom: 18px; }
.pm-cert .pm-muted { margin-top: 6px !important; }

/* ---------- Trainings ---------- */

.pm-trainings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--pm-line); }
.pm-trainings:has(> li:only-child) { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
.pm-trainings li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--pm-line); }
.pm-train-date { font-size: 16px; font-weight: 500; color: var(--pm-primary-text); padding-top: 2px; }
.pm-trainings .pm-muted { margin-top: 4px !important; }

/* ---------- Projects ---------- */

.pm-project { display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s; }
.pm-project:hover { border-color: var(--pm-line-strong); }
.pm-project-media { position: relative; display: block; flex: none; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; background: var(--pm-bg); overflow: hidden; }
.pm-project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pm-project:hover .pm-project-media img { transform: scale(1.03); }
.pm-project-placeholder { display: grid; place-items: center; text-decoration: none; background: linear-gradient(135deg, var(--pm-tint), transparent 70%), var(--pm-bg); }
.pm-project-placeholder span { font-size: 64px; font-weight: 700; line-height: 1; color: var(--pm-primary-text); opacity: .85; }
.pm-photo-count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--pm-bg) 75%, transparent); color: var(--pm-text); font-size: 16px; font-weight: 500; backdrop-filter: blur(4px); }
.pm-video { cursor: pointer; }
.pm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pm-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: var(--pm-primary);
	color: var(--pm-on-primary);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	transition: transform .2s;
}
.pm-play .pm-icon { margin-left: 3px; }
.pm-video:hover .pm-play { transform: scale(1.08); }
.pm-project-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.pm-project-title { text-decoration: none; }
.pm-project-title:hover { color: var(--pm-primary-text); }
.pm-project-role { font-size: 16px; color: var(--pm-muted); margin-top: 2px !important; }
.pm-project-excerpt { margin-top: 10px !important; font-size: 16px; line-height: 1.6; color: var(--pm-muted); }
.pm-project-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: auto; padding-top: 18px; }
.pm-project-links .pm-card-link { margin-top: 0; }
.pm-card-link-muted { border-bottom-color: var(--pm-line-strong); }
.pm-project-body .pm-prose { margin-top: 12px; }
.pm-project-body .pm-chips { margin-top: 16px; }

/* ---------- References ---------- */

.pm-ref { padding: 26px; display: flex; flex-direction: column; }
.pm-ref-head { display: flex; gap: 14px; align-items: center; }
.pm-ref-mark { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--pm-primary); color: var(--pm-on-primary); font-weight: 600; }
.pm-ref-head .pm-muted { margin-top: 2px !important; }
.pm-ref-rel { align-self: flex-start; margin-top: 16px !important; padding: 4px 12px; border-radius: 999px; background: var(--pm-tint); font-size: 16px; font-weight: 500; }
.pm-ref-contact { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--pm-line); display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.pm-ref-contact li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pm-ref-contact .pm-icon { flex: none; color: var(--pm-primary-text); }
.pm-ref-contact a { text-decoration: none; overflow-wrap: anywhere; }
.pm-ref-contact a:hover { color: var(--pm-primary-text); }
.pm-ref-upon { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--pm-line); }

/* ---------- Contact ---------- */

.pm-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; text-align: center; }
.pm-contact li { flex: 1 1 220px; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.pm-contact-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 10px; border-radius: 50%; background: var(--pm-tint); color: var(--pm-primary-text); }
.pm-contact .pm-h4 { font-size: 22px; font-weight: 500; }
.pm-contact a, .pm-contact li > span:last-child { color: var(--pm-muted); text-decoration: none; overflow-wrap: anywhere; }
.pm-contact a:hover { color: var(--pm-primary-text); }
.pm-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 72px;
	padding: 36px 40px;
	border-radius: 18px;
	background: var(--pm-surface);
	border: 1px solid var(--pm-line);
	position: relative;
	overflow: hidden;
}
.pm-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--pm-primary); }
.pm-cta-title { font-size: clamp(22px, 3vw, 30px); font-weight: 600; line-height: 1.2; }
.pm-cta p { margin-top: 6px !important; color: var(--pm-muted); }
.pm-cta .pm-btn { flex: none; }

/* ---------- Contact form (Contact Form 7) ---------- */

.pm-contact-split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.pm-contact-side .pm-cta-title { margin-bottom: 8px !important; }
.pm-contact-side > p { color: var(--pm-muted); }
.pm-contact-list { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 28px !important; text-align: left; }
/* Icon on the left, label above the value. */
.pm-contact-list li { flex: none; max-width: none; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-items: center; padding: 14px 16px; border-radius: var(--pm-radius); background: var(--pm-surface); border: 1px solid var(--pm-line); text-align: left; }
.pm-contact-list .pm-contact-icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; }
.pm-contact-list .pm-h4 { font-size: 16px; font-weight: 500; color: var(--pm-muted); align-self: end; }
.pm-contact-list li > a, .pm-contact-list li > span:last-child { color: var(--pm-text); font-weight: 500; align-self: start; overflow-wrap: anywhere; }
.pm-form-card { padding: 32px; }

.pm-form-card .wpcf7-form p { margin: 0 0 18px; }
.pm-form-card .wpcf7-form label { display: block; font-size: 16px; font-weight: 500; color: var(--pm-text); }
.pm-form-card .wpcf7-form br { display: none; }
.pm-form-card .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.pm-form-card input[type="text"],
.pm-form-card input[type="email"],
.pm-form-card input[type="tel"],
.pm-form-card input[type="url"],
.pm-form-card input[type="number"],
.pm-form-card input[type="date"],
.pm-form-card select,
.pm-form-card textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--pm-line-strong);
	border-radius: 10px;
	background: var(--pm-bg);
	color: var(--pm-text);
	font: inherit;
	font-size: 16px;
	transition: border-color .2s, box-shadow .2s;
}
.pm-form-card textarea { height: 170px; min-height: 120px; resize: vertical; }
.pm-form-card input:focus, .pm-form-card select:focus, .pm-form-card textarea:focus { outline: none; border-color: var(--pm-primary); box-shadow: 0 0 0 3px var(--pm-tint); }
.pm-form-card input::placeholder, .pm-form-card textarea::placeholder { color: var(--pm-muted); opacity: .8; }
.pm-form-card .wpcf7-submit {
	min-height: 52px;
	padding: 0 32px;
	border: 0;
	border-radius: 8px;
	background: var(--pm-primary);
	color: var(--pm-on-primary);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .25s, color .25s, transform .25s;
}
.pm-form-card .wpcf7-submit:hover { background: var(--pm-text); color: var(--pm-bg); transform: translateY(-2px); }
.pm-form-card .wpcf7-submit:disabled { opacity: .6; cursor: wait; }
.pm-form-card .wpcf7-spinner { vertical-align: middle; margin-left: 12px; }
.pm-form-card .wpcf7-not-valid-tip { margin-top: 6px; font-size: 16px; font-weight: 500; color: #E5484D; }
.pm-invert .pm-form-card .wpcf7-not-valid-tip { color: #B42318; }
.pm-form-card .wpcf7-not-valid { border-color: #E5484D !important; }
.pm-form-card .wpcf7-response-output { margin: 18px 0 0 !important; padding: 12px 16px !important; border-radius: 10px; border-width: 1px !important; font-size: 16px; }
.pm-form-card .wpcf7 form.sent .wpcf7-response-output { border-color: #22A06B !important; background: color-mix(in srgb, #22A06B 12%, transparent); }
.pm-form-card .wpcf7 form.invalid .wpcf7-response-output,
.pm-form-card .wpcf7 form.failed .wpcf7-response-output { border-color: #E5484D !important; background: color-mix(in srgb, #E5484D 10%, transparent); }

/* ---------- Footer ---------- */

.pm-footer { padding: 28px 0; border-top: 1px solid var(--pm-line); font-size: 15px; color: var(--pm-muted); }
.pm-footer-inner { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.pm-credit a { text-decoration: none; color: var(--pm-text); }
.pm-credit a:hover { color: var(--pm-primary-text); }

/* ---------- Floating shapes ---------- */

.pm-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pm-float {
	position: absolute;
	display: block;
	opacity: .6;
	animation: pm-drift-a 8s ease-in-out infinite;
	will-change: transform;
}
.pm-float:nth-child(2n) { animation-name: pm-drift-b; animation-duration: 10s; }
.pm-float:nth-child(3n) { animation-name: pm-drift-c; animation-duration: 12s; }
.pm-float:nth-child(4n) { animation-duration: 7s; animation-direction: reverse; }

.pm-float-ring { width: 64px; height: 64px; border: 2px solid var(--pm-primary); border-radius: 50%; }
.pm-float-ring-lg { width: 110px; height: 110px; border: 2px dashed var(--pm-primary); border-radius: 50%; opacity: .35; }
.pm-float-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pm-primary); }
.pm-float-dot-sm { width: 8px; height: 8px; border-radius: 50%; background: var(--pm-muted); }
.pm-float-square { width: 26px; height: 26px; border: 2px solid var(--pm-muted); border-radius: 6px; }
.pm-float-plus { width: 26px; height: 26px; }
.pm-float-plus::before, .pm-float-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--pm-muted); border-radius: 2px; }
.pm-float-plus::before { width: 26px; height: 3px; margin: -1.5px 0 0 -13px; }
.pm-float-plus::after { width: 3px; height: 26px; margin: -13px 0 0 -1.5px; }
.pm-float-dots { width: 72px; height: 72px; background: radial-gradient(circle, var(--pm-muted) 1.6px, transparent 2.2px) 0 0 / 14px 14px; opacity: .45; }
.pm-float-triangle { width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 26px solid var(--pm-primary); opacity: .5; }
.pm-float-half { width: 60px; height: 30px; border: 2px solid var(--pm-muted); border-bottom: 0; border-radius: 60px 60px 0 0; }

/* Positions */
.pm-p-1 { top: 5%; left: 44%; width: 48px; height: 48px; }
.pm-p-2 { top: 72%; left: 5%; }
.pm-p-3 { top: 16%; right: 3%; }
.pm-p-4 { top: 54%; left: 57%; }
.pm-p-5 { top: 8%; left: 7%; }
.pm-p-6 { bottom: 6%; right: 2%; }
.pm-p-7 { top: 38%; left: 1.5%; }
.pm-p-8 { top: 3%; right: 30%; }
.pm-p-9 { top: 10%; right: 6%; }
.pm-p-10 { top: 38%; left: -2%; }
.pm-p-11 { top: 5%; left: 30%; }
.pm-p-12 { bottom: 10%; right: 12%; }
.pm-p-13 { bottom: 24%; left: 46%; }
.pm-p-14 { top: 6%; left: 4%; }
.pm-p-15 { bottom: 8%; right: 4%; }
.pm-p-16 { top: 12%; right: 16%; }
.pm-p-17 { top: 48%; left: 49%; }
.pm-p-18 { top: 10%; left: 10%; }
.pm-p-19 { bottom: 14%; right: 7%; }
.pm-p-20 { top: 18%; right: 20%; }
.pm-p-21 { top: 8%; right: 9%; }
.pm-p-22 { bottom: 16%; left: 3%; }
.pm-p-23 { top: 6%; right: 5%; }
.pm-p-24 { top: 16%; left: 8%; }
.pm-p-25 { bottom: -30px; left: 44%; }
.pm-p-26 { top: 14%; left: 6%; }
.pm-p-27 { bottom: 18%; right: 9%; }
.pm-p-28 { top: 10%; right: 22%; }
.pm-p-29 { top: 14%; left: 7%; }
.pm-p-30 { top: 22%; right: 12%; }
.pm-p-31 { bottom: 30%; right: 5%; }
.pm-p-32 { bottom: 8%; left: 3%; }
.pm-p-33 { top: 8%; left: 40%; }

@keyframes pm-drift-a {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	25% { transform: translate(22px, -26px) rotate(20deg); }
	50% { transform: translate(-6px, -40px) rotate(0deg); }
	75% { transform: translate(-22px, -14px) rotate(-20deg); }
}
@keyframes pm-drift-b {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	33% { transform: translate(-28px, 18px) rotate(-30deg); }
	66% { transform: translate(20px, 30px) rotate(25deg); }
}
@keyframes pm-drift-c {
	0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
	50% { transform: translate(30px, -22px) rotate(90deg) scale(1.15); }
}

/* ---------- Picture slider ---------- */

.pm-slider { position: relative; }
.pm-slides { position: relative; margin: 0; padding: 0; list-style: none; aspect-ratio: 16 / 9; background: var(--pm-surface); }
.pm-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.pm-slide.is-active { opacity: 1; }
.pm-slide img { width: 100%; height: 100%; object-fit: contain; }
.pm-slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--pm-bg) 78%, transparent);
	color: var(--pm-text);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: background-color .2s;
}
.pm-slider-btn:hover { background: var(--pm-primary); color: var(--pm-on-primary); }
.pm-slider-prev { left: 12px; }
.pm-slider-next { right: 12px; }
.pm-slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.pm-slider-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--pm-text) 45%, transparent); cursor: pointer; transition: background-color .2s, transform .2s; }
.pm-slider-dot.is-active { background: var(--pm-primary); transform: scale(1.25); }

/* ---------- Fade in on scroll (only when JavaScript is running) ---------- */

.pm-js :is(.pm-hero-text, .pm-hero-figure, .pm-links > li, .pm-section-head, .pm-about-figure, .pm-about-text, .pm-stats, .pm-resume-col, .pm-skill-group, .pm-cards > li, .pm-trainings, .pm-contact > li, .pm-cta, .pm-article-head, .pm-article-media, .pm-article-body) {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s ease, transform .7s ease;
	transition-delay: var(--pm-delay, 0s);
}
.pm-js :is(.pm-hero-text, .pm-hero-figure, .pm-links > li, .pm-section-head, .pm-about-figure, .pm-about-text, .pm-stats, .pm-resume-col, .pm-skill-group, .pm-cards > li, .pm-trainings, .pm-contact > li, .pm-cta, .pm-article-head, .pm-article-media, .pm-article-body).is-visible { opacity: 1; transform: none; }

/* ---------- Single project ---------- */

.pm-article { padding: 48px 0 96px; }
.pm-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; color: var(--pm-muted); text-decoration: none; }
.pm-back:hover { color: var(--pm-primary-text); }
.pm-article-head { max-width: 860px; margin: 24px 0 40px; }
.pm-article-title { font-size: clamp(34px, 5vw, 56px); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.pm-article-lead { margin-top: 18px !important; font-size: 19px; color: var(--pm-muted); max-width: 60ch; }
.pm-article-media { margin: 0 0 56px; border-radius: 18px; overflow: hidden; background: var(--pm-surface); border: 1px solid var(--pm-line); }
.pm-article-media > img { width: 100%; max-height: 680px; object-fit: cover; }
.pm-article-media .pm-project-media { aspect-ratio: 16 / 9; }
.pm-article-media .pm-play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.pm-article-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.pm-article-body-full { grid-template-columns: minmax(0, 820px); justify-content: center; }
.pm-article-aside { padding: 26px; position: sticky; top: calc(var(--pm-header-h) + 24px); }
.pm-article-aside dl { display: flex; flex-direction: column; gap: 18px; }
.pm-article-aside dt { font-size: 16px; color: var(--pm-muted); margin-bottom: 4px; }
.pm-article-aside dd { font-weight: 500; }
.pm-article-aside .pm-chips { margin-top: 4px; }
.pm-btn-block { width: 100%; margin-top: 24px; }
.pm-cta-flat { margin-top: 0; }

/* Post content from the block editor */
.pm-entry { font-size: 18px; line-height: 1.75; color: color-mix(in srgb, var(--pm-text) 88%, var(--pm-bg)); min-width: 0; }
.pm-entry > * + * { margin-top: 1.2em; }
.pm-entry h2, .pm-entry h3, .pm-entry h4 { color: var(--pm-text); font-weight: 600; line-height: 1.25; margin-top: 1.8em; }
.pm-entry h2 { font-size: 30px; }
.pm-entry h3 { font-size: 24px; }
.pm-entry h4 { font-size: 20px; }
.pm-entry a { color: var(--pm-text); text-decoration-color: var(--pm-primary-text); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.pm-entry a:hover { color: var(--pm-primary-text); }
.pm-entry ul, .pm-entry ol { padding-left: 1.3em; }
.pm-entry ul { list-style: disc; }
.pm-entry ol { list-style: decimal; }
.pm-entry li + li { margin-top: .4em; }
.pm-entry li::marker { color: var(--pm-primary-text); }
.pm-entry img { border-radius: 12px; height: auto; }
.pm-entry figure { margin-left: 0; margin-right: 0; }
.pm-entry figcaption { margin-top: 8px; font-size: 16px; color: var(--pm-muted); text-align: center; }
.pm-entry blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--pm-primary); font-size: 20px; color: var(--pm-text); }
.pm-entry hr { border: 0; border-top: 1px solid var(--pm-line); }
.pm-entry pre, .pm-entry code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--pm-surface); border-radius: 6px; }
.pm-entry code { padding: 2px 6px; }
.pm-entry pre { padding: 16px; overflow-x: auto; }
.pm-entry .wp-block-embed__wrapper { position: relative; }
.pm-entry .wp-block-embed.is-type-video .wp-block-embed__wrapper,
.pm-entry .wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.pm-entry .wp-block-embed.is-type-video iframe,
.pm-entry .wp-embed-aspect-16-9 iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; border-radius: 12px; }
.pm-entry .wp-block-button__link { background: var(--pm-primary); color: var(--pm-on-primary); border-radius: 8px; text-decoration: none; padding: 12px 24px; }
.pm-entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pm-entry th, .pm-entry td { padding: 10px 12px; border-bottom: 1px solid var(--pm-line); text-align: left; }
.pm-entry .wp-block-table { overflow-x: auto; }

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.pm-nav ul { gap: 24px; }
	.pm-about { gap: 48px; }
	.pm-cards > li { flex-basis: calc((100% - var(--gap)) / 2); }
	.pm-links > li { max-width: calc((100% - 16px) / 2); }
	.pm-resume { gap: 48px; }
	.pm-article-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}

/* ---------- Mobile menu ---------- */

@media (max-width: 900px) {
	:root { --pm-header-h: 66px; }
	.pm-menu-btn { display: inline-flex; }
	.pm-header-cta { display: none !important; }
	.pm-nav {
		position: fixed;
		inset: var(--pm-header-h) 0 auto 0;
		padding: 12px 24px 28px;
		background: var(--pm-bg);
		border-bottom: 1px solid var(--pm-line);
		box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .5);
		display: none;
	}
	.admin-bar .pm-nav { top: calc(var(--pm-header-h) + 46px); }
	.pm-nav.is-open { display: block; }
	.pm-nav ul { flex-direction: column; gap: 0; }
	.pm-nav li a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--pm-line); opacity: 1; }
	.pm-nav-cta-mobile { display: inline-flex !important; width: 100%; margin-top: 20px; }

	.pm-hero { padding: 40px 0 64px; }
	.pm-hero::before { width: 100%; }
	.pm-hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.pm-hero-figure { justify-self: center; width: min(78vw, 380px); order: -1; }
	.pm-links { margin-top: 48px !important; }

	.pm-section { padding: 72px 0; }
	.pm-section-head { margin-bottom: 40px; }
	.pm-about { grid-template-columns: 1fr; }
	.pm-about-figure { width: min(78vw, 400px); margin-inline: auto; }
	.pm-resume { grid-template-columns: 1fr; gap: 56px; }
	.pm-trainings { grid-template-columns: 1fr; }
	.pm-stats { margin-top: 64px !important; }
	.pm-article-body { grid-template-columns: 1fr; }
	.pm-contact-split { grid-template-columns: 1fr; gap: 32px; }
	.pm-article-aside { position: static; }
	.pm-article-media { margin-bottom: 40px; border-radius: 14px; }
}
@media (max-width: 600px) {
	.admin-bar .pm-nav { top: var(--pm-header-h); position: absolute; }
}

/* ---------- Phone ---------- */

@media (max-width: 640px) {
	body.pm { font-size: 16px; }
	.pm-wrap { width: min(1400px, 100% - 36px); }
	.pm-hero-title { font-size: clamp(34px, 10vw, 44px); }
	.pm-hero-lead { font-size: 16px; }
	.pm-actions .pm-btn-primary { flex: 1; }
	.pm-links { gap: 10px; }
	.pm-links > li { flex: 1 1 100%; max-width: 100%; }
	.pm-link-card { padding: 12px; gap: 10px; }
	.pm-link-mark { width: 38px; height: 38px; font-size: 16px; }
	.pm-link-text strong { font-size: 16px; }
	.pm-link-text span { font-size: 16px; }
	.pm-cards > li { flex-basis: 100%; }
	.pm-about-figure { width: min(76vw, 320px); }
	.pm-about-badge { right: -2%; }
	.pm-about-badge { padding: 14px 18px; }
	.pm-about-badge strong { font-size: 28px; }
	.pm-stats li { padding: 24px 8px; }
	.pm-stats-n4 { grid-template-columns: 1fr 1fr; }
	.pm-stats-n4 li:nth-child(3) { border-left: 0; }
	.pm-stats-n4 li:nth-child(n+3) { border-top: 1px solid var(--pm-line); }
	.pm-stats-n3 strong { font-size: 28px; }
	.pm-stats-n3 span { font-size: 16px; }
	.pm-hero:has(.pm-hero-nophoto) { padding-top: 56px; }
	.pm-float-ring { width: 44px; height: 44px; }
	.pm-float-ring-lg { width: 70px; height: 70px; }
	.pm-float-dots { width: 48px; height: 48px; }
	/* Fewer shapes on phones so text stays clear. */
	.pm-p-1, .pm-p-4, .pm-p-8, .pm-p-11, .pm-p-13, .pm-p-17, .pm-p-20, .pm-p-28, .pm-p-33 { display: none; }
	.pm-tl-item { gap: 14px; }
	.pm-tl-mark { width: 42px; height: 42px; font-size: 16px; }
	.pm-tl-top { flex-direction: column; gap: 6px; }
	/* In a column, flex-basis would become a height and leave a big gap. */
	.pm-tl-top > div { flex: 0 0 auto; width: 100%; }
	.pm-tl-date { padding-top: 0; }
	/* Email and phone get their own full row so long addresses aren't cut. */
	.pm-details .pm-detail-email, .pm-details .pm-detail-phone { grid-column: 1 / -1; }
	.pm-trainings li { grid-template-columns: 1fr; gap: 4px; }
	.pm-skill-group, .pm-cert, .pm-ref, .pm-project-body, .pm-service { padding: 22px; }
	.pm-form-card { padding: 22px; }
	.pm-form-card .wpcf7-submit { width: 100%; }
	.pm-slider-btn { width: 38px; height: 38px; font-size: 22px; }
	.pm-slider-prev { left: 6px; }
	.pm-slider-next { right: 6px; }
	.pm-cta { flex-direction: column; align-items: stretch; padding: 28px 24px; margin-top: 48px; }
	.pm-contact { grid-template-columns: 1fr; }
	.pm-footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pm *, .pm *::before, .pm *::after { transition: none !important; animation: none !important; }
	.pm-js :is(.pm-hero-text, .pm-hero-figure, .pm-links > li, .pm-section-head, .pm-about-figure, .pm-about-text, .pm-stats, .pm-resume-col, .pm-skill-group, .pm-cards > li, .pm-trainings, .pm-contact > li, .pm-cta, .pm-article-head, .pm-article-media, .pm-article-body) { opacity: 1; transform: none; }
}

.pm-section-sub { margin-top: 10px; color: var(--pm-muted); max-width: 60ch; }
.pm-center .pm-section-sub { margin-inline: auto; }
