/* ==========================================================================
   PKO — main stylesheet
   Editorial, minimal, spacious. Typography does most of the work.
   ========================================================================== */

:root {
	--pko-blue: #34ade3;
	--pko-blue-dark: #1f8fc2;
	--pko-ink: #14181b;
	--pko-cream: #faf8f4;
	--pko-white: #ffffff;
	--pko-grey: #6b7278;
	--pko-line: #e4e1da;

	--font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

	--wrap: 1240px;
	--wrap-narrow: 760px;
}

/* ---------- Reset-ish basics ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--pko-ink);
	background: var(--pko-cream);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 1rem; left: 1rem; z-index: 999;
	background: var(--pko-ink); color: var(--pko-white);
	padding: .75rem 1.25rem; width: auto; height: auto; clip: auto;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.08;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
p { margin: 0 0 1.2em; }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 32px;
}
.wrap-narrow { max-width: var(--wrap-narrow); }

section { padding: 96px 0; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 600;
	background: var(--pko-ink);
	color: var(--pko-white);
	border: 1px solid var(--pko-ink);
	border-radius: 100px;
	padding: 18px 34px;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--pko-blue); border-color: var(--pko-blue); transform: translateY(-2px); }
.btn-large { font-size: 1.05rem; padding: 20px 40px; }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }

.link-arrow {
	font-family: var(--font-display);
	font-weight: 600;
	border-bottom: 2px solid var(--pko-blue);
	padding-bottom: 2px;
}
.link-arrow::after { content: ' →'; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 248, 244, 0.9);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--pko-line);
}
.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 18px;
	padding-bottom: 18px;
}
.site-logo,
.custom-logo-link {
	display: flex;
	align-items: center;
	gap: 10px;
}
.site-logo-icon { height: 36px; width: auto; }
.site-logo-text {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.4rem;
	letter-spacing: -0.02em;
}
.custom-logo { max-height: 44px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 32px; }
.nav-menu { display: flex; gap: 28px; }
.nav-menu a {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.95rem;
}
.nav-menu a:hover { color: var(--pko-blue); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	flex-direction: column;
	gap: 5px;
	padding: 8px;
}
.nav-toggle-bar {
	width: 24px; height: 2px; background: var(--pko-ink); display: block;
}

/* ---------- Hero ---------- */
.hero { padding: 140px 0 110px; }
.hero-inner { max-width: 880px; }
.hero-heading {
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	margin-bottom: 0.35em;
}
.hero-subheading {
	font-size: 1.2rem;
	color: var(--pko-grey);
	max-width: 560px;
	margin-bottom: 2em;
}

/* ---------- Intro rhythm lines ---------- */
.intro { padding: 40px 0 100px; }
.intro-line {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 3.4vw, 2.6rem);
	font-weight: 600;
	margin: 0;
	color: var(--pko-grey);
}
.intro-line + .intro-line { margin-top: 0.15em; }
.intro-inner .intro-line:last-child { color: var(--pko-ink); }

/* ---------- Section heading ---------- */
.section-heading {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.section-heading-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}
.section-heading-row .section-heading { margin: 0; }

/* ---------- Work grid ---------- */
.work-section { border-top: 1px solid var(--pko-line); }
.work-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
}
.work-grid-archive { margin-bottom: 56px; }
.work-card { display: block; }
.work-card-media {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--pko-line);
	border-radius: 4px;
	margin-bottom: 18px;
}
.work-card-media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .5s ease;
}
.work-card:hover .work-card-media img { transform: scale(1.04); }
.work-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--pko-line), var(--pko-white)); }
.work-card-title { font-size: 1.15rem; margin-bottom: 0.2em; }
.work-card-services { color: var(--pko-grey); font-size: 0.9rem; margin: 0; }

.empty-state { color: var(--pko-grey); font-style: italic; }

/* ---------- Process / steps ---------- */
.process-section { background: var(--pko-white); border-top: 1px solid var(--pko-line); }
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin-top: 48px;
	padding: 0;
	counter-reset: step;
}
.step { list-style: none; }
.step-number {
	display: block;
	font-family: var(--font-display);
	color: var(--pko-blue);
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 16px;
}
.step-title { font-size: 1.3rem; margin-bottom: 0.4em; }
.step-text { color: var(--pko-grey); margin: 0; }

/* ---------- Help / outputs list ---------- */
.help-section { border-top: 1px solid var(--pko-line); }
.help-inner { max-width: 820px; }
.help-lede { color: var(--pko-grey); font-size: 1.1rem; margin-bottom: 2em; }
.help-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 40px;
}
.help-list li {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 500;
	padding: 14px 0;
	border-bottom: 1px solid var(--pko-line);
}

/* ---------- About teaser ---------- */
.about-teaser { border-top: 1px solid var(--pko-line); background: var(--pko-white); }
.about-teaser-text { max-width: 640px; }
.about-teaser-text p { color: var(--pko-grey); font-size: 1.1rem; }

/* ---------- Interior page system ---------- */
.page-header {
	padding: 150px 0 72px;
	border-bottom: 1px solid var(--pko-line);
}
.page-eyebrow {
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pko-blue-dark);
	margin: 0 0 24px;
}
.page-title {
	font-size: clamp(4rem, 9vw, 7.8rem);
	font-weight: 600;
	line-height: 0.92;
	letter-spacing: -0.055em;
	max-width: 1000px;
	margin: 0;
}
.page-subtitle {
	color: var(--pko-grey);
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.4vw, 2rem);
	line-height: 1.25;
	max-width: 720px;
	margin: 32px 0 0;
}
.page-content-section,
.contact-section { padding: 88px 0 112px; }
.page-content-section .wrap-narrow,
.contact-section .wrap-narrow { max-width: 980px; }
.entry-content { max-width: 980px; }
.entry-content > * { max-width: 760px; }
.entry-content > h2,
.entry-content > h3,
.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > .wp-block-columns { max-width: 980px; }
.entry-content h2 {
	font-size: clamp(2.6rem, 5.7vw, 5.2rem);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.045em;
	margin: 1.35em 0 0.42em;
}
.entry-content > h2:first-child {
	margin-top: 0;
	color: var(--pko-blue-dark);
}
.entry-content h3 {
	font-size: clamp(1.75rem, 3vw, 2.7rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin: 1.6em 0 0.5em;
}
.entry-content p {
	color: var(--pko-ink);
	font-size: 1.08rem;
	line-height: 1.7;
}
.entry-content p + p { margin-top: 0.2em; }
.entry-content strong { font-weight: 600; }
.entry-content a { color: var(--pko-blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
	max-width: 900px;
	margin: 64px 0;
	padding: 0 0 0 28px;
	border-left: 3px solid var(--pko-blue);
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 3vw, 2.5rem);
	line-height: 1.15;
}
.entry-content ul,
.entry-content ol {
	max-width: 760px;
	margin: 28px 0 40px;
	padding-left: 1.25em;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.55em; }

/* ---------- Single work ---------- */
.work-meta-row { display: flex; gap: 20px; color: var(--pko-grey); font-family: var(--font-display); margin-top: 12px; flex-wrap: wrap; }
.single-work-thumb { margin: 20px 0 60px; border-radius: 4px; overflow: hidden; }
.work-nav {
	display: flex; align-items: center; justify-content: space-between;
	padding: 40px 0 100px; border-top: 1px solid var(--pko-line); margin-top: 60px;
	font-family: var(--font-display); font-weight: 500;
}
.work-nav-all { color: var(--pko-blue-dark); }

/* ---------- Blog list ---------- */
.post-list { display: grid; gap: 56px; }
.post-list-thumb { border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.post-list-title { font-size: 1.6rem; margin-bottom: 0.3em; }
.post-list-excerpt { color: var(--pko-grey); }
.post-meta { color: var(--pko-grey); font-size: 0.9rem; margin-bottom: 0.5em; }

/* ---------- Contact form ---------- */
.contact-form { margin-top: 40px; }
.form-row { margin-bottom: 24px; }
.form-row label {
	display: block; font-family: var(--font-display); font-weight: 500;
	margin-bottom: 8px; font-size: 0.95rem;
}
.form-row input, .form-row textarea {
	width: 100%; padding: 14px 16px; border: 1px solid var(--pko-line);
	border-radius: 4px; background: var(--pko-white); font-family: var(--font-body);
	font-size: 1rem; color: var(--pko-ink);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--pko-blue); border-color: var(--pko-blue); }
.form-notice { padding: 16px 20px; border-radius: 4px; margin-bottom: 24px; font-family: var(--font-display); }
.form-notice-success { background: #e4f6fd; color: var(--pko-blue-dark); }
.form-notice-error { background: #fbeaea; color: #a33; }
.contact-alt { margin-top: 48px; color: var(--pko-grey); }
.contact-alt a { color: var(--pko-blue-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pko-ink); color: var(--pko-cream); margin-top: 40px; }
.footer-cta { text-align: center; padding: 100px 0 80px; }
.footer-cta-heading { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.6em; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 60px;
	border-top: 1px solid rgba(250,248,244,0.15);
	padding-top: 60px;
}
.footer-brand .site-logo-text,
.footer-brand .site-logo-icon { filter: none; }
.footer-brand .custom-logo { filter: brightness(0) invert(1); }
.footer-location { color: rgba(250,248,244,0.6); margin-top: 16px; }
.footer-email { font-family: var(--font-display); font-weight: 600; color: var(--pko-blue); }
.footer-heading { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(250,248,244,0.5); margin-bottom: 1.2em; }
.footer-menu, .footer-socials { display: flex; flex-direction: column; gap: 12px; }
.social-link:hover, .footer-menu a:hover { color: var(--pko-blue); }
.footer-widget-title { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(250,248,244,0.5); }
.footer-bottom {
	display: flex; justify-content: space-between; padding-bottom: 40px;
	color: rgba(250,248,244,0.5); font-size: 0.85rem; flex-wrap: wrap; gap: 12px;
}

/* ---------- 404 ---------- */
.error-404 { padding: 180px 0 140px; text-align: left; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.work-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: 1fr; gap: 32px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.help-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	section { padding: 64px 0; }
	.hero { padding: 120px 0 70px; }
	.page-header { padding: 110px 0 52px; }
	.page-title { font-size: clamp(3.4rem, 18vw, 5.2rem); }
	.page-eyebrow { margin-bottom: 18px; }
	.page-content-section, .contact-section { padding: 64px 0 80px; }
	.entry-content h2 { font-size: clamp(2.35rem, 11vw, 3.8rem); }
	.wrap { padding: 0 20px; }

	.primary-nav {
		position: fixed;
		top: 73px;
		left: 0;
		right: 0;
		background: var(--pko-cream);
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 20px 32px;
		gap: 20px;
		border-bottom: 1px solid var(--pko-line);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
	}
	.primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
	.nav-menu { flex-direction: column; gap: 16px; }
	.nav-toggle { display: flex; }
	.nav-cta { margin-left: 0; }

	.work-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; }
}

/* ---------- Editable homepage / Gutenberg builder ---------- */
.home-builder {
	overflow: clip;
}
.home-builder > *:not(.alignfull):not(.alignwide) {
	max-width: var(--wrap);
	margin-left: auto;
	margin-right: auto;
	padding-left: 32px;
	padding-right: 32px;
}
.home-builder > .alignwide {
	width: min(calc(100% - 64px), var(--wrap));
	max-width: var(--wrap);
	margin-left: auto;
	margin-right: auto;
}
.home-builder > .alignfull {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}
.home-builder > .wp-block-group,
.home-builder > .wp-block-cover,
.home-builder > .wp-block-columns,
.home-builder > .wp-block-media-text {
	margin-top: 0;
	margin-bottom: 0;
}
.home-builder .wp-block-group {
	padding-top: clamp(72px, 9vw, 120px);
	padding-bottom: clamp(72px, 9vw, 120px);
}
.home-builder .wp-block-group.has-background {
	padding-left: max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
	padding-right: max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
}
.home-builder h1 {
	font-size: clamp(3.4rem, 8vw, 7rem);
	line-height: .94;
	letter-spacing: -.055em;
	max-width: 1000px;
}
.home-builder h2 {
	font-size: clamp(2.4rem, 5.2vw, 4.8rem);
	line-height: .98;
	letter-spacing: -.045em;
}
.home-builder h3 {
	font-size: clamp(1.5rem, 3vw, 2.5rem);
}
.home-builder p {
	max-width: 760px;
	font-size: 1.08rem;
}
.home-builder .wp-block-buttons {
	margin-top: 32px;
}
.home-builder .wp-block-button__link {
	font-family: var(--font-display);
	font-weight: 600;
	background: var(--pko-ink);
	color: var(--pko-white);
	border-radius: 100px;
	padding: 18px 34px;
	transition: transform .2s ease, background .2s ease;
}
.home-builder .wp-block-button__link:hover {
	background: var(--pko-blue);
	transform: translateY(-2px);
}
.home-builder .wp-block-cover {
	min-height: clamp(520px, 72vh, 860px);
}
.home-builder .wp-block-cover__inner-container {
	width: min(calc(100% - 64px), var(--wrap));
	margin: 0 auto;
}
.home-builder .wp-block-cover__inner-container > * {
	max-width: 900px;
}
.pko-dynamic-section { margin: 0; }

/* ---------- PKO parallax imagery ---------- */
.is-style-pko-parallax {
	position: relative;
	overflow: hidden;
}
.wp-block-cover.is-style-pko-parallax .wp-block-cover__image-background,
.wp-block-cover.is-style-pko-parallax .wp-block-cover__video-background {
	inset: -12% 0;
	height: 124%;
	width: 100%;
	max-width: none;
	will-change: transform;
	transform: translate3d(0, var(--pko-parallax-y, 0px), 0) scale(1.03);
}
.wp-block-image.is-style-pko-parallax {
	min-height: clamp(420px, 65vh, 780px);
}
.wp-block-image.is-style-pko-parallax img {
	position: absolute;
	inset: -12% 0;
	width: 100%;
	height: 124%;
	max-width: none;
	object-fit: cover;
	will-change: transform;
	transform: translate3d(0, var(--pko-parallax-y, 0px), 0) scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-cover.is-style-pko-parallax .wp-block-cover__image-background,
	.wp-block-cover.is-style-pko-parallax .wp-block-cover__video-background,
	.wp-block-image.is-style-pko-parallax img {
		transform: none !important;
		inset: 0;
		height: 100%;
	}
}

@media (max-width: 720px) {
	.home-builder > *:not(.alignfull):not(.alignwide) {
		padding-left: 20px;
		padding-right: 20px;
	}
	.home-builder > .alignwide,
	.home-builder .wp-block-cover__inner-container {
		width: calc(100% - 40px);
	}
	.home-builder .wp-block-group.has-background {
		padding-left: 20px;
		padding-right: 20px;
	}
	.wp-block-cover.is-style-pko-parallax .wp-block-cover__image-background,
	.wp-block-cover.is-style-pko-parallax .wp-block-cover__video-background,
	.wp-block-image.is-style-pko-parallax img {
		inset: -6% 0;
		height: 112%;
	}
}

/* ---------- PKO pattern library ---------- */
.pko-pattern { padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(80px, 10vw, 150px); }
.pko-pattern > * { width: min(calc(100% - 64px), var(--wrap)); margin-left: auto; margin-right: auto; }
.pko-eyebrow { font-family: var(--font-display); font-size: .78rem !important; line-height: 1; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--pko-blue); margin-bottom: 28px !important; }
.pko-lede { font-size: clamp(1.15rem, 1.8vw, 1.45rem) !important; line-height: 1.5; max-width: 680px !important; }
.pko-pattern-hero { min-height: min(820px, 88vh); display: flex; flex-direction: column; justify-content: center; }
.pko-pattern-hero h1 { max-width: 1050px; }
.pko-pattern-statement h2, .pko-pattern-blue h2, .pko-pattern-cta h2 { max-width: 1000px; font-size: clamp(3rem, 7vw, 6.7rem); line-height: .94; letter-spacing: -.055em; }
.pko-pattern-blue { background: var(--pko-blue); color: var(--pko-ink); }
.pko-pattern-blue .pko-eyebrow { color: var(--pko-ink); }
.pko-pattern-split .wp-block-columns, .pko-pattern-profile .wp-block-columns { gap: clamp(40px, 7vw, 110px); }
.pko-pattern-split .wp-block-image, .pko-pattern-profile .wp-block-image { margin: 0; }
.pko-pattern-split .wp-block-image img, .pko-pattern-profile .wp-block-image img { width: 100%; min-height: 560px; object-fit: cover; }
.pko-pattern-profile .pko-portrait img { aspect-ratio: 4 / 5; min-height: 0; }
.pko-image-placeholder:has(img[src=""]) { min-height: 560px; background: #e8e5df; }
.pko-pattern-parallax .pko-cover-prompt { font-family: var(--font-display); font-weight: 600; color: #fff; max-width: 420px; }
.pko-pattern-packages { background: #f1eee8; }
.pko-pattern-packages > h2 { max-width: 850px; margin-bottom: 64px; }
.pko-package-grid { gap: 0; border-top: 1px solid var(--pko-ink); }
.pko-package { padding: 34px 30px 38px; border-right: 1px solid var(--pko-ink); }
.pko-package:first-child { padding-left: 0; }
.pko-package:last-child { border-right: 0; padding-right: 0; }
.pko-package-number { font-family: var(--font-display); color: var(--pko-blue); font-size: .8rem !important; font-weight: 700; letter-spacing: .1em; }
.pko-package h3 { margin-top: 52px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.pko-package .wp-block-button { margin-top: 28px; }
.pko-package .is-style-outline .wp-block-button__link { background: transparent; color: var(--pko-ink); border: 1px solid var(--pko-ink); }
.pko-pattern-work { padding-left: 0 !important; padding-right: 0 !important; }
.pko-pattern-work > * { width: 100%; max-width: none; }
.pko-pattern-cta { background: var(--pko-ink); color: var(--pko-cream); }
.pko-pattern-cta .wp-block-button__link { background: var(--pko-blue); color: var(--pko-ink); }

@media (max-width: 720px) {
	.pko-pattern > * { width: calc(100% - 40px); }
	.pko-pattern-hero { min-height: 72vh; }
	.pko-pattern-split .wp-block-image img, .pko-pattern-profile .wp-block-image img { min-height: 420px; }
	.pko-package-grid { border-top: 0; }
	.pko-package, .pko-package:first-child, .pko-package:last-child { padding: 30px 0; border-right: 0; border-top: 1px solid var(--pko-ink); }
	.pko-package h3 { margin-top: 28px; }
}

/* ==========================================================================\n   PKO v1.4 — flexible editorial page builder\n   ========================================================================== */
.page-builder-section { padding: 0; }
.page-builder { overflow: clip; }
.page-builder > *:not(.alignfull):not(.alignwide),
.page-builder > .entry-content > *:not(.alignfull):not(.alignwide) {
	max-width: var(--wrap-narrow);
	margin-left: auto;
	margin-right: auto;
	padding-left: 32px;
	padding-right: 32px;
}
.page-builder > .alignwide { width: min(calc(100% - 64px), var(--wrap)); max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.page-builder > .alignfull { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.page-builder .wp-block-group.alignfull,
.page-builder .wp-block-cover.alignfull { width: 100%; max-width: none; }

/* True full-width colour blocks: colour runs edge-to-edge, content stays aligned. */
.page-builder .wp-block-group.alignfull.has-background,
.home-builder .wp-block-group.alignfull.has-background,
.wp-block-group.is-style-full-bleed {
	width: 100%;
	max-width: none;
	padding-left: max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
	padding-right: max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
}
.wp-block-group.is-style-full-bleed { padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(80px, 10vw, 150px); }
.wp-block-group.is-style-viewport { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.wp-block-group.is-style-compact { padding-top: clamp(44px, 6vw, 80px) !important; padding-bottom: clamp(44px, 6vw, 80px) !important; }
.wp-block-group.is-style-editorial-offset > * { max-width: 900px; margin-left: clamp(0px, 12vw, 180px); }
.wp-block-heading.is-style-pko-display { font-size: clamp(3.2rem, 8vw, 8rem); line-height: .9; letter-spacing: -.06em; max-width: 1200px; }
.wp-block-columns.is-style-pko-asymmetric { gap: clamp(32px, 7vw, 110px); align-items: flex-start; }
.wp-block-columns.is-style-pko-asymmetric > .wp-block-column:first-child { flex-basis: 34% !important; }
.wp-block-columns.is-style-pko-asymmetric > .wp-block-column:last-child { flex-basis: 66% !important; }

/* Sticky storytelling layout: use a Group with two columns inside it. */
.wp-block-group.is-style-sticky-story .wp-block-column:first-child { position: sticky; top: 120px; align-self: flex-start; }

/* Editorial gallery rhythm. */
.wp-block-gallery.is-style-pko-editorial-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.wp-block-gallery.is-style-pko-editorial-grid > figure { grid-column: span 6; width: 100% !important; }
.wp-block-gallery.is-style-pko-editorial-grid > figure:nth-child(3n+1) { grid-column: span 7; }
.wp-block-gallery.is-style-pko-editorial-grid > figure:nth-child(3n+2) { grid-column: span 5; margin-top: clamp(0px, 8vw, 110px); }
.wp-block-gallery.is-style-pko-editorial-grid > figure:nth-child(3n) { grid-column: 3 / span 8; }
.wp-block-gallery.is-style-pko-editorial-grid img { width: 100%; height: 100%; object-fit: cover; }

/* Keep arbitrary Gutenberg background colours edge-to-edge when the block is full aligned. */
.alignfull.has-background { box-sizing: border-box; }

/* Mobile safety + art direction. */
@media (max-width: 900px) {
	.wp-block-group.is-style-editorial-offset > * { margin-left: 0; }
	.wp-block-group.is-style-sticky-story .wp-block-column:first-child { position: static; }
	.wp-block-gallery.is-style-pko-editorial-grid { grid-template-columns: repeat(2, 1fr); }
	.wp-block-gallery.is-style-pko-editorial-grid > figure,
	.wp-block-gallery.is-style-pko-editorial-grid > figure:nth-child(3n+1),
	.wp-block-gallery.is-style-pko-editorial-grid > figure:nth-child(3n+2),
	.wp-block-gallery.is-style-pko-editorial-grid > figure:nth-child(3n) { grid-column: auto; margin-top: 0; }
}
@media (max-width: 720px) {
	.page-builder > *:not(.alignfull):not(.alignwide) { padding-left: 20px; padding-right: 20px; }
	.page-builder > .alignwide { width: calc(100% - 40px); }
	.page-builder .wp-block-group.alignfull.has-background,
	.home-builder .wp-block-group.alignfull.has-background,
	.wp-block-group.is-style-full-bleed { padding-left: 20px; padding-right: 20px; }
	.wp-block-heading.is-style-pko-display { font-size: clamp(2.8rem, 15vw, 5.2rem); }
	.wp-block-columns.is-style-pko-asymmetric { flex-wrap: wrap !important; }
	.wp-block-columns.is-style-pko-asymmetric > .wp-block-column { flex-basis: 100% !important; }
	.wp-block-gallery.is-style-pko-editorial-grid { grid-template-columns: 1fr; }
	.wp-block-group.is-style-viewport { min-height: 80svh; }
	.pko-pattern { padding-top: 72px; padding-bottom: 72px; }
	.home-builder h1 { font-size: clamp(3rem, 15vw, 5rem); }
	.home-builder h2 { font-size: clamp(2.35rem, 11vw, 4rem); }
}
