/* ==========================================================================
   PANTHER ISLAND - Global styles
   Loaded on the front end and (scoped) in the block editor.
   Block-specific styles live next to each block in template-parts/block/{slug}/{slug}.css

   1. Tokens
   2. Base + typography
   3. Layout utilities
   4. Components (buttons, notch, chips, color fills, placeholders, cards)
   5. Header
   6. Footer
   7. Forms (Gravity Forms)
   8. Posts / archives
   9. Motion
   ========================================================================== */


/* ==========================================================================
   1. Tokens  (design comps are 1728px wide - fluid values scale from there)
   ========================================================================== */
:root {
	/* Brand palette - keep in sync with pi_palette() + theme.json */
	--pi-navy: #0a2536;
	--pi-ink: #0a2536;
	--pi-footer: #022536;
	--pi-teal: #2c4f62;
	--pi-slate: #597380;
	--pi-fog: #acb9c1;
	--pi-olive: #748654;
	--pi-sage: #809983;
	--pi-sky: #98bbd7;
	--pi-mist: #d5e2ea;
	--pi-mist-soft: #eef3f6;
	--pi-muted: #84939a;
	--pi-white: #fff;

	--pi-font-sans: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pi-font-serif: 'Aleo', Georgia, 'Times New Roman', serif;

	/* Type scale - measured from the comps. Sizes (except the hero) are reached by a 1440px
	   laptop and hold from there, so copy never drops below the designed size. */
	--pi-fs-display: clamp(3.25rem, 10.94vw, 13.125rem); /* 189 page hero headline */
	--pi-fs-h1: clamp(2.75rem, 5.97vw, 5.375rem);        /* 86  "By Way Of Water", "Developer Tools" */
	--pi-fs-h2: clamp(2.25rem, 3.33vw, 3rem);            /* 48  "Let The Good Times Flow" */
	--pi-fs-h3: clamp(1.5rem, 2.22vw, 2rem);             /* 32  card titles, "News and Updates" */
	--pi-fs-h4: clamp(1.25rem, 1.8vw, 1.625rem);         /* 26  serif titles (offices, contacts) */
	--pi-fs-statement: clamp(1.75rem, 3.33vw, 3rem);     /* 48 */
	--pi-fs-lead: clamp(1.375rem, 2.22vw, 2rem);         /* 32  sans intro copy */
	--pi-fs-body: clamp(1.25rem, 1.67vw, 1.5rem);        /* 24  serif body copy */
	--pi-fs-ui: clamp(1.125rem, 1.53vw, 1.375rem);       /* 22  nav, buttons, labels */
	--pi-fs-small: clamp(1rem, 1.39vw, 1.25rem);         /* 20  tags, legal */
	--pi-fw-sans: 450;                                   /* all Urbanist text */

	/* Spacing */
	--pi-gutter: 20px;
	--pi-gap: 20px;
	--pi-space: 100px;                                  /* between sections */
	--pi-radius: 10px;
	--pi-notch: 50px;
	--pi-max: 1920px;

	--pi-ease: cubic-bezier(.22, .61, .36, 1);
	--pi-ease-spring: cubic-bezier(.34, 1.4, .64, 1);

	/* Shared hovers */
	--pi-tilt: translateY(-3px) rotate(-6deg);          /* Live / Work icons, social icons */
	--pi-float: translateY(-4px);                       /* buttons + news cards */
	--pi-float-shadow: 0 16px 34px -12px rgba(10, 37, 54, .5);
}


/* ==========================================================================
   2. Base + typography
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--pi-white);
	color: var(--pi-ink);
	font-family: var(--pi-font-serif);
	font-weight: 400;
	font-size: var(--pi-fs-body);
	line-height: 1.25;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	line-height: 1.08;
	letter-spacing: 0;
	margin: 0;
	color: inherit;
}

h1 { font-size: var(--pi-fs-h1); }
h2 { font-size: var(--pi-fs-h2); }
h3 { font-size: var(--pi-fs-h3); }
h4 { font-size: var(--pi-fs-h4); }

p {
	margin: 0 0 1em;
	font-size: inherit;
	line-height: inherit;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: color .2s, opacity .2s;
}

a:hover {
	color: inherit;
}

img,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

:focus-visible {
	outline: 2px solid var(--pi-sky);
	outline-offset: 3px;
}

.screen-reader-text,
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pi-skip {
	position: absolute;
	left: var(--pi-gutter);
	top: -100px;
	z-index: 200;
	background: var(--pi-navy);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--pi-radius);
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
}

.pi-skip:focus {
	top: 10px;
	color: #fff;
}

/* Type helpers */
.pi-sans { font-family: var(--pi-font-sans); font-weight: var(--pi-fw-sans); }
.pi-serif { font-family: var(--pi-font-serif); font-weight: 400; }
.pi-display { font-family: var(--pi-font-sans); font-weight: var(--pi-fw-sans); font-size: var(--pi-fs-display); line-height: .88; letter-spacing: -0.005em; text-transform: uppercase; }
.pi-h1 { font-size: var(--pi-fs-h1); line-height: 1; }
.pi-h2 { font-size: var(--pi-fs-h2); }
.pi-h3 { font-size: var(--pi-fs-h3); }
.pi-lead { font-family: var(--pi-font-sans); font-weight: var(--pi-fw-sans); font-size: var(--pi-fs-lead); line-height: 1.19; }
.pi-body { font-family: var(--pi-font-serif); font-weight: 400; font-size: var(--pi-fs-body); line-height: 1.25; }
.pi-label { font-family: var(--pi-font-sans); font-weight: var(--pi-fw-sans); font-size: var(--pi-fs-ui); line-height: 1.2; }

.pi-rich > * + * { margin-top: 1em; }
.pi-rich ul { list-style: none; padding: 0; margin: 0; }
.pi-rich ul li::before { content: '\2013\00a0'; }
.pi-rich a { text-decoration: underline; }


/* ==========================================================================
   3. Layout utilities
   ========================================================================== */
/* flow-root keeps the last section's bottom margin inside <main>, so the clip edge
   (which stops decorative overflow like the watermark from extending the page) sits
   exactly on the footer's top edge - no visible cut line. */
.pi-main {
	display: flow-root;
	overflow: clip;
}

/* Templates that don't end in a spaced block (archives, search, posts) still get room above the footer.
   Empty paragraphs left in the editor are skipped, so they can't double the gap. */
.pi-main > p:empty {
	display: none;
}

.pi-main:not(:has(> .pi-block:last-child, > .pi-block:has(~ p:empty):not(:has(~ :not(p:empty))))) {
	padding-bottom: var(--pi-space);
}

.pi-wrap {
	width: 100%;
	max-width: var(--pi-max);
	margin-inline: auto;
	padding-inline: var(--pi-gutter);
}

.pi-block {
	margin-block: var(--pi-space);
}

.pi-block.pi-block--flush-top { margin-top: 0; }
.pi-block.pi-block--flush-bottom { margin-bottom: 0; }

/* 4-column design grid (cards are exactly one quarter wide in the comps) */
.pi-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--pi-gap);
}

.pi-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--pi-gap);
}


/* ==========================================================================
   4. Components
   ========================================================================== */

/* ---- Color fills (editor-selectable palette) ---- */
.pi-bg-navy  { --pi-fill: var(--pi-navy);  --pi-on: #fff; }
.pi-bg-teal  { --pi-fill: var(--pi-teal);  --pi-on: #fff; }
.pi-bg-slate { --pi-fill: var(--pi-slate); --pi-on: #fff; }
.pi-bg-olive { --pi-fill: var(--pi-olive); --pi-on: #fff; }
.pi-bg-sage  { --pi-fill: var(--pi-sage);  --pi-on: #fff; }
.pi-bg-sky   { --pi-fill: var(--pi-sky);   --pi-on: #fff; }
.pi-bg-mist  { --pi-fill: var(--pi-mist);  --pi-on: var(--pi-navy); }

[class*="pi-bg-"] {
	background-color: var(--pi-fill);
	color: var(--pi-on);
}

/* Light text on dark fills blooms under macOS's default smoothing */
[class*="pi-bg-"]:not(.pi-bg-mist),
.pi-btn,
.pi-footer,
.pi-news-feed__panel {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---- Buttons ---- */
.pi-btn,
.gform_wrapper button[type="submit"],
.gform_wrapper .gform_page_footer button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-width: min(265px, 100%);
	padding: 15px 20px;
	border: 0;
	border-radius: var(--pi-radius);
	background: var(--pi-navy);
	color: #fff;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-ui);
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
}

.pi-btn .pi-icon,
.gform_wrapper button[type="submit"] .pi-icon {
	width: 1em;
	height: 1em;
	flex: none;
	transition: transform .55s var(--pi-ease-spring);
}

/* Float up (hover or keyboard focus); every arrow turns the way the timeline's does */
.pi-btn:focus-visible {
	color: #fff;
	transform: var(--pi-float);
	box-shadow: var(--pi-float-shadow);
}

.pi-btn:focus-visible .pi-icon {
	transform: rotate(180deg);
}

@media (hover: hover) {
	.pi-btn:hover,
	.gform_wrapper button[type="submit"]:hover {
		color: #fff;
		transform: var(--pi-float);
		box-shadow: var(--pi-float-shadow);
	}

	.pi-btn:hover .pi-icon,
	.gform_wrapper button[type="submit"]:hover .pi-icon {
		transform: rotate(180deg);
	}

	.pi-btn--light:hover { color: var(--pi-navy); }
}

.pi-btn--light { background: #fff; color: var(--pi-navy); }
.pi-btn--light:focus-visible { color: var(--pi-navy); }

/* ---- Icons ---- */
.pi-icon {
	display: inline-flex;
	width: 1em;
	height: 1em;
}

.pi-icon svg {
	width: 100%;
	height: 100%;
}

/* ---- Notch ("push-in"): the white corner tab used across the design - one rounded
   inner corner, the two corners where it meets the card edge stay pointed ----
   Usage: <span class="pi-notch pi-notch--br">...</span> inside a position:relative card.
   Set --pi-notch-bg to the color behind the card (defaults to white). */
.pi-notch {
	--r: var(--pi-radius);
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--pi-notch);
	height: var(--pi-notch);
	background: var(--pi-notch-bg, #fff);
	color: var(--pi-navy);
}

.pi-notch .pi-icon {
	width: 32px;
	height: 32px;
	transition: transform .55s var(--pi-ease-spring);
}

/* bottom-right */
.pi-notch--br { right: 0; bottom: 0; border-top-left-radius: var(--r); }

/* bottom-left */
.pi-notch--bl { left: 0; bottom: 0; border-top-right-radius: var(--r); }

/* top-right */
.pi-notch--tr { right: 0; top: 0; border-bottom-left-radius: var(--r); }

/* top-left */
.pi-notch--tl { left: 0; top: 0; border-bottom-right-radius: var(--r); }

/* Text tab variant (e.g. "Phase I Rendering") */
.pi-notch--tag {
	width: auto;
	height: auto;
	padding: 15px 20px;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-small);
	color: var(--pi-muted);
	line-height: 1;
}

/* Arrow hover - anything with .pi-hover-arrow turns its notch arrow */
.pi-hover-arrow:focus-visible .pi-notch .pi-icon,
.pi-hover-arrow:focus-within .pi-notch .pi-icon {
	transform: rotate(180deg);
}

@media (hover: hover) {
	.pi-hover-arrow:hover .pi-notch .pi-icon {
		transform: rotate(180deg);
	}
}

/* ---- Icon chip (rounded outline square holding an uploaded icon) ---- */
.pi-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(44px, 3.3vw, 58px);
	height: clamp(44px, 3.3vw, 58px);
	border: 2px solid currentColor;
	border-radius: var(--pi-radius);
	transition: transform .4s var(--pi-ease-spring), background-color .3s;
}

.pi-chip img {
	width: 52%;
	height: 52%;
	object-fit: contain;
}

/* white icons on colored tiles: uploaded icons are recolored to match the chip */
[class*="pi-bg-"]:not(.pi-bg-mist) .pi-chip img {
	filter: brightness(0) invert(1);
}

.pi-chip__ph {
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: 22px;
	line-height: 1;
	opacity: .55;
}

/* ---- Image placeholders (until real assets are chosen in ACF) ---- */
.pi-ph {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 120px;
	background-color: #f1f4f6;
	background-image:
		linear-gradient(45deg, #e6ebee 25%, transparent 25%, transparent 75%, #e6ebee 75%),
		linear-gradient(45deg, #e6ebee 25%, transparent 25%, transparent 75%, #e6ebee 75%);
	background-size: 32px 32px;
	background-position: 0 0, 16px 16px;
	color: var(--pi-slate);
	overflow: hidden;
}

.pi-ph__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 14px;
	border-radius: var(--pi-radius);
	background: rgba(255, 255, 255, .85);
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
}

.pi-ph__label { font-weight: var(--pi-fw-sans); }
.pi-ph__hint { opacity: .75; font-size: 12px; }

/* ---- Media frame (rounded image box) ---- */
.pi-media {
	position: relative;
	overflow: hidden;
	border-radius: var(--pi-radius);
	background: var(--pi-mist-soft);
}

.pi-media > .pi-ph {
	position: absolute;
	inset: 0;
}

.pi-media > img,
.pi-media > .pi-img-edit > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pi-img-edit {
	display: contents;
}

/* ---- Social icons ---- */
.pi-social {
	display: flex;
	gap: clamp(8px, .7vw, 12px);
}

.pi-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 2px solid currentColor;
	border-radius: var(--pi-radius);
	color: inherit;
	transition: transform .4s var(--pi-ease-spring);
}

.pi-social__link .pi-icon {
	width: 64%;
	height: 64%;
}

.pi-social__link:hover,
.pi-social__link:focus-visible {
	color: inherit;
	transform: var(--pi-tilt);
}

/* ---- Notices (editor only) ---- */
.pi-notice {
	padding: 14px 18px;
	border: 1px dashed var(--pi-slate);
	border-radius: var(--pi-radius);
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: 15px;
	color: var(--pi-slate);
	background: var(--pi-mist-soft);
}


/* ==========================================================================
   5. Header
   ========================================================================== */
/* Sticky header: condenses after scrolling, slides away on scroll down, returns on scroll up
   (state classes set in scripts.js). No transform/filter at rest so the fixed mobile menu
   inside it stays relative to the viewport. */
.pi-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	box-shadow: 0 1px 0 rgba(10, 37, 54, 0);
	transition: transform .45s var(--pi-ease), box-shadow .3s;
}

body.admin-bar .pi-header {
	top: 32px;
}

.pi-header.is-scrolled {
	box-shadow: 0 1px 0 rgba(10, 37, 54, .08), 0 10px 30px -18px rgba(10, 37, 54, .35);
}

.pi-header.is-hidden {
	transform: translateY(-100%);
}

body.admin-bar .pi-header.is-hidden {
	transform: translateY(calc(-100% - 32px));
}

.pi-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	max-width: var(--pi-max);
	margin-inline: auto;
	padding: 20px var(--pi-gutter);
	min-height: 100px;
	transition: min-height .35s var(--pi-ease), padding .35s var(--pi-ease);
}

.pi-header.is-scrolled .pi-header__inner {
	min-height: 72px;
	padding-block: 10px;
}

.pi-header__logo {
	transition: width .35s var(--pi-ease), height .35s var(--pi-ease);
}

.pi-header.is-scrolled .pi-header__logo {
	width: clamp(42px, 2.8vw, 48px);
	height: clamp(42px, 2.8vw, 48px);
}

/* Anchor links land below the header */
html {
	scroll-padding-top: 90px;
}

.pi-header__logo {
	justify-self: start;
	display: inline-flex;
	width: clamp(48px, 3.5vw, 60px);
	height: clamp(48px, 3.5vw, 60px);
}

.pi-header__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pi-header__logo-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: conic-gradient(from 200deg, var(--pi-fog), var(--pi-teal), var(--pi-fog));
	color: #fff;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.pi-nav__list {
	display: flex;
	gap: clamp(24px, 2.65vw, 46px);
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-ui);
}

.pi-nav__list a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	color: var(--pi-navy);
	text-decoration: none;
}

.pi-nav__list a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.5px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s var(--pi-ease);
}

.pi-nav__list a:hover::after,
.pi-nav__list .current-menu-item > a::after,
.pi-nav__list .current_page_item > a::after,
.pi-nav__list .current-page-ancestor > a::after,
.pi-nav__list .current-menu-parent > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.pi-header__meta {
	justify-self: end;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-ui);
	line-height: 1.1;
	color: #000;
	font-variant-numeric: tabular-nums;
	min-height: 2.2em;
}

.pi-header__temp:empty::before {
	content: '\00a0';
	display: inline-block;
	min-width: 2.2em; /* hold space until the temperature loads */
}

/* ==========================================================================
   5b. Mobile menu (< 992px)
   A navy sheet floats up from the bottom; links rise in a springy cascade.
   The "+" button is fixed (stays put while scrolling) and morphs into the
   site's diagonal arrow (pointing back up) when the menu is open.
   ========================================================================== */
.pi-menu-toggle,
.pi-mobile-menu {
	display: none;
}

@media (max-width: 991.98px) {

	/* ---- Floating "+" button (bottom-right) ----
	   Opening: it rides up with the sheet and lands in the sheet's top-right corner
	   as the arrow (per the menu comp); closing carries it back down. */
	.pi-menu-toggle {
		--size: 52px;
		--gap-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
		--panel-top: 78px;
		position: fixed;
		right: var(--pi-gutter);
		bottom: var(--gap-bottom);
		z-index: 70;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: var(--size);
		height: var(--size);
		padding: 0;
		border: 0;
		border-radius: 9px;
		background: var(--pi-navy);
		color: #fff;
		box-shadow: 0 10px 28px -10px rgba(10, 37, 54, .55), 0 2px 6px rgba(10, 37, 54, .18);
		cursor: pointer;
		transition:
			transform .45s cubic-bezier(.55, 0, .75, .2),
			background-color .35s .1s,
			color .35s .1s,
			box-shadow .35s .1s;
		-webkit-tap-highlight-color: transparent;
	}

	.pi-menu-toggle:hover {
		background: var(--pi-teal);
	}

	/* Over dark areas (footer, navy panels) the button flips to white so it never disappears.
	   .is-on-dark is set by scripts.js > initFabContrast(). */
	body:not(.pi-menu-open) .pi-menu-toggle.is-on-dark {
		background: #fff;
		color: var(--pi-navy);
		box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .25);
	}

	body:not(.pi-menu-open) .pi-menu-toggle.is-on-dark:hover {
		background: var(--pi-mist);
	}

	.pi-menu-toggle:active .pi-morph {
		transform: scale(.88);
	}

	/* Open: travel from the bottom of the screen to 16px inside the sheet's top edge.
	   Uses the same spring as the sheet so they move together. */
	.pi-menu-open .pi-menu-toggle {
		transform: translateY(calc(var(--panel-top) + 16px + var(--size) + var(--gap-bottom) - 100vh));
		transform: translateY(calc(var(--panel-top) + 16px + var(--size) + var(--gap-bottom) - 100dvh));
		background: rgba(10, 37, 54, 0);
		box-shadow: none;
		transition:
			transform .75s cubic-bezier(.16, 1.12, .3, 1),
			background-color .3s,
			box-shadow .3s;
	}

	body.admin-bar .pi-menu-toggle { --panel-top: calc(78px + 46px); }

	/* ---- "+" <-> arrow morph (3 bars in a 24px box) ---- */
	.pi-morph {
		position: relative;
		display: block;
		width: 24px;
		height: 24px;
		transform: scale(1.15);
		transition: transform .25s var(--pi-ease);
	}

	.pi-morph span {
		position: absolute;
		left: 2px;
		top: calc(50% - 1px);
		width: 20px;
		height: 2px;
		background: currentColor;
		transform-origin: 50% 50%;
		transition: transform .55s cubic-bezier(.34, 1.56, .64, 1);
	}

	/* "+" */
	.pi-morph span:nth-child(1) { transform: none; }
	.pi-morph span:nth-child(2) { transform: rotate(90deg); }
	.pi-morph span:nth-child(3) { transform: rotate(45deg) scaleX(0); }

	/* arrow pointing up-left: the site's arrow turned 180deg - full-length arms along the top and left */
	.pi-menu-open .pi-morph span:nth-child(1) { transform: translateY(-10px); transition-delay: .12s; }
	.pi-menu-open .pi-morph span:nth-child(2) { transform: translateX(-10px) rotate(90deg); transition-delay: .18s; }
	.pi-menu-open .pi-morph span:nth-child(3) { transform: rotate(45deg) scaleX(1.414); transition-delay: .05s; }

	.pi-menu-open .pi-morph {
		transform: scale(1.22);
		animation: pi-morph-pop .7s cubic-bezier(.34, 1.56, .64, 1) .05s;
	}

	@keyframes pi-morph-pop {
		0%   { transform: rotate(0) scale(1.15); }
		35%  { transform: rotate(-14deg) scale(.85); }
		100% { transform: rotate(0) scale(1.22); }
	}

	/* ---- Menu container + dimmed page ---- */
	.pi-mobile-menu {
		position: fixed;
		inset: 0;
		z-index: 60;
		display: block;
		visibility: hidden;
		pointer-events: none;
		transition: visibility 0s .5s;
	}

	.pi-menu-open .pi-mobile-menu {
		visibility: visible;
		pointer-events: auto;
		transition: visibility 0s;
	}

	.pi-mobile-menu__backdrop {
		position: absolute;
		inset: 0;
		touch-action: none; /* no scrolling the page through the dimmed area (iOS) */
		background: rgba(10, 37, 54, .42);
		opacity: 0;
		transition: opacity .4s var(--pi-ease);
	}

	.pi-menu-open .pi-mobile-menu__backdrop {
		opacity: 1;
	}

	/* ---- The sheet ---- */
	.pi-mobile-menu__panel {
		position: absolute;
		top: 78px;
		left: 0;
		right: 0;
		bottom: -48px; /* covers the spring overshoot */
		display: flex;
		flex-direction: column;
		padding: 96px var(--pi-gutter) calc(48px + 28px + env(safe-area-inset-bottom, 0px));
		border-radius: 22px 22px 0 0;
		background: var(--pi-navy);
		color: #fff;
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateY(105%);
		transition: transform .45s cubic-bezier(.55, 0, .75, .2);
	}

	.pi-menu-open .pi-mobile-menu__panel {
		transform: none;
		transition: transform .75s cubic-bezier(.16, 1.12, .3, 1);
	}

	body.admin-bar .pi-mobile-menu__panel { top: calc(78px + 46px); }

	/* ---- Links: float up one after another ---- */
	.pi-mobile-menu__list {
		margin: 0;
		padding: 0;
		list-style: none;
		text-align: right;
		font-family: var(--pi-font-sans);
		font-weight: var(--pi-fw-sans);
		font-size: clamp(2.5rem, 11vw, 3.75rem);
		line-height: 1.12;
	}

	.pi-mobile-menu__list li,
	.pi-mobile-menu__info {
		opacity: 0;
		transform: translateY(70px) rotate(4deg);
		transform-origin: 100% 100%;
		transition: opacity .2s, transform .3s var(--pi-ease);
	}

	.pi-menu-open .pi-mobile-menu__list li,
	.pi-menu-open .pi-mobile-menu__info {
		opacity: 1;
		transform: none;
		transition:
			opacity .45s var(--pi-ease) calc(.22s + var(--i, 0) * .075s),
			transform .85s cubic-bezier(.34, 1.56, .64, 1) calc(.22s + var(--i, 0) * .075s);
	}

	.pi-mobile-menu__list a {
		position: relative;
		display: inline-block;
		padding: 2px 0;
		color: #fff;
		text-decoration: none;
		transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .2s;
	}

	.pi-mobile-menu__list a:active {
		transform: scale(.96);
	}

	.pi-mobile-menu__list a::after {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: .08em;
		height: 2px;
		background: currentColor;
		transform: scaleX(0);
		transform-origin: right;
		transition: transform .4s var(--pi-ease);
	}

	.pi-mobile-menu__list .current-menu-item > a::after,
	.pi-mobile-menu__list .current_page_item > a::after,
	.pi-mobile-menu__list a:hover::after,
	.pi-mobile-menu__list a:focus-visible::after {
		transform: scaleX(1);
	}

	.pi-mobile-menu__list a:focus-visible,
	.pi-mobile-menu__info a:focus-visible,
	.pi-menu-open .pi-menu-toggle:focus-visible {
		outline: 2px solid var(--pi-sky);
		outline-offset: 4px;
	}

	/* ---- Contact info at the bottom ---- */
	.pi-mobile-menu__info {
		display: grid;
		gap: 18px;
		margin-top: auto;
		padding-top: 48px;
		transform-origin: 0 100%;
		transform: translateY(70px) rotate(-3deg);
	}

	.pi-mobile-menu__office p {
		margin: 0;
		font-family: var(--pi-font-sans);
		font-weight: var(--pi-fw-sans);
		font-size: 15px;
		line-height: 1.35;
	}

	.pi-mobile-menu__office .pi-mobile-menu__office-title {
		margin-bottom: 8px;
		font-family: var(--pi-font-serif);
		font-weight: 400;
		font-size: 18px;
	}

	.pi-mobile-menu__office a {
		color: #fff;
		text-decoration: none;
	}

	/* Page behind stays put. Lock on <html> only: overflow on <body> would turn it into the
	   sticky header's scroll container and snap the header off-screen while the menu is open. */
	html.pi-menu-lock {
		overflow: hidden;
	}
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.pi-footer {
	margin-top: 0;
	background: var(--pi-footer);
	color: #fff;
	overflow: hidden;
}

.pi-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 40px;
	max-width: var(--pi-max);
	margin-inline: auto;
	padding: 20px var(--pi-gutter) clamp(80px, 9vw, 160px);
}

.pi-footer__offices {
	display: flex;
	flex-wrap: wrap;
	gap: 24px clamp(40px, 4.4vw, 76px);
}

.pi-footer__title {
	margin-bottom: 10px;
	font-family: var(--pi-font-serif);
	font-size: var(--pi-fs-h4);
	font-weight: 400;
}

.pi-footer__office p {
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-ui);
	line-height: 1.15;
}

.pi-footer a {
	color: #fff;
	text-decoration: none;
}

.pi-footer__office a:hover {
	text-decoration: underline;
}

.pi-footer__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 22px;
	text-align: right;
}

.pi-footer__legal {
	font-family: var(--pi-font-serif);
	font-weight: 400;
	font-size: var(--pi-fs-small);
	line-height: 1.15;
	color: #8798a2;
}

.pi-footer__legal a {
	color: inherit;
}

.pi-footer__legal p {
	margin: 0;
}

/* Tablet / desktop: one row under the wordmark - copyright + Privacy Policy on the left,
   credit on the right. (Phones: responsive.css.) */
.pi-footer__legal--bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px 36px;
	max-width: var(--pi-max);
	margin-inline: auto;
	padding: 0 var(--pi-gutter) var(--pi-gutter);
}

.pi-footer__copyright span + span::before {
	content: ' ';
}

@media (min-width: 768px) {
	.pi-footer__legal--bottom .pi-footer__links {
		display: contents;
	}

	/* Tablet / desktop: Privacy Policy sits just before the credit, both on the right */
	.pi-footer__legal--bottom .pi-footer__privacy {
		order: 1;
		margin-left: auto;
	}

	.pi-footer__legal--bottom .pi-footer__credit {
		order: 2;
	}
}


/* Text links that underline from the left on hover, like the main menu */
.pi-underline {
	position: relative;
	display: inline-block;
	text-decoration: none;
}

.pi-underline::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s var(--pi-ease);
}

.pi-underline:hover::after,
.pi-underline:focus-visible::after {
	transform: scaleX(1);
	transform-origin: left;
}

.pi-footer__wordmark {
	max-width: var(--pi-max);
	margin-inline: auto;
	padding: 0 var(--pi-gutter) var(--pi-gutter);
	line-height: 0;
}

.pi-footer__wordmark svg,
.pi-footer__wordmark img {
	display: block;
	width: 100%;
	height: auto;
}

.pi-footer__wordmark-stacked {
	display: none !important;
}



/* ==========================================================================
   7. Forms (Gravity Forms) - mist pill inputs from the comps
   ========================================================================== */
.gform_wrapper {
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
}

.gform_wrapper :is(input, textarea, select, option, button) {
	font-weight: var(--pi-fw-sans);
}

.gform_wrapper .gform_fields {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}

.gform_wrapper .gfield {
	grid-column: span 12;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.gform_wrapper .gfield--width-half { grid-column: span 6; }
.gform_wrapper .gfield--width-third { grid-column: span 4; }
.gform_wrapper .gfield--width-quarter { grid-column: span 3; }

/* Labels stay available to screen readers; placeholders carry the visual label (per design) */
.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label,
.gform_wrapper .gform-field-label--type-sub,
.gform_wrapper .gfield_required {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper select,
.gform_wrapper textarea,
.pi-input {
	width: 100%;
	padding: 15px 20px;
	border: 0;
	border-radius: var(--pi-radius);
	background: var(--pi-mist);
	color: var(--pi-navy);
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-ui);
	line-height: 1;
	box-shadow: none;
	transition: background-color .2s;
	appearance: none;
}

.gform_wrapper textarea {
	display: block;
	height: 200px;
	line-height: 1.2;
	resize: none;
}

.gform_wrapper select {
	padding-right: 60px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 1l22 22M23 1v22H1' fill='none' stroke='%230a2536' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
	background-size: 22px;
	cursor: pointer;
}

/* ---- Branded dropdown: scripts.js > initSelects() swaps single-choice selects for this
   button + list. The real <select> stays in the form (visually hidden) and stays in sync. ---- */
.pi-select {
	position: relative;
}

.pi-select__native {
	position: absolute !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.pi-select__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding: 15px 20px;
	border: 0;
	border-radius: var(--pi-radius);
	background: var(--pi-mist);
	color: var(--pi-navy);
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-ui);
	line-height: 1;
	text-align: left;
	cursor: pointer;
}

.pi-select__button .pi-icon {
	flex: none;
	transition: transform .55s var(--pi-ease-spring);
}

.pi-select.is-open .pi-select__button .pi-icon {
	transform: rotate(180deg);
}

@media (hover: hover) {
	.pi-select__button:hover .pi-icon {
		transform: rotate(180deg);
	}
}

.pi-select__list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	max-height: 340px;
	margin: 0;
	padding: 10px;
	overflow-y: auto;
	list-style: none;
	border-radius: var(--pi-radius);
	background: var(--pi-navy);
	color: #fff;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-ui);
	line-height: 1.1;
	box-shadow: var(--pi-float-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: opacity .2s, transform .35s var(--pi-ease-spring), visibility 0s .2s;
}

.pi-select.is-open .pi-select__list {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .2s, transform .35s var(--pi-ease-spring), visibility 0s;
}

.pi-select__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 20px;
	border-radius: calc(var(--pi-radius) - 3px);
	cursor: pointer;
}

.pi-select__option .pi-icon {
	flex: none;
	width: .9em;
	height: .9em;
	opacity: 0;
}

.pi-select__option.is-active {
	background: var(--pi-teal);
}

.pi-select__option[aria-selected="true"] .pi-icon {
	opacity: 1;
}

.gform_wrapper .gfield_error .pi-select__button {
	background-color: #f6e3df;
	box-shadow: inset 0 0 0 1.5px #c05a49;
}

.gform_wrapper ::placeholder {
	color: #73858f;
	opacity: 1;
}

/* No outline on fields: a slightly lighter fill marks the active one. */
.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus,
.pi-input:focus {
	outline: none;
	background-color: #e2ebf1;
}

/* Opt-in checkboxes (e.g. the newsletter sign-up on the contact form): a navy box that
   gets a white check, beside a navy label. Hover: the label floats up like the buttons,
   the box tilts like the icons and a faint check previews the click. */
.gform_wrapper .gfield--type-checkbox .gfield_checkbox,
.gform_wrapper .gfield--type-consent .ginput_container_consent {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gform_wrapper .gchoice,
.gform_wrapper .ginput_container_consent {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.gform_wrapper .gchoice label,
.gform_wrapper .ginput_container_consent label {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	border-radius: var(--pi-radius);
	background: var(--pi-navy);
	color: #fff;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-ui);
	line-height: 1;
	cursor: pointer;
	user-select: none;
	transition: transform .2s, box-shadow .2s;
}

@media (hover: hover) {
	.gform_wrapper .gchoice:hover label,
	.gform_wrapper .ginput_container_consent:hover label {
		transform: var(--pi-float);
		box-shadow: var(--pi-float-shadow);
	}

	.gform_wrapper .gchoice:hover input[type="checkbox"],
	.gform_wrapper .ginput_container_consent:hover input[type="checkbox"] {
		transform: var(--pi-tilt);
		box-shadow: var(--pi-float-shadow);
	}

	.gform_wrapper .gchoice:hover input[type="checkbox"]:not(:checked)::after,
	.gform_wrapper .ginput_container_consent:hover input[type="checkbox"]:not(:checked)::after {
		opacity: .35;
		transform: translate(-50%, -50%) rotate(45deg) scale(1);
	}
}

.gform_wrapper input[type="checkbox"] {
	position: relative;
	flex: none;
	align-self: stretch;
	width: auto;
	min-height: 52px;
	aspect-ratio: 1;
	margin: 0;
	border: 0;
	border-radius: var(--pi-radius);
	background: var(--pi-navy);
	appearance: none;
	cursor: pointer;
	transition: transform .4s var(--pi-ease-spring), box-shadow .2s;
}

.gform_wrapper input[type="checkbox"]::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 45%;
	width: 9px;
	height: 17px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: translate(-50%, -50%) rotate(45deg) scale(0);
	transition: transform .25s var(--pi-ease-spring), opacity .2s;
}

.gform_wrapper input[type="checkbox"]:checked::after {
	opacity: 1;
	transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.gform_wrapper input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--pi-sky);
	outline-offset: 3px;
}

/* Gravity Forms drops its loader inside the submit button while sending; its own CSS is off,
   so the empty span would just push the arrow out of place. The button dims instead. */
.gform_wrapper .gform-loader,
.gform_wrapper .gform_ajax_spinner {
	display: none !important;
}

.gform_wrapper button.gform-has-spinner {
	opacity: .7;
	cursor: progress;
}

.gform_wrapper .gform_footer,
.gform_wrapper .gform_page_footer {
	display: flex;
	justify-content: flex-end;
	margin-top: calc(var(--pi-gap) * -1 + var(--pi-gap));
	padding: var(--pi-gap) 0 0;
}

.gform_wrapper .gform_validation_errors,
.gform_wrapper .validation_message,
.gform_wrapper .gfield_validation_message {
	margin-top: 6px;
	color: #9b3b2c;
	font-size: 15px;
	background: none;
	border: 0;
	padding: 0;
}

.gform_confirmation_message {
	padding: 24px;
	border-radius: var(--pi-radius);
	background: var(--pi-mist);
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-lead);
	text-align: center;
}

.gform_wrapper .gform_validation_container,
.gform_wrapper .gform_hidden,
.gform_wrapper .gfield--type-honeypot {
	display: none !important;
}

.pi-form-preview {
	pointer-events: none;
}

.pi-search {
	display: flex;
	gap: var(--pi-gap);
	max-width: 640px;
	margin-inline: auto;
}


/* ==========================================================================
   8. Posts / archives
   ========================================================================== */
.pi-archive__header {
	padding-block: clamp(40px, 5vw, 90px) clamp(28px, 3vw, 48px);
}

.pi-archive__title {
	font-size: var(--pi-fs-h1);
}

.pi-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: var(--pi-space);
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
}

.pi-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: var(--pi-radius);
	background: var(--pi-mist);
	text-decoration: none;
}

.pi-pagination .page-numbers.current {
	background: var(--pi-navy);
	color: #fff;
}

.pi-empty {
	padding-block: var(--pi-space);
	text-align: center;
}

.pi-empty h1 {
	font-size: var(--pi-fs-h1);
	margin-bottom: 20px;
}

.pi-empty p {
	margin-bottom: 32px;
}

/* ---- News cards (shared by News Feed / News Grid / archives) ---- */
.pi-news-card__link {
	position: relative;
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.pi-news-card .pi-media,
.pi-news-card__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--pi-radius);
}

.pi-news-card__media img,
.pi-news-card__media .pi-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pi-news-card__link:focus-visible .pi-notch .pi-icon {
	transform: rotate(180deg);
}

@media (hover: hover) {
	.pi-news-card__link:hover .pi-notch .pi-icon {
		transform: rotate(180deg);
	}
}

/* Grid variant (News page) */
.pi-news-card--grid {
	position: relative;
	border-radius: var(--pi-radius);
	background: var(--pi-olive);
	color: #fff;
	overflow: hidden;
	transition: transform .2s;
}

@media (hover: hover) {
	.pi-news-card--grid:hover {
		transform: var(--pi-float);
	}
}

.pi-news-card--grid .pi-news-card__link {
	padding: 15px 15px 15px;
	padding-right: calc(var(--pi-notch) + 10px);
}

.pi-news-card--grid .pi-news-card__media {
	aspect-ratio: 377 / 200;
	margin-right: calc((var(--pi-notch) - 5px) * -1);
	margin-bottom: 18px;
}

.pi-news-card--grid .pi-news-card__date {
	display: block;
	margin-bottom: 6px;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-small);
	color: rgba(255, 255, 255, .55);
}

.pi-news-card--grid .pi-news-card__title {
	font-size: clamp(1.0625rem, 1.27vw, 1.375rem);
	line-height: 1.1;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


/* ==========================================================================
   9. Motion - only the large renderings animate in: they fade while zooming in
   to full size as they scroll into view (scripts.js adds .is-in)
   ========================================================================== */
.pi-js [data-reveal="zoom"] {
	opacity: 0;
	transform: scale(.9);
	transition: opacity 1.1s var(--pi-ease), transform 1.6s var(--pi-ease);
}

.pi-js [data-reveal="zoom"].is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	.pi-js [data-reveal="zoom"] {
		opacity: 1;
		transform: none;
	}
}


/* ==========================================================================
   10. Pill links (Resource Links + Governance documents)
   Same float up as .pi-btn; the arrow turns. Rows without a file/link yet get the same
   hover but keep a default cursor.
   ========================================================================== */
.pi-pill {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 20px;
	border-radius: var(--pi-radius);
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-ui);
	line-height: 1.1;
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}

.pi-pill .pi-icon {
	flex: none;
	width: 1em;
	height: 1em;
	transition: transform .55s var(--pi-ease-spring);
}

a.pi-pill:focus-visible {
	color: var(--pi-on);
	transform: var(--pi-float);
	box-shadow: var(--pi-float-shadow);
}

a.pi-pill:focus-visible .pi-icon {
	transform: rotate(180deg);
}

@media (hover: hover) {
	.pi-pill:not(.is-soon):hover {
		color: var(--pi-on);
		transform: var(--pi-float);
		box-shadow: var(--pi-float-shadow);
	}

	.pi-pill:not(.is-soon):hover .pi-icon {
		transform: rotate(180deg);
	}
}

/* Phones: same inset as the cards around them (contact cards, FAQs) */
@media (max-width: 767.98px) {
	.pi-pill {
		padding-inline: 14px;
	}
}

.pi-pill.is-soon {
	background: color-mix(in srgb, var(--pi-fill) 45%, #fff);
	color: color-mix(in srgb, var(--pi-fill) 75%, #fff);
}

/* ==========================================================================
   11. Contact cards (Governance + Contact Cards blocks)
   ========================================================================== */
.pi-contact-card {
	padding: clamp(14px, 1.16vw, 20px);
	border-radius: var(--pi-radius);
}

.pi-contact-card__title {
	margin-bottom: 6px;
	font-family: var(--pi-font-serif);
	font-size: var(--pi-fs-h4);
	font-weight: 400;
}

.pi-contact-card__details {
	margin: 0;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: var(--pi-fs-ui);
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.pi-contact-card__details a {
	color: inherit;
	text-decoration: none;
}

.pi-contact-card__details a:hover {
	text-decoration: underline;
}


/* ==========================================================================
   12. Watermark (behind newsletter / contact forms)
   ========================================================================== */
/* No stacking context here on purpose: the watermark (z -1) sits behind neighbouring
   sections' cards and the footer, as in the comps. */
.pi-has-watermark {
	position: relative;
}

.pi-watermark {
	position: absolute;
	z-index: -1;
	top: 50%;
	left: 50%;
	width: 100vw;
	max-width: var(--pi-max);
	transform: translate(-50%, -50%);
	color: #f2f6f8;
	pointer-events: none;
}

/* Fallback line art (no watermark uploaded) stays smaller and centered */
.pi-watermark svg {
	display: block;
	width: min(1200px, 92vw);
	height: auto;
	margin-inline: auto;
}

/* Uploaded artwork is used as-is (export it already faded, full page width - e.g. 1728px). */
.pi-watermark img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 767.98px) {
	.pi-watermark {
		display: none;
	}
}


/* ==========================================================================
   13. Form notice (success / error sheet after a form submission)
   Opened by scripts.js > initFormNotice(). Rises like the mobile menu sheet;
   the page behind is dimmed and locked until "Continue".
   ========================================================================== */
.pi-notice-modal {
	position: fixed;
	inset: 0;
	z-index: 90;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s .5s;
}

.pi-notice-modal.is-open {
	visibility: visible;
	pointer-events: auto;
	transition: visibility 0s;
}

.pi-notice-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 37, 54, .45);
	opacity: 0;
	touch-action: none;
	transition: opacity .4s var(--pi-ease);
}

.pi-notice-modal.is-open .pi-notice-modal__backdrop {
	opacity: 1;
}

.pi-notice-modal__sheet {
	--x: -50%;
	position: absolute;
	top: clamp(96px, 27vh, 260px);
	left: 50%;
	bottom: -48px; /* covers the spring overshoot */
	display: flex;
	flex-direction: column;
	width: min(440px, 100%);
	padding: 18px 20px calc(48px + 30px + env(safe-area-inset-bottom, 0px));
	border-radius: 22px 22px 0 0;
	background: var(--pi-navy);
	color: #fff;
	overflow-y: auto;
	transform: translate(var(--x), 105%);
	transition: transform .45s cubic-bezier(.55, 0, .75, .2), background-color 0s .45s;
}

.pi-notice-modal--success .pi-notice-modal__sheet {
	background: var(--pi-olive);
}

.pi-notice-modal.is-open .pi-notice-modal__sheet {
	transform: translate(var(--x), 0);
	transition: transform .75s cubic-bezier(.16, 1.12, .3, 1);
}

.pi-notice-modal__title {
	margin: 0 0 6px;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: clamp(3.75rem, 5.4vw, 5.25rem);
	line-height: .98;
	letter-spacing: -0.015em;
	color: inherit;
}

.pi-notice-modal__text {
	margin: 0;
	max-width: 16em;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: clamp(1.5rem, 2.1vw, 1.9rem);
	line-height: 1.25;
}

/* Title + message float up after the sheet lands */
.pi-notice-modal__title,
.pi-notice-modal__text,
.pi-notice-modal__button {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .2s, transform .3s var(--pi-ease);
}

.pi-notice-modal.is-open .pi-notice-modal__title,
.pi-notice-modal.is-open .pi-notice-modal__text,
.pi-notice-modal.is-open .pi-notice-modal__button {
	opacity: 1;
	transform: none;
	transition: opacity .45s var(--pi-ease) var(--d, .25s), transform .8s cubic-bezier(.34, 1.56, .64, 1) var(--d, .25s);
}

.pi-notice-modal.is-open .pi-notice-modal__text { --d: .33s; }
.pi-notice-modal.is-open .pi-notice-modal__button { --d: .45s; }

.pi-notice-modal__button {
	align-self: flex-end;
	margin-top: auto;
	padding: 15px 20px;
	border: 0;
	border-radius: var(--pi-radius);
	background: #fff;
	color: var(--pi-navy);
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: clamp(1.125rem, 1.3vw, 1.375rem);
	line-height: 1;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
}

@media (hover: hover) {
	.pi-notice-modal__button:hover {
		transform: var(--pi-float);
		box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .5);
	}
}

.pi-notice-modal__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

html.pi-modal-lock {
	overflow: hidden;
}

/* ---- Cookie notice: the same rising sheet in mist, two equal buttons ---- */
.pi-notice-modal--cookie .pi-notice-modal__sheet {
	background: var(--pi-mist);
	color: var(--pi-navy);
}

.pi-notice-modal--cookie .pi-notice-modal__sheet:focus {
	outline: none;
}

.pi-notice-modal--cookie .pi-notice-modal__text {
	max-width: none;
}

.pi-notice-modal--cookie .pi-notice-modal__text a {
	color: inherit;
}

.pi-notice-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
	margin-top: auto;
	padding-top: 24px;
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .2s, transform .3s var(--pi-ease);
}

.pi-notice-modal.is-open .pi-notice-modal__actions {
	--d: .45s;
	opacity: 1;
	transform: none;
	transition: opacity .45s var(--pi-ease) var(--d), transform .8s cubic-bezier(.34, 1.56, .64, 1) var(--d);
}

/* The buttons ride in with their row, then float up on hover like every other button */
.pi-notice-modal__actions .pi-notice-modal__button,
.pi-notice-modal.is-open .pi-notice-modal__actions .pi-notice-modal__button {
	margin-top: 0;
	opacity: 1;
	transform: none;
	transition: transform .2s, box-shadow .2s;
}

@media (hover: hover) {
	.pi-notice-modal.is-open .pi-notice-modal__actions .pi-notice-modal__button:hover {
		transform: var(--pi-float);
		box-shadow: var(--pi-float-shadow);
	}
}

.pi-notice-modal--cookie .pi-notice-modal__button {
	background: var(--pi-navy);
	color: #fff;
}

.pi-notice-modal--cookie .pi-notice-modal__button:focus-visible {
	outline-color: var(--pi-navy);
}


/* Phones: full-width sheet */
@media (max-width: 767.98px) {
	.pi-notice-modal__sheet {
		--x: 0;
		left: 0;
		right: 0;
		width: auto;
		top: clamp(90px, 28vh, 280px);
	}

	.pi-notice-modal__title {
		font-size: clamp(3.5rem, 16vw, 4.5rem);
	}

	.pi-notice-modal__text {
		font-size: clamp(1.4rem, 6.4vw, 1.75rem);
	}
}

/* Inline Gravity Forms confirmation left behind after success */
.gform_confirmation_message:focus {
	outline: none;
}

/* Validation: the notice explains what happened, so the summary is for screen readers only;
   each field keeps its red outline + message (shown under the field). */
.gform_wrapper .gform_validation_errors {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.gform_wrapper .gfield {
	display: flex;
	flex-direction: column;
}

.gform_wrapper .gfield .gfield_validation_message,
.gform_wrapper .gfield .validation_message {
	order: 10;
	margin-top: 6px;
	font-family: var(--pi-font-sans);
	font-weight: var(--pi-fw-sans);
	font-size: 14px;
	color: #b0412e;
}

.gform_wrapper .gfield_error input:not([type="checkbox"]),
.gform_wrapper .gfield_error select,
.gform_wrapper .gfield_error textarea {
	box-shadow: inset 0 0 0 1.5px #c05a49;
	background-color: #f6e3df;
}
