/* PortfolioMo – Template 8
   Colors come from the chosen palette (--pm-*). Soft page, serif headings with a short
   colored underline, blob-shaped photos and wide project rows.
   Text size rule for every template: nothing smaller than 16px, except the footer (15px). */

:root {
	--pm-bg: #F7F8FC;
	--pm-surface: #FFFFFF;
	--pm-text: #22242B;
	--pm-muted: #5E626E;
	--pm-primary: #F5B921;
	--pm-accent: #FBE0A0;
	--pm-on-primary: #241B00;
	--pm-primary-text: #7A5A00;

	--pm-font-heading: "DM Serif Display", Georgia, "Times New Roman", serif;
	--pm-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--pm-line: color-mix(in srgb, var(--pm-text) 12%, transparent);
	--pm-line-strong: color-mix(in srgb, var(--pm-text) 24%, transparent);
	--pm-tint: color-mix(in srgb, var(--pm-primary) 18%, transparent);
	--p8-radius: 18px;
	--p8-shadow: 0 22px 44px -32px color-mix(in srgb, var(--pm-text) 70%, transparent);
	--p8-bar-h: 74px;
	--p8-blob: 58% 42% 38% 62% / 45% 42% 58% 55%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--pm-bg); }
body.pm8 {
	margin: 0;
	min-height: 100vh;
	background: var(--pm-bg);
	color: var(--pm-text);
	font-family: var(--pm-font-body);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
:where(.pm8) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(.pm8) :where(ul, ol) { list-style: none; }
:where(.pm8) img { max-width: 100%; height: auto; display: block; }
:where(.pm8) a { color: inherit; }
:where(.pm8) button { font: inherit; color: inherit; }
.pm8 h1, .pm8 h2, .pm8 h3, .pm8 h4 { font-family: var(--pm-font-heading); font-weight: 400; color: var(--pm-text); line-height: 1.22; }
.pm8 :focus-visible { outline: 3px solid var(--pm-primary); outline-offset: 3px; border-radius: 8px; }
.pm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p8-skip { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--pm-primary); color: var(--pm-on-primary); border-radius: 8px; text-decoration: none; }
.p8-skip:focus { top: 12px; }
.pm-brand-icon { font-family: "Font Awesome 6 Brands"; font-style: normal; font-weight: 400; line-height: 1; display: inline-block; -webkit-font-smoothing: antialiased; }

.p8-wrap { width: min(1400px, 100% - 44px); margin-inline: auto; }
.p8-muted { color: var(--pm-muted); }
.p8-kicker { font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pm-primary-text); }

/* ---------- Top bar ---------- */

.p8-bar { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--pm-bg) 92%, transparent); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.admin-bar .p8-bar { top: 32px; }
.p8-bar.is-stuck { box-shadow: 0 10px 30px -24px color-mix(in srgb, var(--pm-text) 70%, transparent); }
.p8-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--p8-bar-h); }
.p8-logo { font-family: var(--pm-font-heading); font-size: 22px; text-decoration: none; }
.p8-logo img { max-height: 36px; width: auto; }
.p8-nav ul { display: flex; flex-wrap: wrap; gap: 30px; }
.p8-nav a { font-weight: 600; text-decoration: none; color: var(--pm-text); transition: color .2s; }
.p8-nav a:hover, .p8-nav a.is-active { color: var(--pm-primary-text); }
.p8-menu-btn { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--pm-line-strong); border-radius: 12px; background: var(--pm-surface); cursor: pointer; }
.p8-menu-btn span { line-height: 0; }
.p8-menu-close { display: none; }
.p8-menu-btn[aria-expanded="true"] .p8-menu-open { display: none; }
.p8-menu-btn[aria-expanded="true"] .p8-menu-close { display: inline; }

/* ---------- Shared pieces ---------- */

.p8-section { padding: 76px 0; }
.p8-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.p8-head h1, .p8-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.p8-rule { display: block; width: 66px; height: 4px; margin: 14px auto 0; border-radius: 4px; background: var(--pm-primary); }
.p8-rule-left { margin-left: 0; margin-right: auto; }
.p8-intro { margin-top: 16px !important; color: var(--pm-muted); }
.p8-col-title { font-size: 24px; margin-bottom: 20px !important; }

.p8-card { padding: 28px; border-radius: var(--p8-radius); background: var(--pm-surface); box-shadow: var(--p8-shadow); }
.p8-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.p8-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }

.p8-prose { color: var(--pm-muted); }
.p8-prose p + p, .p8-prose p + ul, .p8-prose ul + p, .p8-prose h3 + ul { margin-top: 12px; }
.p8-prose h3 { margin-top: 20px; font-size: 20px; }
.p8-prose ul, .p8-prose ol { padding-left: 20px; }
.p8-prose ul { list-style: disc; }
.p8-prose ol { list-style: decimal; }
.p8-prose li + li { margin-top: 4px; }
.p8-prose li::marker { color: var(--pm-primary); }
.p8-prose strong { color: var(--pm-text); font-weight: 700; }
.p8-prose a { color: var(--pm-primary-text); }

.p8-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 26px;
	border: 2px solid transparent;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform .25s, background-color .25s, color .25s, border-color .25s;
}
.p8-btn:hover { transform: translateY(-2px); }
.p8-btn-primary { background: var(--pm-primary); color: var(--pm-on-primary); }
.p8-btn-ghost { border-color: var(--pm-line-strong); color: var(--pm-text); background: var(--pm-surface); }
.p8-btn-ghost:hover { border-color: var(--pm-primary); }
.p8-btn-sm { min-height: 44px; padding: 0 20px; }
.p8-btn-block { width: 100%; }
.p8-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.p8-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; color: var(--pm-primary-text); text-decoration: none; }
.p8-link:hover { text-decoration: underline; }
.p8-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p8-chips li { padding: 4px 14px; border-radius: 999px; background: var(--pm-tint); color: var(--pm-text); }
.p8-pill { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--pm-primary); color: var(--pm-on-primary); font-weight: 700; margin-bottom: 8px !important; }
.p8-pill-soft { background: var(--pm-tint); color: var(--pm-text); margin-top: 10px !important; }
.p8-social { display: flex; flex-wrap: wrap; gap: 10px; }
.p8-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pm-tint); color: var(--pm-text); text-decoration: none; font-size: 17px; transition: background-color .25s, color .25s, transform .25s; }
.p8-social a:hover { background: var(--pm-primary); color: var(--pm-on-primary); transform: translateY(-3px); }
.p8-social .pm-icon { width: 19px; height: 19px; }

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

.p8-hero { position: relative; padding: 48px 0 84px; overflow: clip; }
/* The wavy colored shape that fills the right side of the hero. */
.p8-hero-shape {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(52vw, 780px);
	height: 100%;
}
.p8-hero-shape path { fill: var(--pm-primary); }
.p8-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.p8-hero-nophoto .p8-hero-grid { grid-template-columns: 1fr; text-align: center; }
.p8-hero-nophoto .p8-actions, .p8-hero-nophoto .p8-lead { justify-content: center; margin-inline: auto; }
.p8-hero h1 { margin-top: 12px; font-size: clamp(36px, 4.8vw, 58px); }
.p8-lead { margin-top: 18px !important; max-width: 46ch; font-size: 17px; color: var(--pm-muted); }
.p8-hero-photo { display: flex; justify-content: center; transform: translateX(-7%); }
.p8-blob {
	width: min(100%, 460px);
	aspect-ratio: 1 / 1.05;
	border-radius: var(--p8-blob);
	overflow: hidden;
	animation: p8-morph 16s ease-in-out infinite;
}
.p8-blob img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@keyframes p8-morph {
	0%, 100% { border-radius: 58% 42% 38% 62% / 45% 42% 58% 55%; }
	50% { border-radius: 42% 58% 56% 44% / 58% 52% 48% 42%; }
}

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

.p8-about { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.p8-about-nophoto { grid-template-columns: 1fr; max-width: 760px; }
.p8-about-text h2 { font-size: clamp(28px, 3.2vw, 38px); }
.p8-about-text .p8-prose { margin-top: 20px; }
.p8-about-photo { position: relative; width: min(100%, 380px); aspect-ratio: 1 / 1; margin-inline: auto; border-radius: 50%; background: var(--pm-primary); overflow: hidden; }
.p8-about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.p8-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 24px !important; }
.p8-details > div { min-width: 0; }
.p8-details .p8-detail-email { grid-column: 1 / -1; }
.p8-details dt { font-weight: 700; }
.p8-details dd { color: var(--pm-muted); overflow-wrap: anywhere; }
.p8-details a { text-decoration: none; }
.p8-details a:hover { color: var(--pm-primary-text); }

/* ---------- Services and skills ---------- */

.p8-service { display: flex; flex-direction: column; }
.p8-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; background: var(--pm-tint); color: var(--pm-primary-text); }
.p8-icon .pm-fa { font-size: 24px; line-height: 1; }
.p8-service h3, .p8-skill h3 { font-size: 22px; margin-bottom: 10px; }
.p8-price { margin-top: auto !important; padding-top: 14px; font-weight: 700; color: color-mix(in srgb, var(--pm-primary-text) 76%, var(--pm-text)); }

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

.p8-works { display: flex; flex-direction: column; gap: 28px; }
.p8-work {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	border-radius: var(--p8-radius);
	background: var(--pm-surface);
	box-shadow: var(--p8-shadow);
	overflow: hidden;
}
.p8-work-flip .p8-work-text { order: 2; }
.p8-work-text { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 44px; }
.p8-work-text h3 { font-size: clamp(24px, 2.6vw, 30px); }
.p8-work-text .p8-btn { align-self: flex-start; margin-top: 12px; }
.p8-work-media { position: relative; display: block; min-height: 300px; background: var(--pm-tint); }
.p8-work-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p8-work:hover .p8-work-media img { transform: scale(1.04); }
.p8-letter { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--pm-font-heading); font-size: 64px; color: var(--pm-primary-text); }
.p8-work-count { position: absolute; left: 14px; bottom: 14px; padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--pm-surface) 90%, transparent); color: var(--pm-text); }
.p8-work-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--pm-primary); color: var(--pm-on-primary); }
.p8-work-play .pm-icon { margin-left: 3px; }

/* ---------- Resume and credentials ---------- */

.p8-timeline { display: flex; flex-direction: column; gap: 18px; }
.p8-timeline h4 { font-size: 21px; }
.p8-timeline .p8-prose { margin-top: 10px; }

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

.p8-ref h3 { margin-top: 12px; font-size: 21px; }
.p8-avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--pm-primary); color: var(--pm-on-primary); font-family: var(--pm-font-heading); font-size: 19px; }
.p8-ref-contact { margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--pm-line); display: flex; flex-direction: column; gap: 6px; }
.p8-ref-contact li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.p8-ref-contact .pm-icon { flex: none; color: var(--pm-primary-text); }
.p8-ref-contact a { text-decoration: none; overflow-wrap: anywhere; }
.p8-ref-contact a:hover { color: var(--pm-primary-text); }

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

.p8-contact { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: start; }
.p8-contact-noform { grid-template-columns: 1fr 1fr; }
.p8-contact-info { display: flex; flex-direction: column; gap: 22px; }
.p8-contact-info a, .p8-contact-info span { text-decoration: none; overflow-wrap: anywhere; }
.p8-contact-info a:hover { color: var(--pm-primary-text); }
.p8-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.p8-cta h2, .p8-cta h3 { font-size: 26px; }
.p8-cta .p8-btn { margin-top: 12px; }
.p8-cta-wide { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.p8-cta-wide .p8-btn { margin-top: 0; }

.p8-form .wpcf7-form p { margin: 0 0 18px; }
.p8-form .wpcf7-form label { display: block; font-weight: 700; }
.p8-form .wpcf7-form br { display: none; }
.p8-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.p8-form input[type="text"], .p8-form input[type="email"], .p8-form input[type="tel"], .p8-form input[type="url"],
.p8-form input[type="number"], .p8-form input[type="date"], .p8-form select, .p8-form textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1px solid var(--pm-line-strong);
	border-radius: 12px;
	background: var(--pm-bg);
	color: var(--pm-text);
	font: inherit;
	font-size: 16px;
	transition: border-color .2s, box-shadow .2s;
}
.p8-form textarea { height: 150px; min-height: 110px; resize: vertical; }
.p8-form input:focus, .p8-form select:focus, .p8-form textarea:focus { outline: none; border-color: var(--pm-primary); box-shadow: 0 0 0 3px var(--pm-tint); }
.p8-form .wpcf7-submit { min-height: 50px; padding: 0 28px; border: 0; border-radius: 10px; background: var(--pm-primary); color: var(--pm-on-primary); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform .25s; }
.p8-form .wpcf7-submit:hover { transform: translateY(-2px); }
.p8-form .wpcf7-spinner { vertical-align: middle; margin-left: 12px; }
.p8-form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 16px; font-weight: 600; color: #B42318; }
.p8-form .wpcf7-not-valid { border-color: #D92D20 !important; }
.p8-form .wpcf7-response-output { margin: 18px 0 0 !important; padding: 12px 16px !important; border-radius: 12px; border-width: 1px !important; font-size: 16px; }

/* ---------- Project page ---------- */

.p8-article { padding-top: 40px; }
.p8-crumbs { display: flex; gap: 8px; color: var(--pm-muted); margin-bottom: 18px; }
.p8-crumbs a { color: var(--pm-primary-text); text-decoration: none; }
.p8-crumbs a:hover { text-decoration: underline; }
.p8-article h1 { font-size: clamp(30px, 4vw, 46px); }
.p8-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; margin-top: 36px; }
.p8-article-full { grid-template-columns: minmax(0, 860px); justify-content: center; }
.p8-article-main { display: flex; flex-direction: column; gap: 26px; }
.p8-media { position: relative; border-radius: var(--p8-radius); overflow: hidden; background: var(--pm-surface); box-shadow: var(--p8-shadow); }
.p8-media > img { width: 100%; }
.p8-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; }
.p8-video img { width: 100%; height: 100%; object-fit: cover; }
.p8-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p8-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--pm-primary); color: var(--pm-on-primary); transition: transform .25s; }
.p8-play .pm-icon { margin-left: 4px; }
.p8-video:hover .p8-play { transform: scale(1.07); }
.p8-slides { position: relative; aspect-ratio: 3 / 2; }
.p8-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.p8-slide.is-active { opacity: 1; }
.p8-slide img { width: 100%; height: 100%; object-fit: contain; }
.p8-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--pm-surface) 92%, transparent); color: var(--pm-text); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--p8-shadow); }
.p8-slider-btn:hover { background: var(--pm-primary); color: var(--pm-on-primary); }
.p8-slider-prev { left: 12px; }
.p8-slider-next { right: 12px; }
.p8-slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.p8-slider-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--pm-text) 30%, transparent); cursor: pointer; }
.p8-slider-dot.is-active { background: var(--pm-primary); }
.p8-entry { font-size: 17px; }
.p8-article-info { position: sticky; top: calc(var(--p8-bar-h) + 20px); }
.p8-article-info .p8-details { grid-template-columns: 1fr; margin-top: 16px !important; }
.p8-article-info .p8-btn { margin-top: 20px; }

/* ---------- Wave dividers ---------- */

.p8-band { position: relative; background: color-mix(in srgb, var(--pm-primary) 7%, var(--pm-bg)); }
.p8-wave { position: absolute; left: 0; width: 100%; height: 64px; pointer-events: none; }
.p8-wave path { fill: color-mix(in srgb, var(--pm-primary) 7%, var(--pm-bg)); }
.p8-wave-top { bottom: 100%; margin-bottom: -1px; }
.p8-wave-bottom { top: 100%; margin-top: -1px; transform: scaleY(-1); }
.p8-band + .p8-band .p8-wave-top, .p8-band + .p8-band { z-index: 1; }

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

.p8-footer { position: relative; padding: 44px 0 0; font-size: 15px; color: var(--pm-muted); }
.p8-footer .p8-wave-solid path { fill: var(--pm-bg); }
.p8-footer-wave { height: 150px; margin-top: 34px; background: var(--pm-primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath d='M0 92 C 210 150 380 44 640 74 C 900 104 1150 166 1440 40 V 150 H 0 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath d='M0 92 C 210 150 380 44 640 74 C 900 104 1150 166 1440 40 V 150 H 0 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.p8-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.p8-footer-name { font-family: var(--pm-font-heading); font-size: 20px; color: var(--pm-text); }
.p8-footer .p8-social a { width: 38px; height: 38px; font-size: 15px; }
.p8-footer-end { text-align: right; }
.p8-credit a { color: var(--pm-text); text-decoration: none; }

/* ---------- Fade in ---------- */

.pm-js :is(.p8-head, .p8-hero-text, .p8-hero-photo, .p8-about > *, .p8-cards > *, .p8-work, .p8-columns > *, .p8-contact > *, .p8-article-main > *, .p8-article-info) {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .7s ease, transform .7s ease;
	transition-delay: var(--pm-delay, 0s);
}
.pm-js :is(.p8-head, .p8-hero-text, .p8-hero-photo, .p8-about > *, .p8-cards > *, .p8-work, .p8-columns > *, .p8-contact > *, .p8-article-main > *, .p8-article-info).is-visible { opacity: 1; transform: none; }

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

@media (max-width: 1024px) {
	.p8-hero-grid, .p8-about, .p8-contact, .p8-contact-noform, .p8-article-grid { grid-template-columns: 1fr; }
	.p8-about { gap: 36px; }
	.p8-article-info { position: static; }
	.p8-work-text { padding: 32px; }
}

@media (max-width: 900px) {
	.p8-menu-btn { display: grid; }
	.p8-bar-inner { position: relative; }
	.p8-nav {
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		display: none;
		padding: 12px 16px;
		border-radius: 16px;
		background: var(--pm-surface);
		box-shadow: var(--p8-shadow);
	}
	.p8-nav.is-open { display: block; }
	.p8-nav ul { flex-direction: column; gap: 0; }
	.p8-nav li a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--pm-line); }
	.p8-hero-grid { text-align: center; }
	.p8-hero .p8-actions { justify-content: center; }
	.p8-hero .p8-lead { margin-inline: auto; }
	.p8-hero-photo { order: -1; transform: none; }
	/* On small screens the wave becomes a soft band behind the photo. */
	.p8-hero-shape { top: -70px; right: -12%; width: 128%; height: 400px; }
}

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

@media (max-width: 640px) {
	.p8-wrap { width: min(1400px, 100% - 32px); }
	.p8-section { padding: 56px 0; }
	.p8-head { margin-bottom: 34px; }
	.p8-work { grid-template-columns: 1fr; }
	.p8-work-flip .p8-work-text { order: 0; }
	.p8-work-media { min-height: 220px; }
	.p8-work-text { padding: 26px; }
	.p8-card { padding: 22px; }
	.p8-details { grid-template-columns: 1fr; }
	.p8-blob { width: min(80vw, 340px); }
	.p8-about-photo { width: min(72vw, 300px); }
	.p8-footer-inner { flex-direction: column; text-align: center; }
	.p8-footer-end { text-align: center; }
	.p8-cta-wide { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pm8 *, .pm8 *::before, .pm8 *::after { transition: none !important; animation: none !important; }
	.pm-js :is(.p8-head, .p8-hero-text, .p8-hero-photo, .p8-about > *, .p8-cards > *, .p8-work, .p8-columns > *, .p8-contact > *, .p8-article-main > *, .p8-article-info) { opacity: 1; transform: none; }
}
