/* =========================================================================
   CuckooPie theme styles
   Colours, fonts and sizes live in theme.json; this file adds the details
   blocks can't express on their own (hover effects, outlined type, galleries).
   ========================================================================= */
:root {
	--cp-ease: cubic-bezier(.2,.7,.2,1);
	--cp-radius: 22px;
	--cp-green: var(--wp--preset--color--green);
	--cp-green-deep: var(--wp--preset--color--green-deep);
	--cp-wash: var(--wp--preset--color--green-wash);
	--cp-ink: var(--wp--preset--color--ink);
	--cp-line: var(--wp--preset--color--line);
	--cp-muted: var(--wp--preset--color--muted);
}
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(h1, h2, h3) { text-wrap: balance; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--cp-green); outline-offset: 3px; border-radius: 6px; }
.wp-site-blocks > main { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: transform .25s var(--cp-ease), box-shadow .25s, background-color .25s, color .25s; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(79,122,18,.6); color: var(--cp-ink); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--cp-ink); border: 0; box-shadow: inset 0 0 0 2px var(--cp-ink); padding: 17px 28px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--cp-ink); color: #fff; }
.wp-block-button.is-style-cp-dark .wp-block-button__link { background: var(--cp-ink); color: #fff; }
.wp-block-button.is-style-cp-dark .wp-block-button__link:hover { color: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.wp-block-button.is-style-cp-launch .wp-block-button__link { background: var(--wp--preset--color--launch); color: #fff; }
.wp-block-button.is-style-cp-launch .wp-block-button__link:hover { color: #fff; box-shadow: 0 10px 24px -10px rgba(240,106,29,.7); }
.wp-block-button.is-style-cp-glass .wp-block-button__link { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.wp-block-button.is-style-cp-glass .wp-block-button__link:hover { background: var(--cp-green); color: var(--cp-ink); box-shadow: none; }
.cp-arrow .wp-block-button__link::after { content: " →"; display: inline-block; transition: transform .25s var(--cp-ease); }
.cp-arrow .wp-block-button__link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.cp-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--cp-line); }
.admin-bar .cp-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .cp-header { top: 0; } }
.cp-header .wp-block-site-logo img { height: 84px; width: auto; }
.cp-header .wp-block-navigation-item__content { color: var(--cp-ink); position: relative; }
.cp-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; border-radius: 3px; background: var(--cp-green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--cp-ease); }
.cp-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
.cp-header .current-menu-item > .wp-block-navigation-item__content::after,
.cp-header .wp-block-navigation-item__content[aria-current]::after { transform: scaleX(1); }
.cp-header .wp-block-navigation__responsive-container-open { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--cp-ink); justify-content: center; align-items: center; }
.cp-header .wp-block-navigation__submenu-container { border: 1px solid var(--cp-line) !important; border-radius: 14px; padding: 8px 0 !important; box-shadow: 0 18px 36px -22px rgba(47,47,49,.35); }
.cp-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 18px !important; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 24px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 22px; padding: 8px 0 !important; }
@media (max-width: 720px) {
	.cp-header .wp-block-site-logo img { height: 62px; }
	.cp-header .cp-header-cta { display: none; }
}

/* ---------- Section title: big outlined word + heading ---------- */
.cp-titled { display: grid; gap: clamp(8px, 1.2vw, 16px); }
.cp-titled > * { margin: 0 !important; }
.is-style-cp-outline-word, .cp-ghost { display: block; margin: 0 0 0 -0.05em; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: clamp(64px, 9vw, 128px) !important; line-height: .8 !important; letter-spacing: -0.04em; color: transparent !important; -webkit-text-stroke: 1.5px var(--cp-green); paint-order: stroke fill; opacity: .6; white-space: nowrap; user-select: none; }
.is-style-cp-outline-word.has-launch-color { -webkit-text-stroke-color: var(--wp--preset--color--launch); }
.editor-styles-wrapper .is-style-cp-outline-word { user-select: text; }

/* ---------- Text styles ---------- */
.is-style-cp-lead { font-size: 20px; line-height: 1.6; }
.is-style-cp-tags { font-family: var(--wp--preset--font-family--display); font-size: 12px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cp-green-deep); }
.is-style-cp-stat { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: clamp(34px, 4vw, 48px) !important; line-height: 1 !important; color: transparent !important; -webkit-text-stroke: 1.5px var(--cp-green-deep); margin: 0; }
.is-style-cp-pull { margin: 1.6em 0 !important; padding: 4px 0 4px 26px; border-left: 4px solid var(--cp-green); font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(20px, 2vw, 24px) !important; line-height: 1.4 !important; color: var(--cp-ink); letter-spacing: -.01em; }
.cp-crumbs { font-size: 14px; color: var(--cp-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.cp-crumbs a { color: inherit; } .cp-crumbs a:hover { color: var(--cp-green-deep); }
.cp-meta { font-family: var(--wp--preset--font-family--display); font-size: 13px; font-weight: 600; color: var(--cp-muted); }

/* ---------- Page heroes ---------- */
.cp-page-hero.wp-block-cover { min-height: 0; padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(56px, 7vw, 96px); }
.cp-page-hero .wp-block-cover__image-background { filter: grayscale(.15); object-position: 70% 50%; }
.cp-page-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(30,30,32,1) 0%, rgba(30,30,32,.88) 50%, rgba(30,30,32,.56) 100%) !important; opacity: var(--cp-dim, .85) !important; }
.cp-page-hero .wp-block-cover__inner-container { color: #E4E4E7; }
.cp-page-hero h1, .cp-page-hero .wp-block-post-title { color: #fff; }
.cp-page-hero .cp-crumbs, .cp-page-hero .cp-crumbs a { color: #C9C9CE; }
.cp-page-hero .wp-block-post-excerpt__excerpt { font-size: 20px; line-height: 1.6; color: #E4E4E7; max-width: 46ch; margin: 0; }
.cp-page-hero .cp-ghost { opacity: .75; }
.cp-side-hero .wp-block-post-featured-image img { aspect-ratio: 1 / 1; object-fit: cover; }
.cp-side-hero .wp-block-post-excerpt__excerpt { font-size: 20px; line-height: 1.6; margin: 0; }
.cp-side-hero .wp-block-post-featured-image { position: relative; }
.cp-side-hero .wp-block-post-featured-image::after { content: ""; position: absolute; left: -28px; bottom: -24px; width: 90px; aspect-ratio: 468 / 511; background: url(../images/bird.png) center / contain no-repeat; transform: scaleX(-1); filter: drop-shadow(0 10px 18px rgba(0,0,0,.15)); }
@media (max-width: 781px) { .cp-side-hero .wp-block-post-featured-image::after { left: auto; right: 12px; width: 66px; } }

/* Homepage hero: the whole photo, text on the white wall */
.cp-home-hero.wp-block-cover { min-height: 540px; aspect-ratio: 3 / 2; max-height: 92vh; padding-top: 48px; padding-bottom: 48px; }
.cp-home-hero .wp-block-cover__image-background { object-position: 70% 0%; }
.cp-home-hero .wp-block-cover__inner-container { color: var(--wp--preset--color--text); }
.cp-home-hero h1 { font-size: var(--wp--preset--font-size--hero-title) !important; line-height: 1.04; }
.cp-home-hero h1 mark { background: none; color: var(--cp-green); }
@media (max-width: 781px) {
	.cp-home-hero.wp-block-cover { aspect-ratio: auto; max-height: none; min-height: 0; padding: 0 0 56px; display: block; background: #fff; }
	.cp-home-hero .wp-block-cover__image-background { position: static; height: auto; aspect-ratio: 3 / 2; object-position: center; }
	.cp-home-hero .wp-block-cover__background { display: none; }
	.cp-home-hero .wp-block-cover__inner-container { padding: 40px 24px 0; }
}

/* About hero: big photo, text on the right */
.cp-about-hero.wp-block-cover { min-height: 480px; aspect-ratio: 20 / 11; max-height: 86vh; }
.cp-about-hero .wp-block-cover__image-background { object-position: 35% 20%; }
.cp-about-hero .wp-block-cover__inner-container { color: var(--wp--preset--color--text); }
@media (max-width: 1100px) {
	.cp-about-hero.wp-block-cover { aspect-ratio: auto; max-height: none; min-height: 0; padding: 0 0 24px; display: block; background: #fff; }
	.cp-about-hero .wp-block-cover__image-background { position: static; height: auto; aspect-ratio: 16 / 10; object-position: 30% 20%; }
	.cp-about-hero .wp-block-cover__background { display: none; }
	.cp-about-hero .wp-block-cover__inner-container { padding: 36px 24px 0; }
	.cp-about-hero .wp-block-cover__inner-container > .wp-block-group { margin-left: 0 !important; max-width: none !important; }
}

/* ---------- Cards ---------- */
.is-style-cp-card, .is-style-cp-card-dark, .is-style-cp-card-outline, .is-style-cp-project { transition: transform .35s var(--cp-ease), box-shadow .35s, border-color .3s; }
.is-style-cp-card { background: var(--cp-wash); border-radius: var(--cp-radius); padding: 36px 32px 32px; }
.is-style-cp-card-dark { background: var(--cp-ink); color: #CFCFD3; border-radius: var(--cp-radius); padding: 36px 32px 32px; }
.is-style-cp-card-dark :where(h2, h3, h4) { color: #fff; }
.is-style-cp-card-dark a:not(.wp-element-button) { color: var(--cp-green); }
.is-style-cp-card-dark .is-style-cp-pills li { background: rgba(255,255,255,.08); color: #fff; }
.is-style-cp-card-outline { background: #fff; border: 1px solid var(--cp-line); border-radius: var(--cp-radius); padding: 28px; }
.is-style-cp-card:hover, .is-style-cp-card-dark:hover { transform: translateY(-4px); }
.is-style-cp-card-outline:hover { border-color: var(--cp-green); transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(47,47,49,.35); }
.cp-num { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 34px !important; line-height: 1 !important; color: transparent !important; -webkit-text-stroke: 1.5px var(--cp-green); margin: 0; }
.is-style-cp-card .cp-num, .is-style-cp-card-dark .cp-num { font-size: 15px !important; -webkit-text-stroke: 0; color: var(--cp-green-deep) !important; }
.is-style-cp-card-dark .cp-num { color: var(--cp-green) !important; }
.cp-stretch > * { height: 100%; }
.cp-stretch .wp-block-buttons:last-child, .cp-push-down { margin-top: auto !important; }

/* Project cards */
.is-style-cp-project { display: grid; gap: 12px; align-content: start; }
.is-style-cp-project .wp-block-image { margin: 0; border-radius: var(--cp-radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--cp-line); }
.is-style-cp-project .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .6s var(--cp-ease); }
.is-style-cp-project:hover .wp-block-image img { transform: scale(1.05); }
.is-style-cp-project h3 { font-size: 20px; transition: color .25s; }
.is-style-cp-project h3 a { color: inherit; }
.is-style-cp-project:hover h3 { color: var(--cp-green-deep); }
.is-style-cp-project p:not(.is-style-cp-tags) { font-size: 15px; color: var(--cp-muted); }
.is-style-cp-project.cp-logo-thumb .wp-block-image { background: #fff; display: grid; place-items: center; }
.is-style-cp-project.cp-logo-thumb .wp-block-image img { width: 62%; height: auto; object-fit: contain; }

/* ---------- Panels ---------- */
.is-style-cp-panel-dark { background: var(--cp-ink); color: #CFCFD3; border-radius: 32px; padding: clamp(28px, 4vw, 56px) !important; }
.is-style-cp-panel-dark :where(h1, h2, h3, h4) { color: #fff; }
.is-style-cp-panel-dark .is-style-cp-tags { color: var(--cp-green); }
.is-style-cp-panel-dark .is-style-cp-pills li { background: rgba(255,255,255,.08); color: #fff; }
.is-style-cp-panel-dark .is-style-cp-outline-word { opacity: .5; }
.is-style-cp-panel-dark .is-style-cp-steps li::before { -webkit-text-stroke-color: var(--cp-green); }
.is-style-cp-panel-green { background: var(--cp-green); border-radius: 28px; padding: clamp(40px, 6vw, 72px) !important; position: relative; overflow: hidden; color: var(--cp-ink); }
.is-style-cp-panel-green p { color: var(--cp-ink); }
.is-style-cp-panel-green .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--cp-ink); color: #fff; }
.is-style-cp-panel-green > * { position: relative; z-index: 2; }

/* Green contact band: bird perched on the bottom with a dotted trail */
.cp-cta-band { position: relative; }
.cp-cta-band .cp-bird { position: absolute !important; z-index: 1 !important; right: 30%; bottom: 0; width: 92px; margin: 0 !important; opacity: .55; filter: brightness(0) invert(1); transform: scaleX(-1); pointer-events: none; }
.cp-cta-band .cp-bird img { border-radius: 0; }
.cp-cta-band::after { content: ""; position: absolute; z-index: 0; left: calc(70% - 50px); right: 0; bottom: 6px; height: 62%; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 260' preserveAspectRatio='none'%3E%3Cpath d='M20 236 C 90 250, 150 200, 180 150 C 210 96, 160 60, 128 96 C 96 134, 150 186, 230 168 C 320 148, 420 60, 640 40' fill='none' stroke='white' stroke-opacity='.6' stroke-width='3.5' stroke-linecap='round' stroke-dasharray='0.1 12' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
@media (max-width: 781px) { .cp-cta-band .cp-bird, .cp-cta-band::after { display: none; } }

/* Launch! panel */
.wp-block-columns.is-style-cp-launch { background: var(--wp--preset--color--launch-wash); border-radius: 28px; overflow: hidden; gap: 0 !important; }
.wp-block-columns.is-style-cp-launch > .wp-block-column:first-child .wp-block-image { margin: 0; height: 100%; }
.wp-block-columns.is-style-cp-launch > .wp-block-column:first-child img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: 0; }
.wp-block-columns.is-style-cp-launch > .wp-block-column:last-child { padding: clamp(32px, 5vw, 64px); align-self: center; }
.wp-block-columns.is-style-cp-launch .is-style-cp-outline-word { -webkit-text-stroke-color: var(--wp--preset--color--launch); }

/* ---------- Lists ---------- */
.is-style-cp-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.is-style-cp-steps li { counter-increment: s; display: grid; gap: 12px; align-content: start; font-size: 15px; }
.is-style-cp-steps li::before { content: counter(s, decimal-leading-zero); font: 800 56px/1 var(--wp--preset--font-family--display); color: transparent; -webkit-text-stroke: 2px var(--cp-green); paint-order: stroke fill; }
.is-style-cp-steps li strong { display: block; font: 700 22px/1.25 var(--wp--preset--font-family--display); color: inherit; }
.is-style-cp-panel-dark .is-style-cp-steps li strong, .cp-dark .is-style-cp-steps li strong { color: #fff; }
.is-style-cp-ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.is-style-cp-ticks li { position: relative; padding-left: 30px; font-weight: 500; color: var(--cp-ink); }
.is-style-cp-ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--cp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%232F2F31' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.is-style-cp-ticks.cp-one-col { grid-template-columns: 1fr; gap: 14px; }
.is-style-cp-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.is-style-cp-pills li { background: #fff; color: var(--cp-ink); border-radius: 30px; padding: 9px 14px; font-size: 14px; font-weight: 500; line-height: 1; }
.is-style-cp-pills.cp-jump li { padding: 0; background: none; }
.is-style-cp-pills.cp-jump a { display: block; padding: 14px 20px; border-radius: 40px; background: var(--cp-wash); color: var(--cp-ink); font: 600 15px/1 var(--wp--preset--font-family--display); transition: background .25s, transform .25s var(--cp-ease); }
.is-style-cp-pills.cp-jump a:hover { background: var(--cp-green); transform: translateY(-2px); }
.cp-page-hero .is-style-cp-pills.cp-jump a { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.cp-page-hero .is-style-cp-pills.cp-jump a:hover { background: var(--cp-green); color: var(--cp-ink); }

/* ---------- FAQ ---------- */
.is-style-cp-faq { border-bottom: 1px solid var(--cp-line); padding: 22px 0; }
.is-style-cp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 700 18px/1.35 var(--wp--preset--font-family--display); color: var(--cp-ink); }
.is-style-cp-faq summary::-webkit-details-marker { display: none; }
.is-style-cp-faq summary::after { content: "+"; font-size: 26px; line-height: .8; color: var(--cp-green-deep); transition: transform .3s; }
.is-style-cp-faq[open] summary::after { transform: rotate(45deg); }
.is-style-cp-faq > :not(summary) { margin-top: 12px; }

/* ---------- Galleries ---------- */
/* Client logos: grey, colour on hover */
.wp-block-gallery.is-style-cp-logos { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px !important; }
.wp-block-gallery.is-style-cp-logos .wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 3 / 2; border: 1px solid var(--cp-line); border-radius: 16px; display: grid !important; place-items: center; background: #fff; transition: border-color .3s, transform .3s var(--cp-ease), box-shadow .3s; }
.wp-block-gallery.is-style-cp-logos .wp-block-image img { width: auto !important; height: auto !important; max-width: 76%; max-height: 64%; object-fit: contain !important; border-radius: 0; filter: grayscale(1); opacity: .55; transition: filter .35s, opacity .35s; }
.wp-block-gallery.is-style-cp-logos .wp-block-image:hover { border-color: var(--cp-green); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(47,47,49,.35); }
.wp-block-gallery.is-style-cp-logos .wp-block-image:hover img { filter: none; opacity: 1; }
.wp-block-gallery.is-style-cp-logos figcaption { display: none; }

/* Logo showcase: squares that pop on hover */
.wp-block-gallery.is-style-cp-showcase { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px !important; }
.wp-block-gallery.is-style-cp-showcase .wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--cp-line); border-radius: 20px; display: grid !important; place-items: center; overflow: hidden; position: relative; transition: transform .4s var(--cp-ease), box-shadow .4s, border-color .3s; }
.wp-block-gallery.is-style-cp-showcase .wp-block-image img { width: auto !important; height: auto !important; max-width: 70%; max-height: 56%; object-fit: contain !important; border-radius: 0; }
.wp-block-gallery.is-style-cp-showcase .wp-block-image.cp-full img { max-width: none; max-height: none; width: 100% !important; height: 100% !important; object-fit: cover !important; }
.wp-block-gallery.is-style-cp-showcase .wp-block-image:hover { transform: scale(1.06); z-index: 2; border-color: var(--cp-green); box-shadow: 0 26px 50px -26px rgba(47,47,49,.45); }
.wp-block-gallery.is-style-cp-showcase figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; margin: 0; padding: 0; background: none !important; font: 600 13px/1.3 var(--wp--preset--font-family--display); color: var(--cp-ink) !important; text-align: left; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.wp-block-gallery.is-style-cp-showcase .wp-block-image:hover figcaption { opacity: 1; transform: none; }
.wp-block-gallery.is-style-cp-showcase figcaption::before { display: none; }

/* Photo mosaic */
.wp-block-gallery.is-style-cp-mosaic { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 220px); gap: 18px !important; }
.wp-block-gallery.is-style-cp-mosaic .wp-block-image { width: auto !important; margin: 0 !important; border-radius: 20px; overflow: hidden; position: relative; }
.wp-block-gallery.is-style-cp-mosaic .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0; transition: transform .6s var(--cp-ease); }
.wp-block-gallery.is-style-cp-mosaic .wp-block-image:hover img { transform: scale(1.05); }
.wp-block-gallery.is-style-cp-mosaic .wp-block-image:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.wp-block-gallery.is-style-cp-mosaic .wp-block-image:nth-child(6n+4), .wp-block-gallery.is-style-cp-mosaic .wp-block-image:nth-child(6n+5) { grid-row: span 2; }
.wp-block-gallery.is-style-cp-mosaic .wp-block-image:nth-child(6n) { grid-column: span 2; }
.wp-block-gallery.is-style-cp-mosaic figcaption, .wp-block-gallery.is-style-cp-marquee figcaption, .wp-block-gallery.is-style-cp-marquee-reverse figcaption { position: absolute; left: 12px; bottom: 12px; right: auto; width: auto; max-width: calc(100% - 24px); margin: 0; padding: 7px 11px !important; border-radius: 20px; background: rgba(255,255,255,.94) !important; color: var(--cp-ink) !important; font: 600 12px/1.2 var(--wp--preset--font-family--display); text-align: left; }
.wp-block-gallery.is-style-cp-mosaic figcaption::before, .wp-block-gallery.is-style-cp-marquee figcaption::before, .wp-block-gallery.is-style-cp-marquee-reverse figcaption::before { display: none; }

/* Document pages (reports, guides) */
.wp-block-gallery.is-style-cp-pages { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px !important; }
.wp-block-gallery.is-style-cp-pages .wp-block-image { width: auto !important; margin: 0 !important; border-radius: 6px; overflow: hidden; box-shadow: 0 16px 34px -18px rgba(0,0,0,.5); transition: transform .4s var(--cp-ease), box-shadow .4s; }
.wp-block-gallery.is-style-cp-pages .wp-block-image img { width: 100% !important; height: auto !important; aspect-ratio: 1400 / 989; object-fit: cover !important; border-radius: 0; }
.wp-block-gallery.is-style-cp-pages .wp-block-image:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 28px 50px -24px rgba(0,0,0,.55); }
.wp-block-gallery.is-style-cp-pages.cp-feature-first .wp-block-image:first-child { grid-column: span 2; grid-row: span 2; }
.wp-block-gallery.is-style-cp-pages figcaption { display: none; }

/* Scrolling gallery (marquee) */
.wp-block-gallery.is-style-cp-marquee, .wp-block-gallery.is-style-cp-marquee-reverse { --gap: 10px; display: block !important; overflow-x: clip; overflow-y: visible; padding: 44px 0; margin: 0 !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wp-block-gallery.is-style-cp-marquee + .wp-block-gallery.is-style-cp-marquee-reverse { margin-top: -36px !important; }
.wp-block-gallery.is-style-cp-marquee:not(.is-ready), .wp-block-gallery.is-style-cp-marquee-reverse:not(.is-ready) { display: flex !important; gap: var(--gap); overflow-x: auto; }
.cp-track { display: flex; gap: var(--gap); width: max-content; animation: cp-marquee 60s linear infinite; }
.is-style-cp-marquee-reverse .cp-track { animation-direction: reverse; animation-duration: 70s; }
.is-ready:hover .cp-track, .is-ready:focus-within .cp-track { animation-play-state: paused; }
@keyframes cp-marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.wp-block-gallery.is-style-cp-marquee .wp-block-image, .wp-block-gallery.is-style-cp-marquee-reverse .wp-block-image { flex: 0 0 auto; width: clamp(250px, 25vw, 360px) !important; aspect-ratio: 1 / 1; margin: 0 !important; border-radius: 16px; overflow: hidden; position: relative; background: #fff; display: grid !important; place-items: center; transition: transform .45s var(--cp-ease), box-shadow .45s, opacity .35s; }
.wp-block-gallery.is-style-cp-marquee .wp-block-image img, .wp-block-gallery.is-style-cp-marquee-reverse .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0; }
.wp-block-gallery .wp-block-image.cp-logo-tile img { width: auto !important; height: auto !important; max-width: 70%; max-height: 62%; object-fit: contain !important; }
.is-ready:hover .wp-block-image { opacity: .5; }
.is-ready .wp-block-image:hover { opacity: 1; transform: scale(1.18); z-index: 5; box-shadow: 0 34px 70px -28px rgba(47,47,49,.55); }
.is-ready .wp-block-image figcaption { opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.is-ready .wp-block-image:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) {
	.wp-block-gallery.is-style-cp-marquee, .wp-block-gallery.is-style-cp-marquee-reverse { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding: 6px 24px; scrollbar-width: none; }
	.wp-block-gallery.is-style-cp-marquee + .wp-block-gallery.is-style-cp-marquee-reverse { margin-top: 0 !important; }
	.cp-track { animation: none; }
	.cp-track [aria-hidden="true"] { display: none !important; }
	.wp-block-gallery.is-style-cp-marquee .wp-block-image, .wp-block-gallery.is-style-cp-marquee-reverse .wp-block-image { width: 72vw !important; scroll-snap-align: center; }
	.is-ready .wp-block-image figcaption { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .cp-track { animation: none; } .wp-block-gallery.is-style-cp-marquee, .wp-block-gallery.is-style-cp-marquee-reverse { overflow-x: auto; } }

/* Tilted print photo */
.wp-block-image.is-style-cp-tilt img { box-shadow: 0 24px 48px -28px rgba(47,47,49,.45); transform: rotate(-2deg); transition: transform .5s var(--cp-ease); }
.wp-block-image.is-style-cp-tilt:hover img { transform: rotate(0) translateY(-4px); }
.cp-photo-pair { position: relative; padding-bottom: 28%; }
.cp-photo-pair > .wp-block-image { margin: 0; }
.cp-photo-pair > .wp-block-image:first-child img { width: 72%; aspect-ratio: 9 / 11; object-fit: cover; box-shadow: 0 24px 48px -28px rgba(47,47,49,.45); }
.cp-photo-pair > .wp-block-image:nth-child(2) { position: absolute; right: 0; bottom: 0; width: 56%; }
.cp-photo-pair > .wp-block-image:nth-child(2) img { aspect-ratio: 9 / 11; object-fit: cover; border: 8px solid #fff; box-shadow: 0 24px 48px -28px rgba(47,47,49,.45); }
.cp-docs > .wp-block-image { margin: 0; }
.cp-docs { position: relative; padding: 0 0 12% 10% !important; }
.cp-docs > .wp-block-image:first-child img { width: 88%; border-radius: 6px; box-shadow: 0 30px 60px -28px rgba(47,47,49,.55); }
.cp-docs > .wp-block-image:nth-child(2) { position: absolute; right: 0; bottom: 0; width: 60%; transform: rotate(4deg); transition: transform .5s var(--cp-ease); }
.cp-docs > .wp-block-image:nth-child(2) img { border-radius: 6px; box-shadow: 0 30px 60px -28px rgba(47,47,49,.55); }
.cp-docs:hover > .wp-block-image:nth-child(2) { transform: rotate(1deg) translateY(-6px); }

/* About photo badge */
.cp-badge-photo { position: relative; }
.cp-badge-photo .wp-block-image img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; }
.cp-badge { position: absolute !important; right: -18px; bottom: 36px; background: #fff; border-radius: 18px; padding: 16px 20px !important; box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); margin: 0 !important; }
.cp-badge p { font: 700 14px/1.3 var(--wp--preset--font-family--display); color: var(--cp-ink); margin: 0; }
.cp-badge .wp-block-image img { width: 34px; aspect-ratio: auto; border-radius: 0; }
@media (max-width: 781px) { .cp-badge { right: 12px; } }

/* Stats ("At a glance") */
.cp-stats > .wp-block-group { background: #fff; border-radius: var(--cp-radius); padding: 28px 24px; }
.cp-stats p:not(.is-style-cp-stat) { font: 700 16px/1.35 var(--wp--preset--font-family--display); color: var(--cp-ink); margin-top: 6px; }

/* Contact cards with icons */
.cp-contact-card { position: relative; }
.cp-contact-card::before { content: ""; width: 48px; height: 48px; border-radius: 50%; background-color: var(--cp-wash); background-position: center; background-repeat: no-repeat; background-size: 22px; display: block; margin-bottom: 4px; }
.cp-ic-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F7A12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.cp-ic-pin::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F7A12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.cp-ic-social::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F7A12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1'/%3E%3C/svg%3E"); }
.cp-ic-phone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F7A12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.cp-contact-card .cp-big, .cp-contact-card .cp-big a { font: 700 18px/1.35 var(--wp--preset--font-family--display); color: var(--cp-ink); word-break: break-word; }
.cp-contact-card .cp-big a:hover { color: var(--cp-green-deep); }

/* ---------- Insights ---------- */
.cp-post-card { background: #fff; border-radius: 28px; overflow: hidden; transition: transform .35s var(--cp-ease), box-shadow .35s; }
.cp-post-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(47,47,49,.45); }
.cp-post-card .wp-block-post-featured-image { margin: 0; height: 100%; }
.cp-post-card .wp-block-post-featured-image img { height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; transition: transform .6s var(--cp-ease); }
.cp-post-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.cp-post-card .wp-block-post-title a { color: inherit; }
.cp-post-card:hover .wp-block-post-title { color: var(--cp-green-deep); }
.cp-post-card .wp-block-post-terms a { background: var(--cp-wash); color: var(--cp-green-deep); padding: 7px 12px; border-radius: 20px; font: 600 13px/1 var(--wp--preset--font-family--display); }
.cp-article-meta .wp-block-post-terms a { background: var(--cp-wash); color: var(--cp-green-deep); padding: 7px 12px; border-radius: 20px; }
.cp-article .wp-block-post-featured-image img { aspect-ratio: 21 / 9; object-fit: cover; border-radius: 28px; }
@media (max-width: 720px) { .cp-article .wp-block-post-featured-image img { aspect-ratio: 4 / 3; } }
.cp-prose { font-size: 18px; line-height: 1.75; }
.cp-prose > * + * { margin-top: 1.1em; }
.cp-prose h2 { font-size: clamp(26px, 2.6vw, 32px); margin-top: 2em; scroll-margin-top: 110px; }
.cp-toc { position: sticky; top: 120px; display: grid; gap: 14px; }
.cp-toc-title { font: 800 15px/1.2 var(--wp--preset--font-family--display); color: var(--cp-ink); margin: 0; }
.cp-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-left: 2px solid var(--cp-line); }
.cp-toc a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--wp--preset--color--text); font-size: 14px; line-height: 1.4; transition: color .2s, border-color .2s; }
.cp-toc a:hover { color: var(--cp-green-deep); border-left-color: var(--cp-green); }
.cp-toc-col { position: sticky; top: 120px; }
@media (max-width: 1040px) { .cp-toc-col { display: none; } }
.cp-author { border-radius: 22px; }
.cp-author .wp-block-image img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }

/* ---------- Footer ---------- */
.cp-footer { font-size: 15px; }
.cp-footer .wp-block-site-logo img { height: 80px; width: auto; }
.cp-footer a { color: var(--wp--preset--color--text); }
.cp-footer a:hover { color: var(--cp-green-deep); }
.cp-footer .wp-block-navigation { font-family: var(--wp--preset--font-family--body); font-size: 15px; font-weight: 400; }
.cp-footer h3 { font-size: 15px; }
.cp-legal { color: var(--cp-muted); font-size: 14px; }
.cp-legal a { color: var(--cp-green-deep); }


/* ---------- Section rhythm & layout helpers (used by the patterns) ---------- */
.cp-section { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.cp-section.cp-section-flush { padding-top: 0; }
.cp-section.cp-section-tight { padding-top: clamp(28px, 3vw, 40px); padding-bottom: 0; }
.cp-section > * + * { margin-block-start: clamp(32px, 4vw, 56px); }
.cp-section-head { margin-bottom: 0 !important; }
.cp-section-head > .wp-block-column:last-child p { max-width: 46ch; }
.wp-block-columns.cp-gap-xl { gap: clamp(40px, 6vw, 88px) !important; }
.cp-gap-l.is-layout-grid { gap: 28px !important; }
.cp-gap-m.is-layout-grid { gap: 20px !important; }
.cp-stack-l > * + * { margin-block-start: clamp(28px, 4vw, 48px) !important; }
.cp-right { justify-content: flex-end; }
@media (max-width: 781px) { .cp-right { justify-content: flex-start; } }
.cp-square img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.cp-doc img { aspect-ratio: 1400 / 989; object-fit: cover; width: 100%; border-radius: 8px; }
.cp-ideal { font-size: 15px; color: var(--cp-muted); border-left: 3px solid var(--cp-green); padding-left: 16px; }
.cp-overflow { overflow-x: clip; }
.cp-dark { color: #CFCFD3; }
.cp-dark :where(h1, h2, h3, h4) { color: #fff; }
.cp-dark .is-style-cp-outline-word { opacity: .45; }
.cp-facts > .wp-block-group { border-top: 3px solid var(--cp-green); padding-top: 14px; font-size: 15px; }
.cp-facts > .wp-block-group > * { margin: 0; }
.cp-facts strong { font: 800 20px/1.2 var(--wp--preset--font-family--display); color: var(--cp-ink); }
.cp-hero-copy > * + * { margin-block-start: 26px; }
.is-style-cp-mosaic-row { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px !important; }
.is-style-cp-mosaic-row .wp-block-image { width: auto !important; margin: 0 !important; border-radius: 18px; overflow: hidden; }
.is-style-cp-mosaic-row .wp-block-image img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover !important; border-radius: 0; transition: transform .6s var(--cp-ease); }
.is-style-cp-mosaic-row .wp-block-image:hover img { transform: scale(1.05); }
@media (max-width: 720px) { .is-style-cp-mosaic-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; } .cp-facts.is-layout-grid { grid-template-columns: 1fr !important; } }
.cp-author { gap: 18px !important; padding: 24px; margin-top: 3em; }
.cp-author .wp-block-image { margin: 0; flex: none; }
.cp-author p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
	.is-style-cp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wp-block-gallery.is-style-cp-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.wp-block-gallery.is-style-cp-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.is-style-cp-steps { grid-template-columns: 1fr; gap: 28px; }
	.is-style-cp-ticks { grid-template-columns: 1fr; }
	.wp-block-gallery.is-style-cp-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; }
	.wp-block-gallery.is-style-cp-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
	.wp-block-gallery.is-style-cp-showcase figcaption { opacity: 1; transform: none; font-size: 11px; }
	.wp-block-gallery.is-style-cp-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px !important; }
	.wp-block-gallery.is-style-cp-mosaic .wp-block-image:nth-child(n) { grid-column: auto; grid-row: auto; }
	.wp-block-gallery.is-style-cp-mosaic .wp-block-image:nth-child(6n+1), .wp-block-gallery.is-style-cp-mosaic .wp-block-image:nth-child(6n) { grid-column: 1 / 3; }
	.wp-block-gallery.is-style-cp-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; }
	.wp-block-gallery.is-style-cp-pages.cp-feature-first .wp-block-image:first-child { grid-column: 1 / 3; grid-row: auto; }
	.cp-docs { padding: 0 0 14% 4% !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Grids stack on smaller screens */
@media (min-width: 721px) and (max-width: 1040px) { .cp-section .is-layout-grid:not(.cp-stats):not(.cp-facts) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 720px) {
	.cp-section .is-layout-grid:not(.cp-stats) { grid-template-columns: minmax(0, 1fr) !important; }
	.cp-stats.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
}
.cp-home-hero .wp-block-cover__inner-container, .cp-about-hero .wp-block-cover__inner-container { box-sizing: border-box; }
@media (max-width: 781px) { .cp-home-hero .wp-block-cover__inner-container, .cp-about-hero .wp-block-cover__inner-container { width: 100%; } }
/* Launch panel: keep the big word and heading inside the panel */
.wp-block-columns.is-style-cp-launch .is-style-cp-outline-word { font-size: clamp(56px, 7vw, 110px) !important; }
.wp-block-columns.is-style-cp-launch h2 { font-size: clamp(26px, 2.6vw, 36px); }
.wp-block-columns.is-style-cp-launch > .wp-block-column:last-child { min-width: 0; overflow: hidden; }
/* Facts under the homepage intro */
.cp-facts strong { font-size: 17px; }
.cp-facts p { font-size: 14px; }
