/* PortfolioMo – Template 3
   Colors come from the chosen palette (--pm-*). Tinted sections use a light wash of the brand color.
   Text size rule for every template: nothing smaller than 16px, except the footer (15px). */

:root {
	--pm-bg: #F8F6FC;
	--pm-surface: #FFFFFF;
	--pm-text: #241C3A;
	--pm-muted: #625A78;
	--pm-primary: #6D28D9;
	--pm-accent: #C4B5FD;
	--pm-on-primary: #FFFFFF;
	--pm-primary-text: #6D28D9;

	--pm-font-heading: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pm-font-body: "Poppins", 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) 22%, transparent);
	--pm-tint: color-mix(in srgb, var(--pm-primary) 12%, transparent);
	--p3-page: var(--pm-surface);
	--p3-wash: color-mix(in srgb, var(--pm-primary) 6%, var(--pm-bg));
	--p3-radius: 16px;
	--p3-header-h: 84px;
	--p3-shadow: 0 18px 40px -28px color-mix(in srgb, var(--pm-primary) 60%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--p3-header-h) + 12px); -webkit-text-size-adjust: 100%; }
body.pm3 {
	margin: 0;
	background: var(--p3-page);
	color: var(--pm-text);
	font-family: var(--pm-font-body);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
:where(.pm3) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(.pm3) :where(ul, ol) { list-style: none; }
:where(.pm3) img { max-width: 100%; height: auto; display: block; }
:where(.pm3) a { color: inherit; }
:where(.pm3) button { font: inherit; color: inherit; }
.pm3 h1, .pm3 h2, .pm3 h3, .pm3 h4 { font-family: var(--pm-font-heading); color: var(--pm-text); line-height: 1.25; font-weight: 500; }
.pm3 :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; }
.p3-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; }
.p3-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; }

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

/* ---------- Buttons and links ---------- */

.p3-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.p3-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 28px;
	border-radius: 50px;
	border: 2px solid transparent;
	font-family: var(--pm-font-heading);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.p3-btn-primary { background: var(--pm-primary); color: var(--pm-on-primary); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--pm-primary) 80%, transparent); }
.p3-btn-primary:hover { background: var(--pm-text); color: var(--p3-page); transform: translateY(-2px); }
.p3-btn-ghost { border-color: var(--pm-primary); color: var(--pm-text); background: transparent; }
.p3-btn-ghost:hover { background: var(--pm-primary); color: var(--pm-on-primary); transform: translateY(-2px); }
.p3-btn-block { width: 100%; }
.p3-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--pm-primary-text); text-decoration: none; border-radius: 4px; transition: background-color .25s; }
.p3-link:hover { background: var(--pm-tint); }

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

.p3-header { position: sticky; top: 0; z-index: 50; background: var(--p3-wash); transition: background-color .3s, box-shadow .3s; }
.p3-header.is-scrolled { background: var(--p3-page); box-shadow: 0 8px 30px -20px color-mix(in srgb, var(--pm-text) 60%, transparent); }
.admin-bar .p3-header { top: 32px; }
.p3-header-inner { height: var(--p3-header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.p3-logo { font-family: var(--pm-font-heading); font-size: 26px; font-weight: 600; color: var(--pm-text); text-decoration: none; white-space: nowrap; }
.p3-logo span { color: var(--pm-primary-text); }
.p3-logo-img { display: inline-flex; align-items: center; }
.p3-logo-img img { max-height: 48px; width: auto; }
.p3-footer .p3-logo-img img { max-height: 44px; }
.p3-nav ul { display: flex; gap: 32px; }
.p3-nav a { position: relative; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--pm-text); transition: color .2s; }
.p3-nav a:hover, .p3-nav a.is-active { color: var(--pm-primary-text); }
.p3-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--pm-primary); }
.p3-nav-cta { display: none !important; }
.p3-header-actions { display: flex; align-items: center; gap: 10px; }
.p3-header-cta { min-height: 44px; padding: 0 24px; }
.p3-menu-btn { display: none; place-items: center; width: 46px; height: 46px; border: 1px solid var(--pm-line-strong); border-radius: 12px; background: var(--p3-page); cursor: pointer; }
.p3-menu-btn span { line-height: 0; }
.p3-menu-close { display: none; }
.p3-menu-btn[aria-expanded="true"] .p3-menu-open { display: none; }
.p3-menu-btn[aria-expanded="true"] .p3-menu-close { display: inline; }

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

.p3-hero { position: relative; overflow: hidden; background: var(--p3-wash); padding: 56px 0 170px; }
.p3-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.p3-hello { font-family: var(--pm-font-heading); font-size: 18px; font-weight: 500; color: var(--pm-primary-text); margin-bottom: 6px !important; }
.p3-hero h1 { font-size: clamp(42px, 5.6vw, 72px); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
.p3-hero-role { margin-top: 16px !important; font-family: var(--pm-font-heading); font-size: 20px; font-weight: 500; }
.p3-hero-lead { margin-top: 16px !important; max-width: 50ch; color: var(--pm-muted); }
.p3-hero-photo { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 1 / 1; }
.p3-hero-circle { position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--pm-primary) 16%, var(--p3-page)); }
.p3-hero-circle::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--pm-primary) 45%, transparent); animation: p3-spin 40s linear infinite; }
.p3-hero-photo img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: cover; object-position: center top; border-radius: 50%; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--pm-primary) 70%, transparent); }
.p3-hero-nophoto .p3-hero-grid { grid-template-columns: 1fr; text-align: center; }
.p3-hero-nophoto .p3-hero-lead { margin-inline: auto; }
.p3-hero-nophoto .p3-actions { justify-content: center; }
.p3-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 150px; }
.p3-hero-wave-fill { fill: var(--p3-page); }
.p3-hero-wave-line { fill: none; stroke: var(--pm-primary); stroke-opacity: .45; stroke-width: 2; vector-effect: non-scaling-stroke; }

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

.p3-section { position: relative; z-index: 0; padding: 96px 0; background: var(--p3-page); }
.p3-section-flush { padding-top: 24px; }
.p3-tint { z-index: 1; background: var(--p3-wash); }
.p3-wave { position: absolute; left: 0; width: 100%; height: 70px; pointer-events: none; }
.p3-wave path { fill: var(--p3-wash); }
.p3-wave-top { bottom: 100%; margin-bottom: -1px; }
.p3-wave-bottom { top: 100%; margin-top: -1px; transform: scaleY(-1); }
.p3-title { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.p3-kicker { font-size: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--pm-muted); margin-bottom: 8px !important; }
.p3-title h2, .p3-about-text h2 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; }
.p3-title h2 span, .p3-about-text h2 span { color: var(--pm-primary-text); }
.p3-intro { margin-top: 12px !important; color: var(--pm-muted); }

.p3-card { background: var(--p3-page); border: 1px solid var(--pm-line); border-radius: var(--p3-radius); box-shadow: var(--p3-shadow); }
.p3-tint .p3-card { border-color: transparent; }
.p3-cards { --gap: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.p3-cards > * { flex: 0 1 calc((100% - 2 * var(--gap)) / 3); min-width: 0; }

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

.p3-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p3-chips li { padding: 6px 16px; border-radius: 999px; background: var(--pm-tint); color: var(--pm-text); font-size: 16px; line-height: 1.4; }

/* About */
.p3-about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.p3-about-nophoto { grid-template-columns: 1fr; max-width: 820px; }
/* Same circle frame as the hero photo. */
.p3-about-photo { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1 / 1; margin-inline: auto; padding: 22px; }
.p3-about-photo .p3-hero-circle { inset: 22px; }
.p3-about-photo img { position: absolute; inset: 44px; width: calc(100% - 88px); height: calc(100% - 88px); object-fit: cover; object-position: center top; border-radius: 50%; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--pm-primary) 70%, transparent); }
.p3-about-text h2 { margin-bottom: 18px !important; }
.p3-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 28px !important; padding: 28px; border: 1px solid var(--pm-line-strong); border-radius: var(--p3-radius); }
.p3-info > div { min-width: 0; }
.p3-info .p3-info-location, .p3-info .p3-info-email { grid-column: 1 / -1; }
.p3-info dt { font-family: var(--pm-font-heading); font-weight: 600; color: var(--pm-text); }
.p3-info dd { color: var(--pm-muted); overflow-wrap: anywhere; }
.p3-info a { text-decoration: none; }
.p3-info a:hover { color: var(--pm-primary-text); }

/* Services */
.p3-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 32px; }
.p3-service { flex: 0 1 calc((100% - 64px) / 3); display: flex; gap: 20px; min-width: 0; }
.p3-service-num { flex: none; font-family: var(--pm-font-heading); font-size: 44px; font-weight: 300; line-height: 1; color: var(--pm-primary-text); }
.p3-service-body { flex: 1; padding-left: 22px; border-left: 1px solid color-mix(in srgb, var(--pm-primary) 40%, transparent); }
.p3-service-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 16px; background: var(--pm-tint); color: var(--pm-primary-text); transition: transform .3s; }
.p3-service:hover .p3-service-icon { transform: translateY(-4px) rotate(-6deg); }
.p3-service-icon .pm-fa { font-size: 28px; line-height: 1; }
.p3-service h3 { font-size: 20px; margin-bottom: 8px; }
.p3-price { margin-top: 12px !important; font-weight: 600; color: var(--pm-primary-text); }

/* Timelines (resume, trainings) */
.p3-timelines { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.p3-timeline-col:only-child { grid-column: 1 / -1; max-width: 820px; margin-inline: auto; width: 100%; }
.p3-col-title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 20px !important; }
.p3-col-title .pm-icon { color: var(--pm-primary-text); }
.p3-timeline { position: relative; display: flex; flex-direction: column; gap: 20px; padding-left: 28px; }
.p3-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: color-mix(in srgb, var(--pm-primary) 40%, transparent); }
.p3-tl-card { position: relative; padding: 24px 26px; background: var(--p3-page); border-radius: var(--p3-radius); box-shadow: var(--p3-shadow); border: 1px solid var(--pm-line); }
.p3-tint .p3-tl-card { border-color: transparent; }
.p3-tl-card::before { content: ""; position: absolute; left: -28px; top: 36px; width: 16px; height: 16px; border-radius: 50%; background: var(--p3-page); border: 2px solid var(--pm-primary); }
.p3-tl-card::after { content: ""; position: absolute; left: -12px; top: 43px; width: 12px; height: 2px; background: var(--pm-primary); }
.p3-tl-date { color: var(--pm-muted); margin-bottom: 4px !important; }
.p3-tl-card h4 { font-size: 18px; font-weight: 500; }
.p3-tl-card h4 span { color: var(--pm-primary-text); }
.p3-tl-card h4 small { font-family: var(--pm-font-body); font-size: 16px; font-weight: 400; color: var(--pm-muted); }
.p3-tl-where { color: var(--pm-muted); font-style: italic; }
.p3-tl-card .p3-prose { margin-top: 10px; }
.p3-timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; padding-left: 0; }
.p3-timeline-grid::before { display: none; }
.p3-timeline-grid .p3-tl-card::before, .p3-timeline-grid .p3-tl-card::after { display: none; }
.p3-timeline-grid .p3-tl-card { border-left: 4px solid var(--pm-primary); }
.p3-timeline-grid:has(> li:only-child) { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }

/* Skills */
.p3-skill-group { padding: 28px; }
.p3-skills > * { flex-grow: 1; max-width: 580px; }
.p3-skill-group h3 { font-size: 20px; margin-bottom: 16px; }

/* Certifications */
.p3-cert { padding: 28px; text-align: center; }
.p3-cert-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 50%; background: var(--pm-tint); color: var(--pm-primary-text); }
.p3-cert h3 { font-size: 18px; }
.p3-cert p { margin-top: 4px !important; color: var(--pm-muted); }
.p3-cert .p3-link { margin-top: 10px; }

/* Projects */
.p3-work-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; transition: transform .3s, box-shadow .3s; }
.p3-work-link:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px color-mix(in srgb, var(--pm-primary) 70%, transparent); }
.p3-work-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--pm-tint); }
.p3-work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p3-work-link:hover .p3-work-media img { transform: scale(1.06); }
.p3-work-letter { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--pm-font-heading); font-size: 64px; font-weight: 600; color: var(--pm-primary-text); }
.p3-work-count { position: absolute; left: 12px; bottom: 12px; padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--p3-page) 88%, transparent); font-size: 16px; font-weight: 500; color: var(--pm-text); }
.p3-work-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--pm-primary); color: var(--pm-on-primary); box-shadow: 0 0 0 8px color-mix(in srgb, var(--pm-primary) 25%, transparent); }
.p3-work-play .pm-icon { margin-left: 3px; }
.p3-work-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 22px 24px 24px; }
.p3-work-role { color: var(--pm-primary-text); font-weight: 500; }
.p3-work-title { font-family: var(--pm-font-heading); font-size: 20px; font-weight: 500; line-height: 1.35; color: var(--pm-text); }
.p3-work-summary { color: var(--pm-muted); }
.p3-work-body .p3-link { margin-top: auto; padding-top: 12px; align-self: flex-start; }

/* References */
.p3-ref { padding: 28px; }
.p3-ref-head { display: flex; gap: 14px; align-items: center; }
.p3-ref-avatar { flex: none; 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-weight: 600; font-size: 18px; }
.p3-ref h3 { font-size: 18px; }
.p3-ref-head p { color: var(--pm-muted); line-height: 1.5; }
.p3-ref-rel { display: inline-block; margin-top: 14px !important; padding: 2px 14px; border-radius: 999px; background: var(--pm-tint); font-weight: 500; }
.p3-ref-contact { margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--pm-line); display: flex; flex-direction: column; gap: 6px; }
.p3-ref-contact li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.p3-ref-contact .pm-icon { flex: none; color: var(--pm-primary-text); }
.p3-ref-contact a { text-decoration: none; overflow-wrap: anywhere; }
.p3-ref-contact a:hover { color: var(--pm-primary-text); }
.p3-ref-upon { margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--pm-line); color: var(--pm-muted); }

/* Contact */
.p3-contact { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: start; }
.p3-contact-noform { grid-template-columns: 1fr 1fr; align-items: stretch; }
.p3-contact-info { display: flex; flex-direction: column; gap: 16px; }
.p3-contact-info li { display: flex; align-items: center; gap: 16px; padding: 20px 22px; min-width: 0; }
.p3-contact-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--pm-primary); color: var(--pm-on-primary); }
.p3-contact-info li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.p3-contact-info strong { font-family: var(--pm-font-heading); font-weight: 500; font-size: 18px; }
.p3-contact-info a, .p3-contact-info li > span:last-child > span { color: var(--pm-muted); text-decoration: none; overflow-wrap: anywhere; }
.p3-contact-info a:hover { color: var(--pm-primary-text); }
.p3-cta { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.p3-cta h3 { font-size: 24px; }
.p3-cta p { color: var(--pm-muted); margin-bottom: 8px !important; }
.p3-cta-wide { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.p3-cta-wide p { margin-bottom: 0 !important; }

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

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

.p3-page-head { position: relative; overflow: hidden; padding: 48px 0 170px; background: var(--p3-wash); }
.p3-page-head .p3-wrap { position: relative; z-index: 1; }
.p3-crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--pm-muted); margin-bottom: 18px; }
.p3-crumbs a { color: var(--pm-primary-text); text-decoration: none; }
.p3-crumbs a:hover { text-decoration: underline; }
.p3-page-head h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; max-width: 22ch; }
.p3-page-lead { margin-top: 12px !important; max-width: 60ch; font-size: 18px; color: var(--pm-muted); }
.p3-project { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.p3-project-full { grid-template-columns: minmax(0, 860px); justify-content: center; }
.p3-media-box { position: relative; margin-bottom: 32px; border-radius: var(--p3-radius); overflow: hidden; background: var(--p3-wash); box-shadow: var(--p3-shadow); }
.p3-media-box > img { width: 100%; }
.p3-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; }
.p3-video img { width: 100%; height: 100%; object-fit: cover; }
.p3-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p3-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--pm-primary); color: var(--pm-on-primary); box-shadow: 0 0 0 10px color-mix(in srgb, var(--pm-primary) 30%, transparent); transition: transform .25s; }
.p3-play .pm-icon { margin-left: 4px; }
.p3-video:hover .p3-play { transform: scale(1.08); }
.p3-slides { position: relative; aspect-ratio: 3 / 2; }
.p3-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.p3-slide.is-active { opacity: 1; }
.p3-slide img { width: 100%; height: 100%; object-fit: contain; }
.p3-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(--p3-page) 88%, transparent); color: var(--pm-text); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: background-color .2s, color .2s; }
.p3-slider-btn:hover { background: var(--pm-primary); color: var(--pm-on-primary); }
.p3-slider-prev { left: 12px; }
.p3-slider-next { right: 12px; }
.p3-slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.p3-slider-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--pm-text) 35%, transparent); cursor: pointer; transition: background-color .2s, transform .2s; }
.p3-slider-dot.is-active { background: var(--pm-primary); transform: scale(1.25); }
.p3-entry { font-size: 17px; }
.p3-project-info { padding: 28px; position: sticky; top: calc(var(--p3-header-h) + 20px); }
.p3-project-info h2 { font-size: 20px; padding-bottom: 14px; margin-bottom: 16px !important; border-bottom: 1px solid var(--pm-line); }
.p3-project-info dl { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px !important; }
.p3-project-info dt { font-weight: 600; }
.p3-project-info dd { color: var(--pm-muted); }
.p3-project-info .p3-chips { margin-top: 6px; }

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

.p3-footer { padding: 56px 0 40px; background: var(--p3-page); border-top: 1px solid var(--pm-line); font-size: 15px; color: var(--pm-muted); }
.p3-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.p3-footer .p3-logo { font-size: 24px; }
.p3-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.p3-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--pm-tint); color: var(--pm-text); text-decoration: none; font-size: 17px; font-weight: 600; transition: background-color .25s, color .25s, transform .25s; }
.p3-social a:hover { background: var(--pm-primary); color: var(--pm-on-primary); transform: translateY(-3px); }
.p3-social .pm-icon { width: 20px; height: 20px; }
.p3-credit a { color: var(--pm-text); text-decoration: none; }
.p3-credit a:hover { color: var(--pm-primary-text); }

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

.p3-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.p3-shape { position: absolute; display: block; animation: p3-float 9s ease-in-out infinite; }
.p3-shape:nth-child(2n) { animation-duration: 11s; animation-direction: reverse; }
.p3-plane { width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 30px solid #F5A74B; transform: rotate(-28deg); opacity: .9; }
.p3-dot { width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, #F5B78E 80%, transparent); }
.p3-dot-sm { width: 14px; height: 14px; border-radius: 50%; background: var(--pm-accent); }
.p3-ring { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #2EC4B6; }
.p3-cube { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--pm-accent), color-mix(in srgb, var(--pm-primary) 60%, #F9A8D4)); transform: rotate(18deg); opacity: .85; }
.p3-swirl { fill: none; stroke: var(--pm-primary); stroke-opacity: .45; stroke-width: 2; stroke-linecap: round; }
.p3-shapes .p3-swirl { width: 56px; height: 34px; }
.s1 { top: 10%; left: 20%; }
.s2 { top: 62%; right: 4%; }
.s3 { top: 44%; left: 1%; }
.s4 { top: 14%; right: 8%; }
.s5 { bottom: 26%; left: 20%; }
.s6 { top: 30%; left: 46%; }
.s7 { top: 12%; left: 6%; }
.s8 { top: 14%; right: 7%; }
.s9 { bottom: 12%; right: 10%; }
.s10 { top: 10%; right: 10%; }
.s11 { bottom: 16%; left: 4%; }
.s12 { top: 40%; left: 2%; }
.p3-section > .p3-wrap, .p3-hero > .p3-wrap { position: relative; z-index: 1; }
@keyframes p3-float {
	0%, 100% { translate: 0 0; }
	50% { translate: 12px -18px; }
}
@keyframes p3-spin { to { transform: rotate(360deg); } }

/* ---------- Fade in on scroll ---------- */

.pm-js :is(.p3-title, .p3-about-photo, .p3-about-text, .p3-service, .p3-timeline-col, .p3-timeline-grid > li, .p3-cards > *, .p3-contact > *, .p3-project-main, .p3-project-info) {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease, transform .7s ease;
	transition-delay: var(--pm-delay, 0s);
}
.pm-js :is(.p3-title, .p3-about-photo, .p3-about-text, .p3-service, .p3-timeline-col, .p3-timeline-grid > li, .p3-cards > *, .p3-contact > *, .p3-project-main, .p3-project-info).is-visible { opacity: 1; transform: none; }
.pm-js .p3-hero-text > * { animation: p3-rise .8s ease both; }
.pm-js .p3-hero-text > *:nth-child(2) { animation-delay: .1s; }
.pm-js .p3-hero-text > *:nth-child(3) { animation-delay: .2s; }
.pm-js .p3-hero-text > *:nth-child(4) { animation-delay: .3s; }
.pm-js .p3-hero-text > *:nth-child(5) { animation-delay: .4s; }
.pm-js .p3-hero-photo { animation: p3-rise 1s .2s ease both; }
@keyframes p3-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

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

@media (max-width: 1100px) {
	.p3-nav ul { gap: 22px; }
	.p3-cards > * { flex-basis: calc((100% - var(--gap)) / 2); }
	.p3-service { flex-basis: calc((100% - 32px) / 2); }
	.p3-project { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 960px) {
	:root { --p3-header-h: 72px; }
	.p3-menu-btn { display: grid; }
	.p3-header-cta { display: none !important; }
	.p3-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 12px 24px 24px;
		background: var(--p3-page);
		box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--pm-text) 60%, transparent);
	}
	.p3-nav.is-open { display: block; }
	.p3-nav ul { flex-direction: column; gap: 0; }
	.p3-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--pm-line); }
	.p3-nav a.is-active::after { display: none; }
	.p3-nav-cta { display: inline-flex !important; width: 100%; margin-top: 18px; }
	.p3-hero { padding: 40px 0 140px; }
	.p3-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
	.p3-hero-lead { margin-inline: auto; }
	.p3-actions { justify-content: center; }
	.p3-hero-photo { width: min(80vw, 380px); }
	.p3-about, .p3-timelines, .p3-timeline-grid, .p3-contact, .p3-contact-noform, .p3-project { grid-template-columns: 1fr; }
	.p3-project-info { position: static; }
}
@media (max-width: 782px) {
	.admin-bar .p3-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .p3-header { top: 0; }
}

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

@media (max-width: 640px) {
	.p3-wrap { width: min(1400px, 100% - 36px); }
	.p3-section { padding: 72px 0; }
	.p3-title { margin-bottom: 40px; }
	.p3-cards > *, .p3-service { flex-basis: 100%; }
	.p3-info { grid-template-columns: 1fr; padding: 22px; }
	.p3-skill-group, .p3-cert, .p3-ref, .p3-form-card, .p3-cta { padding: 22px; }
	.p3-tl-card { padding: 20px; }
	.p3-form-card .wpcf7-submit { width: 100%; }
	.p3-wave { height: 44px; }
	.p3-shape.s1, .p3-shape.s4, .p3-shape.s6 { display: none; }
	.p3-hero, .p3-page-head { padding-bottom: 100px; }
	.p3-hero-wave { height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pm3 *, .pm3 *::before, .pm3 *::after { transition: none !important; animation: none !important; }
	.pm-js :is(.p3-title, .p3-about-photo, .p3-about-text, .p3-service, .p3-timeline-col, .p3-timeline-grid > li, .p3-cards > *, .p3-contact > *, .p3-project-main, .p3-project-info) { opacity: 1; transform: none; }
}

.p3-intro-left { text-align: left; margin-top: 6px !important; margin-bottom: 12px; }
