/* PortfolioMo – Template 12
   Colors come from the chosen palette (--pm-*). Warm layout: a headline with a
   highlighted word, a circle photo with a colored circle behind it, and a resume
   block with pill tabs.
   Text size rule for every template: nothing smaller than 16px, except the footer (15px). */

:root {
	--pm-bg: #FFFFFF;
	--pm-surface: #FFFFFF;
	--pm-text: #22201D;
	--pm-muted: #6B6660;
	--pm-primary: #D9A066;
	--pm-accent: #F4DFC6;
	--pm-on-primary: #2A1D0E;
	--pm-primary-text: #8A5A20;

	--pm-font-heading: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pm-font-body: "Mulish", 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) 22%, transparent);
	--p12-band: color-mix(in srgb, var(--pm-text) 4%, var(--pm-bg));
	--p12-radius: 16px;
	--p12-shadow: 0 18px 40px -32px color-mix(in srgb, var(--pm-text) 75%, transparent);
	--p12-bar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--pm-bg); }
body.pm12 {
	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.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
:where(.pm12) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(.pm12) :where(ul, ol) { list-style: none; }
:where(.pm12) img { max-width: 100%; height: auto; display: block; }
:where(.pm12) a { color: inherit; }
:where(.pm12) button { font: inherit; color: inherit; }
.pm12 h1, .pm12 h2, .pm12 h3, .pm12 h4 { font-family: var(--pm-font-heading); font-weight: 800; color: var(--pm-text); line-height: 1.25; letter-spacing: -0.01em; }
.pm12 :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; }
.p12-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; }
.p12-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; }

.p12-wrap { width: min(1400px, 100% - 40px); margin-inline: auto; }
.p12-muted { color: var(--pm-muted); }
.p12-label { font-size: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pm-muted); }

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

.p12-bar { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--pm-bg) 88%, transparent); backdrop-filter: blur(12px); transition: box-shadow .3s; }
.admin-bar .p12-bar { top: 32px; }
.p12-bar.is-stuck { box-shadow: 0 10px 30px -26px color-mix(in srgb, var(--pm-text) 80%, transparent); }
.p12-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--p12-bar-h); }
.p12-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--pm-font-heading); font-weight: 800; font-size: 20px; text-decoration: none; white-space: nowrap; }
.p12-logo img { max-height: 36px; width: auto; }
.p12-logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--pm-primary); color: var(--pm-on-primary); font-size: 17px; }
.p12-nav ul { display: flex; flex-wrap: nowrap; gap: 22px; }
.p12-nav li { white-space: nowrap; }
.p12-nav a { font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--pm-muted); transition: color .2s; }
.p12-nav a:hover, .p12-nav a.is-active { color: var(--pm-primary-text); }
.p12-bar-actions { display: flex; align-items: center; gap: 10px; }
.p12-bar-cta { min-height: 44px; padding: 0 22px; }
.p12-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; }
.p12-menu-btn span { line-height: 0; }
.p12-menu-close { display: none; }
.p12-menu-btn[aria-expanded="true"] .p12-menu-open { display: none; }
.p12-menu-btn[aria-expanded="true"] .p12-menu-close { display: inline; }

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

.p12-section { position: relative; padding: 72px 0; }
.p12-band { background: color-mix(in srgb, var(--pm-primary) 5%, var(--pm-bg)); }
.p12-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.p12-head h1, .p12-head h2 { margin-top: 6px; font-size: clamp(28px, 3.4vw, 40px); }
.p12-intro { margin-top: 12px !important; color: var(--pm-muted); }
.p12-card { padding: 26px; border-radius: var(--p12-radius); background: var(--pm-surface); box-shadow: var(--p12-shadow); }
.p12-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

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

.p12-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 26px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--pm-font-heading);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform .25s, background-color .25s, color .25s, border-color .25s;
}
.p12-btn:hover { transform: translateY(-2px); }
.p12-btn-primary { background: var(--pm-primary); color: var(--pm-on-primary); }
.p12-btn-dark { background: var(--pm-text); color: var(--pm-bg); }
.p12-btn-ghost { border-color: var(--pm-line-strong); background: var(--pm-surface); }
.p12-btn-ghost:hover { border-color: var(--pm-primary); }
.p12-btn-block { width: 100%; }
.p12-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--pm-primary-text); text-decoration: none; }
.p12-link:hover { text-decoration: underline; }
.p12-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p12-chips li, .p12-chip { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--pm-tint); color: var(--pm-text); }
.p12-chiprow { margin-top: 12px !important; }
.p12-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--pm-tint); color: var(--pm-primary-text); }
.p12-icon .pm-fa { font-size: 22px; line-height: 1; }
.p12-social { display: flex; flex-wrap: wrap; gap: 10px; }
.p12-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: 16px; transition: background-color .25s, color .25s, transform .25s; }
.p12-social a:hover { background: var(--pm-primary); color: var(--pm-on-primary); transform: translateY(-3px); }
.p12-social .pm-icon { width: 18px; height: 18px; }

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

.p12-hero { padding: 54px 0 64px; }
.p12-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; }
.p12-hero-nophoto { grid-template-columns: 1fr; text-align: center; }
.p12-hero-nophoto .p12-actions { justify-content: center; }
.p12-hero-text { position: relative; }
.p12-hero h1 { font-size: clamp(28px, 4.6vw, 56px); font-weight: 600; line-height: 1.35; overflow-wrap: break-word; hyphens: auto; }
/* The highlighted word, like a marker pen stroke. */
/* The highlight follows the text across lines instead of staying one block. */
.p12-mark {
	display: inline;
	padding: 2px 10px;
	border-radius: 10px;
	background: var(--pm-tint);
	color: var(--pm-text);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.p12-lead { margin-top: 20px !important; max-width: 46ch; color: var(--pm-muted); }
.p12-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.p12-squiggle { position: absolute; width: 96px; height: 56px; fill: none; stroke: var(--pm-primary); stroke-width: 3; stroke-linecap: round; pointer-events: none; }
.p12-squiggle-title { top: -34px; right: 6%; }
.p12-squiggle-photo { top: -10px; right: -6px; width: 110px; }
.p12-hero-photo { position: relative; width: min(100%, 400px); margin-inline: auto; aspect-ratio: 1 / 1; }
.p12-circle { position: absolute; right: -6%; top: 6%; width: 86%; height: 86%; border-radius: 50%; background: var(--pm-primary); }
.p12-photo-ring { position: absolute; inset: 0 12% 0 0; border-radius: 50%; overflow: hidden; background: var(--p12-band); }
.p12-photo-ring img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ---------- Resume block with pill tabs ---------- */

.p12-tabs { margin-top: 8px; }
.p12-tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px; margin: 0 auto 34px; border-radius: 999px; background: var(--pm-tint); width: fit-content; max-width: 100%; }
.p12-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 0; border-radius: 999px; background: none; font-family: var(--pm-font-heading); font-size: 16px; font-weight: 500; color: var(--pm-text); cursor: pointer; transition: background-color .25s, color .25s; }
.p12-tab .pm-icon { width: 18px; height: 18px; }
.p12-tab:hover { background: color-mix(in srgb, var(--pm-surface) 60%, transparent); }
.p12-tab.is-active { background: var(--pm-primary); color: var(--pm-on-primary); }
.p12-panel[hidden] { display: none; }
.p12-about { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: center; }
.p12-about-nophoto { grid-template-columns: 1fr; }
.p12-about-text h3 { font-size: 24px; margin-bottom: 12px; }
.p12-about-photo img { width: 100%; border-radius: var(--p12-radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.p12-facts { display: grid; gap: 8px; margin-top: 24px !important; }
.p12-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
.p12-facts dt { font-weight: 600; }
.p12-facts dd { display: flex; gap: 10px; color: var(--pm-muted); overflow-wrap: anywhere; }
.p12-colon { color: var(--pm-line-strong); }
.p12-facts a { text-decoration: none; }
.p12-facts a:hover { color: var(--pm-primary-text); }
.p12-timeline { display: flex; flex-direction: column; gap: 22px; max-width: 860px; margin-inline: auto; }
.p12-timeline > li { padding-left: 20px; border-left: 3px solid var(--pm-tint); }
.p12-timeline h3 { font-size: 21px; margin-top: 2px; }
.p12-timeline .p12-prose { margin-top: 8px; }
.p12-when { font-weight: 600; color: var(--pm-primary-text); }
.p12-skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.p12-skills h3 { font-size: 20px; margin-bottom: 12px; }


/* ---------- Services, credentials, counter ---------- */

.p12-service, .p12-credential { display: flex; flex-direction: column; transition: transform .3s; }
.p12-service:hover, .p12-credential:hover { transform: translateY(-4px); }
.p12-service h3, .p12-credential h3 { margin: 16px 0 8px; font-size: 20px; }
.p12-price { margin-top: auto !important; padding-top: 14px; font-weight: 700; color: var(--pm-primary-text); }
.p12-credential .p12-link { margin-top: 10px; align-self: flex-start; }

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

.p12-card.p12-work { padding: 14px; }
.p12-work { display: flex; flex-direction: column; height: 100%; padding: 14px; text-decoration: none; color: inherit; transition: transform .3s, box-shadow .3s; }
.p12-work:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--pm-text) 80%, transparent); }
.p12-work-media { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--pm-tint); }
.p12-work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p12-work:hover .p12-work-media img { transform: scale(1.05); }
.p12-letter { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--pm-font-heading); font-size: 52px; color: var(--pm-primary-text); }
.p12-work-count { position: absolute; left: 12px; bottom: 12px; padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--pm-surface) 90%, transparent); color: var(--pm-text); }
.p12-work-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: var(--pm-primary); color: var(--pm-on-primary); }
.p12-work-play .pm-icon { margin-left: 3px; }
.p12-work-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 12px 10px; }
.p12-work-title { font-family: var(--pm-font-heading); font-size: 19px; font-weight: 800; }
.p12-work-body .p12-link { margin-top: auto; padding-top: 12px; align-self: flex-start; }

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

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

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

.p12-contact { display: grid; grid-template-columns: 5fr 7fr; gap: 22px; align-items: start; position: relative; z-index: 1; }
.p12-contact-noform { grid-template-columns: 1fr 1fr; }
.p12-contact-info { display: flex; flex-direction: column; gap: 16px; }
.p12-contact-info li { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.p12-contact-info li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.p12-contact-info strong { font-family: var(--pm-font-heading); }
.p12-contact-info a, .p12-contact-info li span span { color: var(--pm-muted); text-decoration: none; overflow-wrap: anywhere; }
.p12-contact-info a:hover { color: var(--pm-primary-text); }
.p12-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.p12-cta h2, .p12-cta h3 { font-size: 24px; }
.p12-cta .p12-btn { margin-top: 12px; }
.p12-cta-wide { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.p12-cta-wide .p12-btn { margin-top: 0; }

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

.p12-article { padding-top: 40px; overflow: clip; }
.p12-article .p12-head { text-align: left; margin-inline: 0; }
.p12-crumbs { position: relative; z-index: 1; display: flex; gap: 8px; color: var(--pm-muted); margin-bottom: 16px; }
.p12-crumbs a { color: var(--pm-primary-text); text-decoration: none; }
.p12-crumbs a:hover { text-decoration: underline; }
.p12-article-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.p12-article-full { grid-template-columns: minmax(0, 860px); justify-content: center; }
.p12-article-main { display: flex; flex-direction: column; gap: 22px; }
.p12-media { position: relative; padding: 12px; overflow: hidden; }
.p12-media > img { width: 100%; border-radius: 12px; }
.p12-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.p12-video img { width: 100%; height: 100%; object-fit: cover; }
.p12-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p12-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: var(--pm-primary); color: var(--pm-on-primary); transition: transform .25s; }
.p12-play .pm-icon { margin-left: 4px; }
.p12-video:hover .p12-play { transform: scale(1.07); }
.p12-slides { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.p12-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.p12-slide.is-active { opacity: 1; }
.p12-slide img { width: 100%; height: 100%; object-fit: contain; }
.p12-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(--p12-shadow); }
.p12-slider-btn:hover { background: var(--pm-primary); color: var(--pm-on-primary); }
.p12-slider-prev { left: 22px; }
.p12-slider-next { right: 22px; }
.p12-slider-dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 8px; }
.p12-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; }
.p12-slider-dot.is-active { background: var(--pm-primary); }
.p12-entry { font-size: 17px; }
.p12-article-info { position: sticky; top: calc(var(--p12-bar-h) + 16px); }
.p12-article-info h2 { font-size: 20px; padding-bottom: 12px; margin-bottom: 16px !important; border-bottom: 1px solid var(--pm-line); }
.p12-article-info dl { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px !important; }
.p12-article-info dt { font-weight: 700; }
.p12-article-info dd { color: var(--pm-muted); }

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

.p12-footer { padding: 32px 0 38px; border-top: 1px solid var(--pm-line); font-size: 15px; color: var(--pm-muted); }
.p12-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.p12-footer-name { font-family: var(--pm-font-heading); font-size: 17px; font-weight: 800; color: var(--pm-text); }
.p12-footer .p12-social a { width: 38px; height: 38px; font-size: 15px; }
.p12-footer-end { text-align: right; }
.p12-credit a { color: var(--pm-text); text-decoration: none; }

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

	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s ease, transform .7s ease;
	transition-delay: var(--pm-delay, 0s);
}

/* Between tablet and desktop the menu needs the whole bar. */
@media (max-width: 1200px) {
	.p12-nav ul { gap: 16px; }
	.p12-bar-cta { display: none; }
}

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

@media (max-width: 1024px) {
	.p12-about { grid-template-columns: 1fr; padding: 26px; }
	.p12-about-photo { max-width: 420px; margin-inline: auto; }
	.p12-contact, .p12-contact-noform, .p12-article-grid { grid-template-columns: 1fr; }
	.p12-article-info { position: static; }
}

@media (max-width: 900px) {
	.p12-menu-btn { display: grid; }
	.p12-bar-cta { display: none; }
	.p12-bar-inner { position: relative; }
	.p12-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(--p12-shadow);
	}
	.p12-nav.is-open { display: block; }
	.p12-nav ul { flex-direction: column; gap: 0; }
	.p12-nav li a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--pm-line); }
}

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

@media (max-width: 640px) {
	.p12-wrap { width: min(1400px, 100% - 30px); }
	.p12-section { padding: 52px 0; }
	.p12-head { margin-bottom: 32px; }
	.p12-card { padding: 22px; }
	.p12-hero-photo { width: min(88vw, 360px); }
	.p12-tablist { gap: 14px; }
	.p12-slider-prev { left: 16px; }
	.p12-slider-next { right: 16px; }
	.p12-footer-inner { flex-direction: column; text-align: center; }
	.p12-footer-end { text-align: center; }
	.p12-cta-wide { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pm12 *, .pm12 *::before, .pm12 *::after { transition: none !important; animation: none !important; }
}



/* ---------- Extra pieces for this template ---------- */

.p12-band { background: var(--p12-band); }
.p12-pill { display: inline-block; padding: 4px 20px; border-radius: 999px; border: 1px solid var(--pm-primary); color: var(--pm-primary-text); font-size: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.p12-head h1, .p12-head h2 { margin-top: 12px; }
.p12-quote { position: absolute; right: 20px; top: 18px; color: var(--pm-tint); }
.p12-ref { position: relative; }
.p12-chiprow { margin-top: 12px !important; }
.p12-price { margin-top: auto !important; padding-top: 14px; font-weight: 700; color: var(--pm-primary-text); }

@media (max-width: 1024px) {
	.p12-hero-grid, .p12-about { grid-template-columns: 1fr; }
	.p12-hero-photo { order: -1; }
	.p12-about-photo { max-width: 420px; margin-inline: auto; }
	.p12-squiggle-title { display: none; }
}

@media (max-width: 640px) {
	.p12-hero { padding: 32px 0 44px; }
	.p12-hero h1 { line-height: 1.4; }
	.p12-mark { padding: 2px 8px; }
	.p12-tablist { width: 100%; border-radius: 18px; }
	.p12-tab { flex: 1 1 auto; justify-content: center; padding: 10px 14px; }
	.p12-facts > div { grid-template-columns: 1fr; gap: 0; }
	.p12-colon { display: none; }
	.p12-squiggle-photo { display: none; }
}

.p12-prose-sm { font-size: 16px; }
.p12-works > li { display: flex; }
.p12-works .p12-work { width: 100%; }

.p12-anchor { display: block; position: relative; top: -90px; height: 0; }
