/* ==========================================================================
   Peak Strategies — theme styles
   Light, rounded, technical. Colours, fonts and sizes come from theme.json
   (var(--wp--preset--*)); the accent colour can be changed in the Customizer.
   ========================================================================== */

:root {
	--ink: var(--wp--preset--color--ink, #0b1621);
	--navy: var(--wp--preset--color--navy, #13283a);
	--accent: var(--wp--preset--color--accent, #00a3c4);
	--accent-soft: var(--wp--preset--color--accent-soft, #e3f5f9);
	--accent-deep: color-mix(in srgb, var(--accent) 72%, #00222c);
	--slate: var(--wp--preset--color--slate, #4a5b6c);
	--steel: var(--wp--preset--color--steel, #8a99a8);
	--silver: var(--wp--preset--color--silver, #d6d9dc);
	--mist: var(--wp--preset--color--mist, #eef3f6);
	--line: #e1e8ee;
	--line-dark: rgba(255, 255, 255, 0.14);
	--font-heading: var(--wp--preset--font-family--heading);
	--font-body: var(--wp--preset--font-family--body);
	--font-mono: var(--wp--preset--font-family--mono, ui-monospace, Menlo, Consolas, monospace);
	--wide: var(--wp--style--global--wide-size, 1240px);
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--inset: clamp(0.5rem, 1.4vw, 1.25rem);
	/* Widest a rounded panel / footer / banner photo gets; beyond this the page shows white either side. */
	--panel-max: calc(var(--wide) + 2 * clamp(2rem, 8vw, 9rem));
	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: clamp(20px, 2.6vw, 32px);
	--header-h: 88px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--shadow: 0 1px 2px rgba(11, 22, 33, 0.04), 0 12px 32px -12px rgba(11, 22, 33, 0.12);
	--shadow-lg: 0 2px 4px rgba(11, 22, 33, 0.04), 0 30px 60px -20px rgba(11, 22, 33, 0.22);
	--dots: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent) 1.2px, transparent 1.6px);
	--peak-adminbar: 0px;
}
.admin-bar { --peak-adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --peak-adminbar: 46px; } }

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	font-feature-settings: "ss01", "cv11";
}

img, svg, video { max-width: 100%; height: auto; }
a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: color 0.2s; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; margin-block: 0 0.55em; }
p { text-wrap: pretty; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000; border-radius: 999px;
	background: var(--ink); color: #fff; padding: 0.75rem 1.25rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.site-main:focus { outline: none; }

/* ---------- Logo ---------- */
.site-logo {
	display: inline-flex; align-items: center; gap: 0.65rem;
	color: var(--navy); text-decoration: none; flex-shrink: 0;
}
.site-logo:hover { color: var(--accent); }
.peak-mark { width: 36px; height: auto; display: block; transition: color 0.2s; }
.site-logo__word {
	display: flex; flex-direction: column;
	font-family: var(--font-heading); font-weight: 800;
	line-height: 1; letter-spacing: 0.02em; color: var(--ink);
}
.site-logo__word span:first-child { font-size: 1.02rem; letter-spacing: 0.12em; }
.site-logo__word span:last-child { font-size: 0.66rem; letter-spacing: 0.215em; color: var(--steel); font-weight: 700; margin-top: 0.2rem; }
.site-logo--custom img { max-height: 44px; width: auto; display: block; }

/* ---------- Header: floating capsule ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	padding: 12px var(--inset);
	pointer-events: none;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner {
	pointer-events: auto;
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
	min-height: 64px; padding: 0 8px 0 22px;
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	position: relative; isolation: isolate;
	border: 1px solid var(--line); border-radius: 999px;
	transition: box-shadow 0.3s, border-color 0.3s;
}
/* Frosted fill lives on a pseudo-element: backdrop-filter on the bar itself would trap the fixed mobile menu inside it. */
.site-header__inner::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.site-header.is-scrolled .site-header__inner { box-shadow: var(--shadow-lg); border-color: transparent; }
.site-nav { display: flex; align-items: center; gap: 0.75rem; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.1rem; }
.primary-nav li { position: relative; display: flex; align-items: center; }
.primary-nav a {
	display: block; padding: 0.55rem 0.9rem; border-radius: 999px;
	color: var(--ink); text-decoration: none;
	font-family: var(--font-heading); font-size: 0.93rem; font-weight: 600;
	transition: background-color 0.2s, color 0.2s;
}
.primary-nav > .menu > li > a:hover { background: var(--mist); }
.primary-nav > .menu > li.current-menu-item > a,
.primary-nav > .menu > li.current-menu-ancestor > a,
.primary-nav > .menu > li.current-page-ancestor > a { background: var(--accent-soft); color: var(--accent-deep); }
.primary-nav .menu-item-has-children > a { padding-right: 0.35rem; }
.submenu-toggle {
	background: none; border: 0; color: var(--steel); cursor: pointer;
	padding: 0.4rem 0.5rem 0.4rem 0.2rem; display: inline-flex;
}
.submenu-toggle svg { width: 10px; transition: transform 0.25s; }
.submenu-open > .submenu-toggle svg { transform: rotate(180deg); }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 0.6rem;
	position: absolute; top: calc(100% + 0.9rem); left: 50%; width: min(560px, 80vw);
	display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
	transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.primary-nav li:hover > .sub-menu,
.primary-nav li.submenu-open > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.primary-nav .sub-menu li { display: block; }
.primary-nav .sub-menu a { padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; }
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item > a { background: var(--mist); color: var(--accent-deep); }
.header-cta.wp-element-button { padding: 0.8rem 1.35rem; font-size: 0.9rem; white-space: nowrap; text-decoration: none; }
.header-phone {
	display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
	padding: 0.55rem 0.9rem; border-radius: 999px;
	color: var(--ink); text-decoration: none;
	font-family: var(--font-heading); font-size: 0.93rem; font-weight: 600;
	transition: background-color 0.2s, color 0.2s;
}
.header-phone svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent-deep); }
.header-phone:hover { background: var(--mist); color: var(--accent-deep); }
/* Narrow desktops: icon only, so the menu never wraps. */
@media (min-width: 1081px) and (max-width: 1320px) {
	.header-phone { padding: 0.7rem; }
	.header-phone__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.header-phone svg { width: 18px; height: 18px; }
}

.nav-toggle {
	display: none; background: var(--ink); border: 0; color: #fff; border-radius: 999px;
	width: 48px; height: 48px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle__bars span {
	position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
	transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-open .nav-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
	.site-header__inner { padding: 0 8px 0 18px; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; z-index: 99;
		top: calc(var(--header-h) + var(--peak-adminbar) - 4px); left: var(--inset); right: var(--inset); bottom: var(--inset);
		background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
		flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.25rem;
		padding: 1rem 1.25rem 1.5rem; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.99);
		transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.primary-nav > .menu > li > a { flex: 1; padding: 1rem 0.25rem; font-size: 1.2rem; font-weight: 700; border-radius: 0; background: none !important; }
	.submenu-toggle { width: 48px; height: 48px; justify-content: center; margin: 0; padding: 0; }
	.submenu-toggle svg { width: 13px; }
	.primary-nav .sub-menu {
		position: static; width: 100%; box-shadow: none; border: 0; background: var(--mist); border-radius: var(--radius-sm);
		opacity: 1; visibility: visible; transform: none; display: none; padding: 0.4rem; margin-bottom: 0.9rem;
		grid-template-columns: 1fr;
	}
	.primary-nav li:hover > .sub-menu { display: none; }
	.primary-nav li.submenu-open > .sub-menu { display: grid; transform: none; }
	.primary-nav .sub-menu li { border: 0; }
	.primary-nav .sub-menu a { padding: 0.65rem 0.75rem; }
	.primary-nav .sub-menu a:hover { background: #fff; }
	.header-cta.wp-element-button { text-align: center; padding: 1.05rem; font-size: 1rem; }
	.header-phone { justify-content: center; padding: 1rem; border: 1px solid var(--line); font-size: 1.05rem; }
}
@media (max-width: 480px) {
	:root { --header-h: 80px; }
	.site-header { padding-top: 8px; padding-bottom: 8px; }
	.site-header__inner { min-height: 60px; }
	.nav-toggle { width: 44px; height: 44px; }
	.peak-mark { width: 30px; }
	.site-logo__word span:first-child { font-size: 0.92rem; }
	.site-logo__word span:last-child { font-size: 0.6rem; }
}

/* ---------- Mono label helpers ---------- */
.breadcrumbs,
.is-style-eyebrow,
.card-num, .peak-card__num, .peak-card__cat,
.ps-hero-pillars li,
.footer-col__title, .site-footer__bottom { font-family: var(--font-mono); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
	position: relative; isolation: isolate;
	padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
	color: var(--slate);
}
.page-banner.has-image { padding-bottom: 0; }
.page-banner::before {
	content: ""; position: absolute; top: 0; right: max(0px, (100% - var(--panel-max)) / 2); width: min(46vw, 640px); height: 100%; max-height: 420px; z-index: -1;
	background-image: var(--dots); background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%);
	mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%);
}
.page-banner__inner { max-width: var(--wide); margin: 0 auto; }
.page-banner__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: end; }
.page-banner:not(.has-intro) .page-banner__grid { grid-template-columns: 1fr; }
.page-banner__title {
	color: var(--ink); font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0; max-width: 16ch;
}
.page-banner__intro {
	font-size: var(--wp--preset--font-size--large); line-height: 1.6; margin: 0; max-width: 34rem;
	padding-left: 1.25rem; border-left: 2px solid var(--accent);
}
.page-banner__media {
	--mw: min(calc(100% + 2 * (var(--gutter) - var(--inset))), var(--panel-max));
	width: var(--mw); margin: clamp(2rem, 5vw, 3.5rem) 0 0 calc((100% - var(--mw)) / 2);
	border-radius: var(--radius-lg); overflow: hidden; background: var(--mist);
	aspect-ratio: 21 / 8; max-height: 560px;
}
.page-banner__img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) {
	.page-banner__img { animation: peak-settle 1.4s var(--ease) both; }
}
@keyframes peak-settle { from { transform: scale(1.06); } to { transform: none; } }
@media (max-width: 781px) {
	.page-banner__grid { grid-template-columns: 1fr; }
	.page-banner__media { aspect-ratio: 4 / 3; }
}

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0 0 1.75rem; padding: 0; font-size: 0.78rem; }
.breadcrumbs li { color: var(--steel); display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumbs li + li::before { content: "/"; opacity: 0.6; }
.breadcrumbs a { color: var(--slate); text-decoration: none; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--mist); }
.breadcrumbs a:hover { color: var(--accent-deep); background: var(--accent-soft); }
.breadcrumbs [aria-current] { color: var(--accent-deep); }

/* ---------- Content flow ---------- */
.entry-content { padding-bottom: 0; }
.entry-content > :first-child:not(.alignfull) { margin-top: var(--wp--preset--spacing--60); }
.entry-content > :last-child:not(.alignfull) { margin-bottom: var(--wp--preset--spacing--60); }
.entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.entry-content > .alignfull + :not(.alignfull) { margin-top: var(--wp--preset--spacing--60); }
.entry-content > :not(.alignfull) + .alignfull { margin-top: var(--wp--preset--spacing--60); }
:where(.entry-content > .wp-block-group.alignfull) { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }

/* Coloured sections become inset, rounded panels floating on the white page. */
.entry-content > .alignfull.has-background,
.entry-content > .wp-block-cover.alignfull:not(.is-style-hero) {
	--pad: var(--wp--style--root--padding-left, var(--gutter));
	margin-left: calc(var(--pad) * -1 + max(var(--inset), (100% + 2 * var(--pad) - var(--panel-max)) / 2)) !important;
	margin-right: calc(var(--pad) * -1 + max(var(--inset), (100% + 2 * var(--pad) - var(--panel-max)) / 2)) !important;
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.entry-content > .alignfull.has-background + .alignfull.has-background,
.entry-content > .alignfull.has-background + .wp-block-cover.alignfull,
.entry-content > .wp-block-cover.alignfull + .alignfull.has-background,
.entry-content > .alignfull.has-background:first-child { margin-top: var(--inset); }
.entry-content > .alignfull.has-background:last-child,
.entry-content > .wp-block-cover.alignfull:last-child { margin-bottom: var(--inset); }

/* Dark panels */
.has-ink-background-color,
.has-navy-background-color { color: rgba(255, 255, 255, 0.76); }
.has-ink-background-color :is(h1, h2, h3, h4, h5, h6),
.has-navy-background-color :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
.has-ink-background-color strong,
.has-navy-background-color strong { color: #fff; }
.has-ink-background-color a:not(.wp-element-button),
.has-navy-background-color a:not(.wp-element-button) { color: #fff; }
.has-ink-background-color.alignfull,
.has-navy-background-color.alignfull {
	background-image:
		radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 60%),
		radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 70%);
}

/* ---------- Block styles ---------- */
/* Eyebrow: a small mono chip. */
.is-style-eyebrow {
	display: inline-flex; align-items: center; gap: 0.55rem;
	font-size: 0.78rem !important; font-weight: 500; letter-spacing: 0; text-transform: none;
	color: var(--accent-deep); background: var(--accent-soft);
	padding: 0.4rem 0.85rem 0.4rem 0.7rem; border-radius: 999px;
	margin-top: 0 !important; margin-bottom: 1.1rem !important;
}
.is-style-eyebrow::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.has-text-align-center.is-style-eyebrow { display: flex; width: fit-content; margin-left: auto !important; margin-right: auto !important; }
/* Directly inside a full-width section: line up with the section's wide content edge. */
.alignfull.is-layout-constrained > .is-style-eyebrow:not(.has-text-align-center) {
	display: flex; width: fit-content;
	margin-left: max(0px, (100% - var(--wide)) / 2) !important; margin-right: auto !important;
}
:is(.has-ink-background-color, .has-navy-background-color, .wp-block-cover) .is-style-eyebrow { color: #9fe3f0; background: rgba(255, 255, 255, 0.08); }
.is-style-eyebrow + :is(h1, h2, h3) { margin-top: 0 !important; }

.is-style-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.6; color: var(--ink); font-weight: 500; }
.has-ink-background-color .is-style-lead,
.has-navy-background-color .is-style-lead { color: #fff; }

/* Cards: rounded tiles; images sit inset with their own radius. */
.wp-block-group.is-style-card {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: clamp(1.5rem, 3vw, 2rem); height: 100%;
	display: flex; flex-direction: column;
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.wp-block-group.is-style-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.wp-block-group.is-style-card > * { margin-block: 0 0.6rem; }
.wp-block-group.is-style-card > :last-child { margin-bottom: 0; }
.wp-block-group.is-style-card > .wp-block-buttons:last-child { margin-top: auto; padding-top: 0.75rem; }
.wp-block-group.is-style-card h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.wp-block-group.is-style-card:has(> .wp-block-image) { padding: 0.6rem 0.6rem clamp(1.1rem, 2vw, 1.4rem); }
.wp-block-group.is-style-card:has(> .wp-block-image) > :not(.wp-block-image) { padding-inline: clamp(0.6rem, 1.4vw, 0.95rem); }
.wp-block-group.is-style-card .wp-block-image { margin: 0 0 1.2rem !important; overflow: hidden; border-radius: calc(var(--radius) - 6px); }
.wp-block-group.is-style-card .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 0 !important; transition: transform 0.8s var(--ease); }
.wp-block-group.is-style-card:hover .wp-block-image img { transform: scale(1.05); }
.has-mist-background-color .wp-block-group.is-style-card { border-color: transparent; }
.has-ink-background-color .wp-block-group.is-style-card,
.has-navy-background-color .wp-block-group.is-style-card { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); }
.wp-block-columns:has(> .wp-block-column > .is-style-card) { align-items: stretch !important; }
.wp-block-column > .is-style-card:only-child { height: 100%; }

.card-num, .is-style-card .card-num {
	display: inline-flex; align-self: flex-start; align-items: center;
	font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; color: var(--accent-deep);
	background: var(--accent-soft); border-radius: 999px; padding: 0.25rem 0.65rem; margin-bottom: 1rem !important;
}
/* No numbers on photo cards. */
.wp-block-group.is-style-card:has(> .wp-block-image) > .card-num { display: none; }
:is(.has-ink-background-color, .has-navy-background-color) .card-num { background: rgba(255, 255, 255, 0.1); color: #9fe3f0; }

.wp-block-group.is-style-panel {
	background: var(--accent-soft); border-radius: var(--radius);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.has-mist-background-color .wp-block-group.is-style-panel { background: #fff; }
.wp-block-group.is-style-panel > :last-child { margin-bottom: 0; }

/* CTA band: a light, rounded panel with a soft ring motif. */
.wp-block-group.is-style-cta-band {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--accent-soft); border-radius: var(--radius-lg);
	color: var(--slate); padding: clamp(2.25rem, 6vw, 4.5rem);
	margin-block: var(--wp--preset--spacing--50) !important;
}
.wp-block-group.is-style-cta-band:only-child { margin-block: 0 !important; }
.wp-block-group.is-style-cta-band::before,
.wp-block-group.is-style-cta-band::after {
	content: ""; position: absolute; z-index: -1; border-radius: 50%;
	border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.wp-block-group.is-style-cta-band::before { width: 420px; height: 420px; right: -120px; top: -160px; }
.wp-block-group.is-style-cta-band::after { width: 260px; height: 260px; right: -40px; top: -80px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 0; }
.wp-block-group.is-style-cta-band :is(h2, h3) { color: var(--ink); max-width: 20ch; }
.wp-block-group.is-style-cta-band p { max-width: 50ch; }
.wp-block-group.is-style-cta-band a:not(.wp-element-button) { color: var(--ink); }
.wp-block-group.is-style-cta-band .wp-block-buttons { margin-top: 1.75rem; }
.wp-block-group.is-style-cta-band .wp-block-button.is-style-outline > .wp-block-button__link { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }

/* Lists */
ul.is-style-checklist, ol.is-style-checklist { list-style: none; padding: 0; margin-left: 0; }
.is-style-checklist li { position: relative; padding: 0.55rem 0 0.55rem 2.3rem; color: var(--ink); font-weight: 500; }
.is-style-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.6rem; width: 1.55rem; height: 1.55rem; border-radius: 50%;
	background: var(--accent-soft);
}
.is-style-checklist li::after {
	content: ""; position: absolute; left: 0.38rem; top: 0.98rem; width: 0.8rem; height: 0.8rem;
	background: var(--accent-deep);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.2 4.2L17 5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.2 4.2L17 5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.has-ink-background-color .is-style-checklist li,
.has-navy-background-color .is-style-checklist li { color: #fff; }
:is(.has-ink-background-color, .has-navy-background-color) .is-style-checklist li::before { background: rgba(255, 255, 255, 0.1); }
:is(.has-ink-background-color, .has-navy-background-color) .is-style-checklist li::after { background: #9fe3f0; }
@media (min-width: 700px) {
	.is-style-checklist.columns-2,
	.is-style-checklist:has(> li:nth-child(8)) { columns: 2; column-gap: 2.5rem; }
	.is-style-checklist li { break-inside: avoid; }
	.wp-block-column .is-style-checklist { columns: 1; }
}

ul.is-style-tags { list-style: none; padding: 0; margin-left: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.is-style-tags li {
	border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
	padding: 0.6rem 1.1rem; font-weight: 600; font-size: 0.95rem;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.is-style-tags li:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.has-ink-background-color .is-style-tags li,
.has-navy-background-color .is-style-tags li { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: var(--line-dark); }

ol.is-style-steps, ul.is-style-steps {
	list-style: none; padding: 0; margin-left: 0; counter-reset: step;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem;
}
@media (min-width: 782px) {
	:is(ol, ul).is-style-steps:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.is-style-steps li {
	counter-increment: step; position: relative;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.6rem 1.6rem 1.8rem;
}
.is-style-steps li::before {
	content: counter(step, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; color: #fff; background: var(--ink);
	width: 2.4rem; height: 2.4rem; border-radius: 50%; margin-bottom: 1.25rem;
}
.is-style-steps li strong { display: block; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.35rem; }
.has-mist-background-color .is-style-steps li { border-color: transparent; }
.has-ink-background-color .is-style-steps li,
.has-navy-background-color .is-style-steps li { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); }
:is(.has-ink-background-color, .has-navy-background-color) .is-style-steps li::before { background: var(--accent); }
.has-ink-background-color .is-style-steps li strong,
.has-navy-background-color .is-style-steps li strong { color: #fff; }

/* Lifecycle: a dotted track with round numbered stops. */
ol.is-style-lifecycle, ul.is-style-lifecycle {
	list-style: none; padding: 0; margin-left: 0; counter-reset: life;
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
}
.is-style-lifecycle li {
	counter-increment: life; position: relative; padding: 4rem 1rem 0 0;
	font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--ink);
}
.is-style-lifecycle li::before {
	content: counter(life, decimal-leading-zero); position: absolute; top: 0; left: 0; z-index: 1;
	display: flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem; border-radius: 50%;
	font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem;
	background: #fff; color: var(--ink); border: 1.5px solid var(--accent);
}
.is-style-lifecycle li:first-child::before { background: var(--accent); color: #fff; }
.is-style-lifecycle li::after {
	content: ""; position: absolute; top: calc(1.375rem - 1px); left: 3.25rem; right: 0.5rem; height: 2px;
	background-image: linear-gradient(90deg, var(--accent) 50%, transparent 50%); background-size: 10px 2px; opacity: 0.6;
}
.is-style-lifecycle li:last-child::after { display: none; }
.has-ink-background-color .is-style-lifecycle li,
.has-navy-background-color .is-style-lifecycle li { color: #fff; }
:is(.has-ink-background-color, .has-navy-background-color) .is-style-lifecycle li::before { background: rgba(255, 255, 255, 0.06); color: #fff; }
:is(.has-ink-background-color, .has-navy-background-color) .is-style-lifecycle li:first-child::before { background: var(--accent); }
@media (max-width: 900px) {
	ol.is-style-lifecycle, ul.is-style-lifecycle { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
	.is-style-lifecycle li:nth-child(3)::after { display: none; }
}
@media (max-width: 520px) {
	ol.is-style-lifecycle, ul.is-style-lifecycle { grid-template-columns: 1fr; row-gap: 0; }
	.is-style-lifecycle li { padding: 0.7rem 0 1.6rem 4rem; min-height: 4.2rem; }
	.is-style-lifecycle li::after,
	.is-style-lifecycle li:nth-child(3)::after { display: block; top: 3rem; bottom: 0; left: calc(1.375rem - 1px); right: auto; width: 2px; height: auto;
		background-image: linear-gradient(180deg, var(--accent) 50%, transparent 50%); background-size: 2px 10px; }
	.is-style-lifecycle li:last-child::after { display: none; }
}

/* Buttons */
.wp-element-button, .wp-block-button__link { transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s; text-decoration: none; }
.wp-block-button:not(.is-style-arrow) > .wp-block-button__link:hover,
.header-cta.wp-element-button:hover,
.site-footer__cta.wp-element-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--ink); border: 1.5px solid var(--line); padding: calc(0.95rem - 1.5px) calc(1.6rem - 1.5px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
:is(.has-ink-background-color, .has-navy-background-color, .wp-block-cover) .wp-block-button:not(.is-style-outline):not(.is-style-arrow):not(.is-style-light) > .wp-block-button__link { background: var(--accent); color: #fff; }
:is(.has-ink-background-color, .has-navy-background-color, .wp-block-cover) .wp-block-button:not(.is-style-outline):not(.is-style-arrow) > .wp-block-button__link:hover { background: #fff; color: var(--ink); }
:is(.has-ink-background-color, .has-navy-background-color, .wp-block-cover) .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
:is(.has-ink-background-color, .has-navy-background-color, .wp-block-cover) .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--ink); border-color: #fff; }
.wp-block-button.is-style-light > .wp-block-button__link { background: #fff; color: var(--ink); }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: var(--accent); color: #fff; }

/* Arrow link: label + round arrow chip. */
.wp-block-button.is-style-arrow > .wp-block-button__link {
	background: none; color: var(--ink); padding: 0.2rem 0; display: inline-flex; align-items: center; gap: 0.75rem;
}
.wp-block-button.is-style-arrow > .wp-block-button__link::after {
	content: "→"; display: inline-flex; align-items: center; justify-content: center;
	width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep);
	font-size: 1rem; transition: transform 0.3s var(--ease), background-color 0.25s, color 0.25s;
}
.wp-block-button.is-style-arrow > .wp-block-button__link:hover { color: var(--accent-deep); }
.wp-block-button.is-style-arrow > .wp-block-button__link:hover::after { transform: translateX(4px); background: var(--accent); color: #fff; }
:is(.has-ink-background-color, .has-navy-background-color, .wp-block-cover) .wp-block-button.is-style-arrow > .wp-block-button__link { color: #fff; }
:is(.has-ink-background-color, .has-navy-background-color, .wp-block-cover) .wp-block-button.is-style-arrow > .wp-block-button__link::after { background: rgba(255, 255, 255, 0.12); color: #fff; }
.icon-arrow { width: 18px; height: 12px; flex-shrink: 0; }

/* Images */
.wp-block-image img { display: block; }
.entry-content .wp-block-image:not(.is-style-rounded) img { border-radius: var(--radius); }
.wp-block-image.is-style-accent-frame { position: relative; isolation: isolate; margin-right: 22px; margin-bottom: 22px; }
.wp-block-image.is-style-accent-frame::before {
	content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1; border-radius: var(--radius-lg);
	background-image: var(--dots); background-size: 14px 14px;
}
.wp-block-image.is-style-accent-frame img { width: 100%; object-fit: cover; border-radius: var(--radius-lg) !important; }
:is(.has-ink-background-color, .has-navy-background-color) .wp-block-image.is-style-accent-frame::before { background-image: radial-gradient(circle, rgba(159, 227, 240, 0.45) 1.2px, transparent 1.6px); }
.wp-block-column > .wp-block-image:only-child img,
.wp-block-image.is-style-accent-frame img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.wp-block-image.ps-landscape img { aspect-ratio: 3 / 2 !important; }

/* Columns: "divided" now reads as a row of soft tiles. */
.wp-block-columns.is-style-divided { gap: 1rem !important; }
.wp-block-columns.is-style-divided > .wp-block-column {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.75rem;
}
.has-mist-background-color .wp-block-columns.is-style-divided > .wp-block-column { border-color: transparent; }
:is(.has-ink-background-color, .has-navy-background-color) .wp-block-columns.is-style-divided > .wp-block-column { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); }
.wp-block-columns.is-style-divided h3 { font-size: 1.15rem; letter-spacing: -0.015em; }

/* Media + text split */
.ps-split { align-items: center !important; gap: clamp(2rem, 6vw, 5rem) !important; }

/* Numbered pillars */
.ps-pillars { counter-reset: pillar; }
.ps-pillars h3 { font-size: 1.12rem !important; letter-spacing: -0.015em !important; margin-bottom: 0.4rem; overflow-wrap: normal; word-break: normal; }
.ps-pillars h3::before {
	counter-increment: pillar; content: counter(pillar, decimal-leading-zero);
	display: flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
	font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0;
	color: var(--accent-deep); background: var(--accent-soft); margin-bottom: 1.1rem;
}
:is(.has-ink-background-color, .has-navy-background-color) .ps-pillars h3::before { background: rgba(255, 255, 255, 0.1); color: #9fe3f0; }
.ps-pillars p { font-size: 0.95rem; margin: 0; }

/* Section heading row */
.ps-section-head { margin-bottom: clamp(2rem, 4vw, 3rem) !important; }
.ps-section-head h2 { margin-bottom: 0; max-width: 20ch; }
@media (min-width: 782px) {
	.ps-section-head > .wp-block-column:last-child > .wp-block-buttons:only-child { justify-content: flex-end; }
}

/* ---------- Dynamic grids (services / projects / listings) ---------- */
.peak-grid {
	display: grid; gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.listing { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: var(--wp--preset--spacing--60) var(--gutter); }
.peak-card {
	position: relative; display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem;
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.peak-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.peak-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist); border-radius: calc(var(--radius) - 6px); }
.peak-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.peak-card:hover .peak-card__media img { transform: scale(1.05); }
.peak-card__body { padding: 1.25rem 0.9rem 1rem; display: flex; flex-direction: column; flex: 1; }
.peak-card__num, .peak-card__cat {
	align-self: flex-start; font-weight: 500; font-size: 0.75rem; color: var(--accent-deep);
	background: var(--accent-soft); border-radius: 999px; padding: 0.25rem 0.65rem; margin-bottom: 0.9rem;
}
.peak-card:has(.peak-card__media) .peak-card__num { display: none; }
.peak-card__title { font-size: 1.28rem; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.peak-card__title a { color: var(--ink); text-decoration: none; }
.peak-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.peak-card__title a:focus-visible { outline: none; }
.peak-card:has(.peak-card__title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.peak-card__text { margin: 0 0 1.25rem; font-size: 0.97rem; }
.peak-card__more {
	margin-top: auto; display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink);
	font-family: var(--font-heading); font-weight: 700; font-size: 0.92rem;
}
.peak-card:hover .peak-card__more { color: var(--accent-deep); }
.peak-card .icon-arrow {
	box-sizing: content-box; width: 14px; height: 9px; padding: 0.6rem 0.55rem; border-radius: 50%;
	background: var(--accent-soft); color: var(--accent-deep);
	transition: transform 0.3s var(--ease), background-color 0.25s, color 0.25s;
}
.peak-card:hover .icon-arrow { transform: translateX(4px); background: var(--accent); color: #fff; }
.has-mist-background-color .peak-card { border-color: transparent; }
.has-ink-background-color .peak-card,
.has-navy-background-color .peak-card { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); }
.has-ink-background-color .peak-card__title a,
.has-navy-background-color .peak-card__title a,
.has-ink-background-color .peak-card__more { color: #fff; }
.peak-notice { padding: 1rem 1.25rem; border: 1px dashed var(--steel); border-radius: var(--radius-sm); background: var(--mist); font-size: 0.9rem; }
.peak-projects-heading { margin-top: var(--wp--preset--spacing--60); }

.nav-links { display: flex; gap: 0.4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.nav-links .page-numbers { min-width: 2.75rem; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: center; }
.nav-links .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { max-width: 640px; }

.search-form { display: flex; gap: 0.5rem; max-width: 520px; margin-bottom: 1.5rem; }
.search-form input { flex: 1; }

/* ---------- Forms ---------- */
.peak-form input[type="text"], .peak-form input[type="email"], .peak-form input[type="tel"],
.peak-form select, .peak-form textarea, .search-form input {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	background: #fff; border: 1px solid #d3dde5; border-radius: var(--radius-sm); padding: 0.9rem 1.05rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form input { border-radius: 999px; padding-inline: 1.25rem; }
.peak-form select {
	appearance: none; padding-right: 2.5rem;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230b1621' stroke-width='1.6'/%3E%3C/svg%3E") right 1rem center / 12px no-repeat;
}
.peak-form :is(input, select, textarea):focus, .search-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.peak-form textarea { resize: vertical; min-height: 160px; }
.peak-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; }
.peak-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .peak-form__grid { grid-template-columns: 1fr; } }
.peak-field label { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.45rem; }
.peak-field .req { color: var(--accent); }
.peak-field__hint { font-size: 0.82rem; color: var(--steel); margin: 0.4rem 0 0; font-weight: 400; }
.peak-field--file input[type="file"] {
	width: 100%; padding: 1.25rem; border: 1.5px dashed #c9d3dc; border-radius: var(--radius-sm); background: var(--mist); font: inherit; font-size: 0.9rem; cursor: pointer;
}
.peak-field--file input[type="file"]::file-selector-button {
	font: inherit; font-weight: 700; border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 0.55rem 1.1rem; margin-right: 1rem; cursor: pointer;
}
.peak-check { display: flex !important; gap: 0.75rem; align-items: flex-start; font-family: var(--font-body) !important; font-weight: 400 !important; color: var(--slate) !important; font-size: 0.92rem !important; }
.peak-check input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--accent); flex-shrink: 0; }
.peak-form__actions { margin-top: 1.75rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.peak-form__submit { display: inline-flex; align-items: center; gap: 0.75rem; border: 0; cursor: pointer; }
.peak-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.peak-form-msg { padding: 1.25rem 1.5rem; margin-bottom: 1.75rem; border-radius: var(--radius-sm); border-left: 4px solid; }
.peak-form-msg:focus { outline: none; }
.peak-form-msg strong { display: block; font-family: var(--font-heading); color: var(--ink); margin-bottom: 0.25rem; }
.peak-form-msg p, .peak-form-msg ul { margin: 0; }
.peak-form-msg--ok { border-color: #1a9c6b; background: #eaf7f1; }
.peak-form-msg--error { border-color: #c8372d; background: #fcefee; }

/* Company details */
.peak-details { font-size: 1rem; }
.peak-details__name { font-family: var(--font-heading); font-weight: 800; letter-spacing: 0.04em; color: var(--ink); margin: 0 0 0.75rem; }
.peak-details__address { font-style: normal; line-height: 1.7; margin-bottom: 1.5rem; }
.peak-details__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.peak-details__list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--mist); }
.peak-details__list span { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--steel); }
.peak-details__list a { color: var(--ink); font-weight: 600; text-align: right; }
.has-ink-background-color .peak-details__name,
.has-ink-background-color .peak-details__list a { color: #fff; }
.has-ink-background-color .peak-details__list li { background: rgba(255, 255, 255, 0.06); }

/* Contact layout */
.ps-contact { align-items: flex-start !important; gap: clamp(2rem, 5vw, 4.5rem) !important; }
.ps-contact .is-style-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
@media (max-width: 600px) {
	.ps-contact .wp-block-group.is-style-card { padding: 1.5rem 1.25rem; }
}

/* Panel helpers */
.wp-block-column .is-style-checklist.is-style-checklist,
.is-style-panel .is-style-checklist.is-style-checklist { columns: 1; }
.is-style-panel h3 { font-size: 1.2rem; letter-spacing: -0.015em; margin-bottom: 0.5rem; }

/* Glass panel (on images) */
.wp-block-group.is-style-glass {
	position: relative; padding: clamp(1.5rem, 2.5vw, 2.25rem); border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
	box-shadow: var(--shadow-lg); color: var(--slate);
}
.wp-block-group.is-style-glass > * { margin-block: 0; }
.ps-glass-label { font-family: var(--font-mono); font-size: 0.75rem !important; color: var(--steel); margin-bottom: 0.75rem !important; }
ul.is-style-disciplines { list-style: none; padding: 0; margin: 0; counter-reset: disc; }
.is-style-disciplines li { counter-increment: disc; border-bottom: 1px solid var(--line); }
.is-style-disciplines li a {
	display: flex; align-items: center; gap: 1rem; padding: 0.95rem 0.25rem;
	color: var(--ink); text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem;
	transition: padding 0.3s var(--ease), color 0.2s;
}
.is-style-disciplines li a::before { content: counter(disc, decimal-leading-zero); font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; color: var(--accent-deep); min-width: 1.5rem; }
.is-style-disciplines li a::after { content: "→"; margin-left: auto; color: var(--steel); transition: transform 0.3s var(--ease), color 0.2s; }
.is-style-disciplines li a:hover { padding-left: 0.75rem; color: var(--accent-deep); }
.is-style-disciplines li a:hover::after { transform: translateX(4px); color: var(--accent); }
:is(.has-ink-background-color, .has-navy-background-color) .is-style-disciplines li { border-color: var(--line-dark); }
:is(.has-ink-background-color, .has-navy-background-color) .is-style-disciplines li a { color: #fff; }
.ps-glass-foot { margin-top: 1.25rem !important; font-size: 0.85rem; }
.ps-glass-foot a { color: var(--accent-deep) !important; font-weight: 700; text-decoration: none; }
.ps-glass-foot a::after { content: " →"; }

/* ==========================================================================
   Home hero: light split. Text on the left over a dot grid, photo in a
   rounded frame on the right, the four disciplines as chips.
   ========================================================================== */
.wp-block-cover.is-style-hero {
	--hero-pad: clamp(1.5rem, 4vw, 3.5rem);
	/* Photo spans from just right of centre to the wide container's edge (plus a little), never to the screen edge. */
	--hero-img-right: max(var(--inset), (100% - var(--wide)) / 2 - 2rem);
	--hero-img-width: calc(50% - 1.5rem - var(--hero-img-right));
	position: relative; overflow: visible; background: #fff; color: var(--slate);
	min-height: clamp(560px, calc(100svh - var(--header-h) - var(--peak-adminbar) - 1.5rem), 860px) !important;
	padding: var(--hero-pad) var(--gutter) !important;
	align-items: center;
}
.wp-block-cover.is-style-hero .wp-block-cover__background { display: none; }
.wp-block-cover.is-style-hero::after { display: none; }
/* Dot grid behind the text column */
.wp-block-cover.is-style-hero::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	top: 0; bottom: 0; left: max(0px, (100% - var(--panel-max)) / 2); right: 50%;
	background-image: var(--dots); background-size: 24px 24px;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 20% 40%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 20% 40%, #000 0%, transparent 75%);
}
.wp-block-cover.is-style-hero .wp-block-cover__image-background {
	left: auto !important; right: var(--hero-img-right) !important; top: 0 !important; bottom: 0 !important;
	width: var(--hero-img-width) !important; height: 100% !important;
	border-radius: var(--radius-lg); z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
	.wp-block-cover.is-style-hero .wp-block-cover__image-background { animation: peak-hero-in 1.2s var(--ease) both; }
	@keyframes peak-hero-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
}
.wp-block-cover.is-style-hero .wp-block-cover__inner-container {
	position: static; width: 100%; max-width: var(--wide); margin: 0 auto; z-index: 2; color: var(--slate);
}
.wp-block-cover.is-style-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; }
.wp-block-cover.is-style-hero .ps-hero-main,
.wp-block-cover.is-style-hero .ps-hero-pillars {
	position: relative; z-index: 2;
	/* % of the centred inner container: the text column always ends 3rem left of the page centre. */
	max-width: min(620px, calc(50% - 3rem)) !important;
}
.ps-hero-main > * { margin-block: 0; }
.wp-block-cover.is-style-hero h1 {
	color: var(--ink); font-size: clamp(2.2rem, min(4.1vw, 6.2vh), 3.9rem); font-weight: 800;
	line-height: 1.03; letter-spacing: -0.045em; max-width: 16ch; margin: 0 0 clamp(1rem, 2.6vh, 1.6rem);
}
.wp-block-cover.is-style-hero h1 .accent, .accent { color: var(--accent); }
.wp-block-cover.is-style-hero .ps-hero-lead {
	font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.7; color: var(--slate); max-width: 33rem;
	margin-bottom: clamp(1.25rem, 3.4vh, 2.1rem);
}
.wp-block-cover.is-style-hero .wp-block-buttons { gap: 1rem 1.75rem; align-items: center; }
.wp-block-cover.is-style-hero .wp-block-button:not(.is-style-arrow):not(.is-style-outline) > .wp-block-button__link { background: var(--ink); color: #fff; padding: 1.05rem 1.8rem; }
.wp-block-cover.is-style-hero .wp-block-button:not(.is-style-arrow):not(.is-style-outline) > .wp-block-button__link:hover { background: var(--accent); }
.wp-block-cover.is-style-hero .wp-block-button.is-style-arrow > .wp-block-button__link { color: var(--ink); }
.wp-block-cover.is-style-hero .wp-block-button.is-style-arrow > .wp-block-button__link::after { background: var(--accent-soft); color: var(--accent-deep); }
.wp-block-cover.is-style-hero .wp-block-button.is-style-arrow > .wp-block-button__link:hover::after { background: var(--accent); color: #fff; }

/* Discipline chips */
ul.ps-hero-pillars {
	list-style: none; margin: clamp(1.75rem, 5vh, 3rem) 0 0 !important; padding: clamp(1.25rem, 3vh, 1.75rem) 0 0;
	display: flex; flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid var(--line);
}
.ps-hero-pillars li {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.45rem 0.9rem 0.45rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
	font-size: 0.8rem; font-weight: 500; color: var(--ink);
}
.ps-hero-pillars li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }


@media (max-width: 781px) {
	.wp-block-cover.is-style-hero {
		min-height: 0 !important; flex-direction: column; align-items: stretch;
		padding: var(--inset) var(--inset) clamp(2rem, 8vw, 3rem) !important;
	}
	.wp-block-cover.is-style-hero::before { width: 100%; top: 40%; }
	.wp-block-cover.is-style-hero .wp-block-cover__image-background {
		position: relative !important; inset: auto !important; right: auto !important;
		width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; margin-bottom: 1.75rem;
	}
	.wp-block-cover.is-style-hero .wp-block-cover__inner-container { padding: 0 calc(var(--gutter) - var(--inset)); position: relative; }
	.wp-block-cover.is-style-hero .ps-hero-main,
	.wp-block-cover.is-style-hero .ps-hero-pillars { max-width: none !important; }
	.wp-block-cover.is-style-hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
}

/* Image CTA (cover): rounded panel with the photo softly visible */
.wp-block-cover.ps-cta-cover { padding: clamp(3rem, 8vw, 6rem) var(--gutter) !important; }
.wp-block-cover.ps-cta-cover .wp-block-cover__background {
	background: linear-gradient(110deg, rgba(11, 22, 33, 0.94) 0%, rgba(11, 22, 33, 0.8) 50%, color-mix(in srgb, var(--accent) 45%, rgba(11, 22, 33, 0.5)) 100%) !important;
	opacity: 1 !important;
}
.wp-block-cover.ps-cta-cover .wp-block-cover__inner-container { max-width: var(--wide); margin: 0 auto; }
.wp-block-cover.ps-cta-cover .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; }
.wp-block-cover.ps-cta-cover h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 15ch; letter-spacing: -0.04em; }
.wp-block-cover.ps-cta-cover .is-style-lead { max-width: 36rem; }
.wp-block-cover:not(.is-style-hero) .wp-block-cover__inner-container { max-width: var(--wide); }
.wp-block-cover:not(.is-style-hero) :is(h1, h2, h3) { color: #fff; }

/* ---------- Footer: rounded light panel ---------- */
.site-footer {
	margin: var(--wp--preset--spacing--50) max(var(--inset), (100% - var(--panel-max)) / 2) var(--inset);
	background: var(--mist); color: var(--slate); font-size: 0.95rem;
	border-radius: var(--radius-lg); overflow: hidden; position: relative; isolation: isolate;
}
.site-footer::before {
	content: ""; position: absolute; z-index: -1; right: -6%; top: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 65%);
}
.site-footer__lead,
.site-footer__inner,
.site-footer__bottom { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.site-footer__lead {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
	padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.site-footer__tagline {
	margin: 0; max-width: 18ch;
	font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.04em; color: var(--ink);
}
.site-footer__cta.wp-element-button { padding: 1.05rem 1.8rem; text-decoration: none; }
.site-footer__inner {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 2.5rem 4rem;
	padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: 2.5rem;
}
.site-footer__inner::before {
	content: ""; grid-column: 1 / -1; height: 1px; background: color-mix(in srgb, var(--ink) 10%, transparent); margin-top: calc(-1 * clamp(2rem, 5vw, 3rem));
}
.site-footer .site-logo { margin-bottom: 1.25rem; }
.site-footer__about { max-width: 36ch; margin: 0 0 1.25rem; }
.site-footer__address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.site-footer__address strong { color: var(--ink); font-weight: 800; letter-spacing: 0.03em; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.site-footer__contact a { display: inline-block; padding: 0.4rem 0.85rem; border-radius: 999px; background: #fff; }
.site-footer a:not(.wp-element-button) { color: var(--ink); text-decoration: none; }
.site-footer a:not(.wp-element-button):hover { color: var(--accent-deep); }
.site-footer__menus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-col__title { color: var(--steel); font-size: 0.75rem; font-weight: 500; letter-spacing: 0; text-transform: none; margin: 0 0 1rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 0.55rem; }
.footer-menu a { font-weight: 600; }
.site-footer__bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem;
	padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: 0.75rem; color: var(--steel);
}
.site-footer__bottom p { margin: 0; }
@media (max-width: 900px) {
	.site-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.site-footer__menus { grid-template-columns: 1fr 1fr; }
	.footer-col:first-child { grid-column: 1 / -1; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive helpers ---------- */
@media (max-width: 781px) {
	.wp-block-columns { gap: 1.5rem !important; }
	.wp-block-columns.is-style-divided { gap: 0.75rem !important; }
	.ps-hide-mobile { display: none !important; }
	.wp-block-image.is-style-accent-frame img { aspect-ratio: 4 / 3; }
}

/* Multi-column rows wrap on tablets */
@media (min-width: 782px) and (max-width: 1100px) {
	.wp-block-columns.ps-wrap { flex-wrap: wrap !important; }
	.wp-block-columns.ps-wrap > .wp-block-column { flex-basis: calc(50% - 1.5rem) !important; flex-grow: 0; }
	.wp-block-columns.ps-pillars.is-style-divided > .wp-block-column { flex-basis: calc(33.33% - 0.7rem) !important; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .nav-toggle, .peak-form-wrap { display: none !important; }
	.page-banner::before { display: none; }
}
