@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500&family=Shantell+Sans:BNCE,INFM,SPAC,wght@30,50,0,350&display=swap");

:root {
	--ink: #272329;
	--muted: #657169;
	--coex-orange: #ff8330;
	--coex-blue: #8b9bc8;
	--coex-brown: #a06f54;
	--paper: rgba(252, 252, 248, 0.96);
	--line: #ddd8d4;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	font-family: "Fredoka", sans-serif;
	background:
		linear-gradient(rgba(17, 29, 23, 0.2), rgba(17, 29, 23, 0.34)),
		url("../img/bg.jpg") center/cover fixed;
	min-height: 100vh;
}

.site-shell {
	width: min(1180px, calc(100% - 48px));
	margin: 15vh auto;
	background: var(--paper);
	box-shadow: 0 30px 90px rgba(10, 22, 16, 0.25);
	padding: 36px 64px 28px;
}

/*
.site-shell::after {
	content: "";
	display: block;
	width: calc(100% + 128px);
	height: 40px;
	margin: 28px -64px -28px;
	background: url("../img/ribbon.png") repeat-x left 100%;
	background-size: auto 40px;
}
*/
.site-header {
	position: relative;
	text-align: center;
}

.header-biodiversa {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 112px;
	height: 46px;
}

.header-biodiversa img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0.55;
	filter: brightness(1.18);
}

.header-biodiversa:hover img,
.header-biodiversa:focus-visible img {
	opacity: 0.75;
}

.logo {
	display: inline-block;
	text-decoration: none;
}

.logo img,
.logo .animated-logo {
	display: block;
	width: 180px;
	height: 180px;
	object-fit: contain;
}

.logo .animated-logo {
	pointer-events: none;
}

.animated-logo-lockup {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 180px;
	height: 180px;
}

.logo .animated-logo-lockup .animated-logo {
	width: 180px;
	height: 142px;
	transform: translate(-8px, 5px);
}

.animated-logo-brand {
	display: block;
	margin-top: -2px;
	color: #2f2925;
	font: 300 28px/1 "Fredoka", sans-serif;
	letter-spacing: -.035em;
}

.site-header hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 23px 0 0;
}

.site-header nav {
	display: flex;
	justify-content: center;
	gap: 44px;
	padding: 17px 0 0;
}

.site-header nav a {
	color: var(--muted);
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	position: relative;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a.active {
	color: var(--coex-blue);
}

.intro {
	max-width: 860px;
	margin: 90px auto 70px;
	text-align: center;
}

.eyebrow {
	margin: 0 0 14px;
	color: var(--coex-brown);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.intro h1 {
	font:
		500 clamp(2.2rem, 4vw, 4rem)/0.91 "Newsreader",
		serif;
	letter-spacing: -0.045em;
	margin: 0;
}

.lead {
	max-width: 720px;
	margin: 34px auto 0;
	color: #444444;
	font:
		300 clamp(1.1rem, 2vw, 1.38rem)/1.55 "Fredoka",
		sans-serif;
}

.intro.subpage {
	margin-bottom: 90px;
}

.section {
	border-top: 1px solid var(--line);
	padding: 76px 0;
}

.section-heading {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 40px;
	align-items: end;
	margin-bottom: 36px;
}

.section-heading h2,
.empty-state h2,
.contact-card h2 {
	font:
		500 clamp(2rem, 4vw, 3rem)/1.05 "Newsreader",
		serif;
	margin: 0;
}

.section-heading>p {
	color: var(--muted);
	line-height: 1.65;
	margin: 0;
}

.map-layout {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	min-height: 520px;
	background: #eef0f6;
	position: relative;
}

.map-layout #map {
	min-height: 520px;
	z-index: 1;
}

.map-layout #map.leaflet-container:focus {
	outline: none;
}

.map-layout #map.leaflet-container:focus-visible {
	outline: 2px solid var(--coex-blue);
	outline-offset: -2px;
}

.hub-detail {
	padding: 36px;
	background: #ffffff;
	box-shadow: inset -1px 1px 2px rgba(0, 0, 0, 0.13);
}

.map-layout.overview #map {
	grid-column: 1 / -1;
}

.hub-detail[hidden] {
	display: none;
}

.hub-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: -12px 0 32px;
	border-bottom: 1px solid var(--line);
}

.hub-tabs button {
	appearance: none;
	border: 0;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	padding: 12px 5px;
	background: transparent;
	color: var(--muted);
	font:
		500 0.8rem/1.2 "Fredoka",
		sans-serif;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition:
		color 0.2s,
		border-color 0.2s;
}

.hub-tabs button:hover,
.hub-tabs button:focus-visible {
	color: var(--coex-brown);
	outline: none;
}

.hub-tabs button.active {
	color: var(--ink);
	border-color: var(--coex-orange);
}

.hub-detail h3 {
	font:
		500 2.1rem/1.1 "Newsreader",
		serif;
	margin: 0;
}

.place {
	color: var(--muted);
	margin: 6px 0 28px;
}

.chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 0.68rem;
	color: var(--muted);
	font-family: "Shantell Sans", cursive;
	font-weight: 350;
	font-variation-settings:
		"wght"350,
		"BNCE"30,
		"INFM"50,
		"SPAC"0;
}

.chart-legend span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.legend-pencil {
	display: block;
	width: 25px;
	height: 10px;
	overflow: visible;
}

.legend-pencil path {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.legend-pencil path:first-child {
	stroke-width: 3.6;
	opacity: 0.3;
	stroke-dasharray: 5 1 8 1.5;
}

.legend-pencil path:last-child {
	stroke-width: 1.15;
	opacity: 0.85;
	stroke-dasharray: 9 1 3 1.5;
}

.chart-legend .human .legend-pencil {
	color: var(--coex-blue);
}

.chart-legend .bear .legend-pencil {
	color: var(--coex-orange);
}

.trend-chart {
	height: 210px;
	margin: 18px 0 22px;
}

.trend-chart svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.hub-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 24px;
}

.hub-stat {
	display: grid;
	min-height: 78px;
	grid-template-rows: auto 1fr;
	padding: 10px 12px 5px 12px;
	border: 1px solid var(--line);
	background: #fafaf6;
	text-align: center;
}

.hub-stat-label {
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	white-space: nowrap;
	text-transform: uppercase;
}

.hub-stat strong {
	display: block;
	align-self: center;
	font: 500 1.1rem/1.1 "Newsreader", serif;
}

.trend-chart .pencil-axis path {
	fill: none;
	stroke: #aeb6ae;
	stroke-linecap: round;
	stroke-linejoin: round;
	mix-blend-mode: multiply;
}

.trend-chart .pencil-axis .axis-wax {
	stroke-width: 3.2;
	opacity: 0.12;
	stroke-dasharray: 8 1.5 3 1;
}

.trend-chart .pencil-axis .axis-stroke {
	stroke-width: 1.15;
	opacity: 0.62;
	stroke-dasharray: 14 1 4 1.8;
	filter: url(#pencil-texture);
}

.trend-chart .pencil-line path {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	mix-blend-mode: multiply;
}

.trend-chart .human-line path {
	stroke: var(--coex-blue);
}

.trend-chart .bear-line path {
	stroke: var(--coex-orange);
}

.trend-chart .pencil-wax {
	stroke-width: 6.5;
	opacity: 0.12;
}

.trend-chart .pencil-stroke {
	stroke-width: 2.35;
	opacity: 0.62;
	filter: url(#pencil-texture);
}

.trend-chart .pencil-light {
	stroke-width: 1.6;
	opacity: 0.34;
}

.trend-chart .pencil-grain {
	stroke-width: 2.8;
	stroke-dasharray: 0.8 1.7 3.5 1.1 7 1.5;
	opacity: 0.3;
}

.trend-chart .pencil-fibre {
	stroke-width: 0.7;
	stroke-dasharray: 13 2 4 1;
	opacity: 0.48;
}

.trend-chart .pencil-fibre-two {
	stroke-dasharray: 2 1 9 2.5;
	opacity: 0.3;
}

.trend-chart text {
	font-family: "Shantell Sans", cursive;
	font-size: 9px;
	font-weight: 350;
	font-variation-settings:
		"wght"350,
		"BNCE"30,
		"INFM"50,
		"SPAC"0;
	fill: #818982;
}

.trend-copy {
	font:
		400 1.05rem/1.5 "Fredoka",
		sans-serif;
}

.data-note {
	font-size: 0.67rem;
	line-height: 1.5;
	color: #7b817c;
	margin-top: 28px;
}

.data-source {
	font-size: 0.67rem;
	line-height: 1.5;
	color: #7b817c;
	margin-top: 10px;
}

.data-source a {
	color: inherit;
	text-underline-offset: 2px;
}

.data-source a:hover,
.data-source a:focus-visible {
	color: var(--coex-brown);
}

.hub-marker {
	background: var(--coex-orange);
	/*border: 3px solid #fff;*/
	border-radius: 50%;
	box-shadow: 0 0 0 3px #fff, 0 2px 12px rgba(0, 0, 0, 0.3);
}

@keyframes hub-marker-pulse {

	0%,
	100% {
		/*border: 3px solid var(--coex-orange);*/
		box-shadow: 0 0 0 3px #fff, inset 0 0 0 0 #fff, 0 2px 12px rgba(0, 0, 0, 0.3);
	}

	50% {
		/*border: 6px solid var(--coex-orange);*/
		box-shadow: 0 0 0 0 #fff, inset 0 0 0 2px #fff, 0 2px 12px rgba(0, 0, 0, 0.3);
	}
}

.map-layout.overview .hub-marker {
	animation: hub-marker-pulse 1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.map-layout.overview .hub-marker {
		animation: none;
	}
}

.leaflet-tooltip.hub-map-label {
	padding: 6px 9px;
	border: 0;
	border-radius: 2px;
	background: rgba(252, 252, 248, 0.94);
	box-shadow: 0 3px 12px rgba(29, 41, 34, 0.16);
	color: var(--ink);
	font:
		500 0.72rem/1.2 "Fredoka",
		sans-serif;
	letter-spacing: 0.025em;
	cursor: pointer;
}

.leaflet-tooltip-top.hub-map-label:before {
	border-top-color: rgba(252, 252, 248, 0.94);
}

.leaflet-tooltip.bear-presence-tooltip {
	padding: 6px 9px;
	border: 0;
	border-radius: 2px;
	background: rgba(252, 252, 248, .94);
	box-shadow: 0 2px 10px rgba(29, 41, 34, .18);
	color: var(--coex-brown);
	font: 500 .68rem/1.2 "Fredoka", sans-serif;
	letter-spacing: .02em;
	pointer-events: none;
}

.leaflet-tooltip-top.bear-presence-tooltip::before {
	border-top-color: rgba(252, 252, 248, .94);
}

.bear-map-legend {
	display: grid;
	gap: 5px;
	min-width: 142px;
	padding: 11px 13px;
	border-radius: 2px;
	background: rgba(252, 252, 248, 0.94);
	box-shadow: 0 3px 14px rgba(29, 41, 34, 0.18);
	color: var(--muted);
	font:
		400 0.68rem/1.25 "Fredoka",
		sans-serif;
}

.bear-map-legend strong {
	margin-bottom: 3px;
	color: var(--ink);
	font-weight: 500;
}

.bear-map-legend span {
	display: flex;
	align-items: center;
	gap: 7px;
}

.bear-map-legend i {
	display: block;
	width: 18px;
	height: 9px;
	background: rgb(160, 111, 84);
}

.bear-map-legend .permanent {
	opacity: 0.6;
}

.bear-map-legend .sporadic {
	opacity: 0.3;
}

.bear-map-legend .undefined {
	opacity: 0.15;
}

.leaflet-control-zoom a {
	color: var(--coex-brown) !important;
}

.leaflet-control-attribution {
	font-size: 9px !important;
	opacity: 0.6;
}

.map-fallback {
	display: grid;
	place-items: center;
	height: 100%;
	margin: 0;
	padding: 30px;
	text-align: center;
	color: var(--muted);
}

.work-network {
	position: relative;
	padding: 18px 0;
}

.work-note {
	margin: 14px 0 0;
	color: var(--muted);
	text-align: center;
}

.work-grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 92px 170px;
}

.work-network.has-expanded .work-grid {
	z-index: 5;
}

.work-card {
	--wp-colour: var(--coex-brown);
	position: relative;
	min-height: 205px;
	padding: 30px 32px;
	background: rgb(250 250 246);
	border-radius: 20px;
	transition: background-color 180ms ease;
}

.work-grid .work-card.expanded {
	--focus-inline-gap: 22%;
	--focus-block-gap: 18%;
	position: absolute;
	z-index: 6;
	grid-column: auto;
	grid-row: auto;
	width: auto;
	height: auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 18px 55px rgb(29 41 34 / 18%);
	animation: work-card-focus 260ms ease-out both;
}

.work-card.wp1.expanded {
	top: 0;
	right: var(--focus-inline-gap);
	bottom: var(--focus-block-gap);
	left: 0;
	transform-origin: top left;
}

.work-card.wp2.expanded {
	top: 0;
	right: 0;
	bottom: var(--focus-block-gap);
	left: var(--focus-inline-gap);
	transform-origin: top right;
}

.work-card.wp3.expanded {
	top: var(--focus-block-gap);
	right: var(--focus-inline-gap);
	bottom: 0;
	left: 0;
	transform-origin: bottom left;
}

.work-card.wp4.expanded {
	top: var(--focus-block-gap);
	right: 0;
	bottom: 0;
	left: var(--focus-inline-gap);
	transform-origin: bottom right;
}

.work-network.has-expanded .work-card:not(.expanded) {
	opacity: 0.16;
	filter: saturate(0.35);
	transition: opacity 220ms ease, filter 220ms ease;
}

@keyframes work-card-focus {
	from {
		opacity: 0.35;
		transform: scale(0.52);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.work-card-summary {
	position: static;
	cursor: pointer;
}

.work-card::before,
.work-card::after {
	content: "";
	position: absolute;
	pointer-events: none;
	border: 2px solid var(--wp-colour);
	border-radius: 16px 11px 18px 13px / 12px 18px 11px 17px;
}

.work-card::before {
	inset: 1px 2px 0 0;
	opacity: 0.72;
	transform: rotate(-0.25deg);
}

.work-card::after {
	inset: 3px 0 2px 2px;
	border-width: 1px;
	border-radius: 12px 18px 13px 16px / 17px 11px 18px 12px;
	opacity: 0.32;
	transform: rotate(0.32deg);
}

.work-card.wp1 {
	--wp-colour: var(--coex-brown);
	grid-column: 1;
	grid-row: 1;
}

.work-card.wp2 {
	--wp-colour: var(--coex-orange);
	grid-column: 2;
	grid-row: 1;
}

.work-card.wp3 {
	--wp-colour: var(--coex-blue);
	grid-column: 1;
	grid-row: 2;
}

.work-card.wp4 {
	--wp-colour: #8f9691;
	grid-column: 2;
	grid-row: 2;
}

.work-card-image {
	position: absolute;
	z-index: 1;
	top: 14px;
	right: 22px;
	width: 104px;
	height: auto;
	mix-blend-mode: multiply;
	pointer-events: none;
}

.work-card span {
	position: relative;
	z-index: 2;
	color: var(--wp-colour);
	font:
		500 0.8rem/1 "Shantell Sans",
		cursive;
	font-variation-settings:
		"wght"500,
		"BNCE"30,
		"INFM"50,
		"SPAC"0;
	letter-spacing: 0.1em;
}

.work-card h3 {
	position: relative;
	z-index: 2;
	max-width: calc(100% - 85px);
	margin: 28px 0 12px;
	font-weight: 400;
	font-size: clamp(1.4rem, 2.3vw, 1.7rem);
	color: #4f4f4f;
}

.work-card p {
	position: relative;
	z-index: 2;
	margin: 0;
	color: var(--ink);
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0.72;
}

.work-card-toggle {
	position: relative;
	z-index: 3;
	margin: 18px 0 0;
	padding: 0 0 3px;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: transparent;
	color: var(--wp-colour);
	font: 600 0.75rem/1.2 "Inter", sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.work-card-toggle:focus-visible {
	outline: 2px solid var(--wp-colour);
	outline-offset: 4px;
}

.work-card-detail {
	position: relative;
	z-index: 2;
	max-width: 900px;
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid color-mix(in srgb, var(--wp-colour) 40%, transparent);
}

.work-card.expanded .work-card-detail {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 10px;
}

.work-card-detail p {
	font-size: 1rem;
	line-height: 1.7;
	opacity: 0.88;
}

.work-connectors,
.work-centre {
	transition: opacity 180ms ease;
}

.work-centre {
	position: absolute;
	z-index: 4;
	top: 50%;
	left: 50%;
	width: 104px;
	height: 104px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #f4f5f1;
	box-shadow: 0px 0px 30px #f5f5f1;
}

.work-centre img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.work-connectors {
	position: absolute;
	z-index: 1;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.work-connectors path {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.work-connectors path:first-child {
	stroke-width: 3.5;
	opacity: 0.16;
	stroke-dasharray: 8 1 3 1.5;
}

.work-connectors path:last-child {
	stroke-width: 1.25;
	opacity: 0.68;
	stroke-dasharray: 13 1.5 4 1;
}

.work-connectors .wp1-line {
	color: var(--coex-brown);
}

.work-connectors .wp2-line {
	color: var(--coex-orange);
}

.work-connectors .wp3-line {
	color: var(--coex-blue);
}

.work-connectors .wp4-line {
	color: #8f9691;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px 18px;
}

.gallery-section {
	padding-top: 0;
	border-top: 0;
}

.news-section {
	padding-top: 0;
}

.news-list {
	display: grid;
	gap: 18px;
	max-width: 780px;
	margin: 0 auto;
}

.news-item {
	padding: 28px 32px 30px;
	border: 1px solid var(--line);
	background: #fafaf6;
}

.news-item h2 {
	margin: 0 0 14px;
	font: 500 2rem/1.05 "Newsreader", serif;
}

.news-item p:last-child,
.news-excerpt {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
}

.news-excerpt {
	margin-bottom: 10px !important;
	color: var(--ink);
	font-weight: 500;
}

.content-error {
	color: var(--coex-brown);
	text-align: center;
}

.gallery-grid {
	columns: 3;
	column-gap: 18px;
}

.gallery-item {
	break-inside: avoid;
	margin: 0 0 18px;
	background: #fafaf6;
}

.gallery-open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	background: #e9e6e2;
	filter: saturate(.92);
	transition: filter .3s ease;
}

.gallery-item:hover img {
	filter: saturate(1.04);
}

.gallery-item figcaption {
	padding: 11px 13px 12px;
	color: var(--muted);
	font-size: .68rem;
	line-height: 1.35;
}

.gallery-lightbox {
	position: fixed;
	z-index: 2000;
	inset: 0;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 64px;
	grid-template-rows: minmax(0, 1fr) auto;
	align-items: center;
	padding: 54px 18px 22px;
	background: rgba(20, 19, 20, .94);
	color: #fff;
}

.gallery-lightbox[hidden] {
	display: none;
}

.lightbox-image {
	grid-column: 2;
	grid-row: 1;
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 128px);
	margin: auto;
	object-fit: contain;
	box-shadow: 0 12px 44px rgba(0, 0, 0, .35);
}

.lightbox-caption {
	grid-column: 2;
	grid-row: 2;
	margin: 14px 0 0;
	text-align: center;
	font-size: .78rem;
	color: rgba(255, 255, 255, .78);
}

.lightbox-button {
	appearance: none;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	padding: 0 0 4px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font: 300 2rem/1 "Fredoka", sans-serif;
	cursor: pointer;
}

.lightbox-button:hover,
.lightbox-button:focus-visible {
	background: rgba(255, 255, 255, .24);
	outline: 2px solid rgba(255, 255, 255, .7);
	outline-offset: 2px;
}

.lightbox-prev {
	grid-column: 1;
	grid-row: 1;
}

.lightbox-next {
	grid-column: 3;
	grid-row: 1;
}

.lightbox-close {
	position: absolute;
	top: 14px;
	right: 18px;
}

body.lightbox-open {
	overflow: hidden;
}

.team-card {
	min-width: 0;
	background: #fafaf6;
}

.team-card figure {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #e9e6e2;
}

.team-card figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.88);
	transition:
		transform 0.45s ease,
		filter 0.3s ease;
}

.team-card:hover figure img {
	transform: scale(1.025);
	filter: saturate(1);
}

.team-card.photo-right figure img {
	object-position: 72% center;
}

.team-card figcaption {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 4px 7px;
	color: #fff;
	background: rgba(29, 41, 34, 0.62);
	font-size: 0.58rem;
	letter-spacing: 0.03em;
}

.portrait-placeholder {
	background: rgba(255, 131, 48, 0.16) !important;
}

.portrait-placeholder.blue {
	background: rgba(139, 155, 200, 0.22) !important;
}

.portrait-placeholder.brown {
	background: rgba(160, 111, 84, 0.2) !important;
}

.team-info {
	min-height: 165px;
	padding: 20px 21px 24px;
}

.team-info h3 {
	margin: 18px 0 9px;
	font:
		500 1.4rem/1.08 "Newsreader",
		serif;
	letter-spacing: -0.02em;
}

.team-info p {
	margin: 0;
	color: var(--muted);
	font-size: 0.82rem;
	line-height: 1.5;
}

.wp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wp-tags span {
	padding: 5px 7px 4px;
	border: 1px solid var(--line);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
}

.wp-tags .wp1 {
	border-color: var(--coex-orange);
}

.wp-tags .wp2 {
	border-color: var(--coex-blue);
}

.wp-tags .wp3 {
	border-color: var(--coex-brown);
}

.wp-tags .wp4 {
	background: rgba(139, 155, 200, 0.18);
	border-color: var(--coex-blue);
}

.wp-tags .pending {
	color: var(--muted);
}

.empty-state,
.contact-card {
	padding: 72px;
	max-width: 800px;
	margin: auto;
	background: #f3f1f0;
	text-align: center;
}

.empty-state>span {
	display: inline-block;
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	border: 1px solid var(--coex-blue);
	padding: 8px 12px;
	margin-bottom: 28px;
}

.empty-state p,
.contact-card p:last-child {
	color: var(--muted);
	line-height: 1.65;
	max-width: 570px;
	margin: 22px auto 0;
}

footer {
	border-top: 1px solid var(--line);
	padding-top: 24px;
	color: #7d867f;
	font-size: 0.67rem;
	letter-spacing: 0.04em;
}

.partner-logos {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	align-items: center;
	gap: 20px 24px;
	margin-bottom: 24px;
}

.partner-logos img {
	display: block;
	width: 100%;
	height: 46px;
	object-fit: contain;
	opacity: 0.55;
	filter: brightness(1.18);
}

.footer-meta {
	display: flex;
	justify-content: space-between;
}

@media (max-width: 800px) {
	body {
		background-attachment: scroll;
	}

	.site-shell {
		width: calc(100% - 24px);
		margin: 12px auto;
		padding: 26px 22px 22px;
	}

	.site-shell::after {
		width: calc(100% + 44px);
		margin: 22px -22px -22px;
	}

	.site-header nav {
		gap: 25px;
	}

	.intro {
		margin: 50px auto 40px;
	}

	.lead {
		margin: 20px auto 0;
	}

	.section {
		padding: 58px 0;
	}

	.section-heading {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.map-layout {
		grid-template-columns: 1fr;
	}

	.map-layout #map {
		min-height: 420px;
	}

	.work-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(2, 1fr);
		gap: 120px 14px;
		width: 100%;
	}

	.work-network {
		padding: 8px 0;
	}

	.work-network::before,
	.work-network::after {
		content: none;
	}

	.work-connectors {
		display: block;
	}

	.work-centre {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 88px;
		height: 88px;
		margin: 0;
		transform: translate(-50%, -50%);
	}

	.work-card {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		min-height: 0;
		padding: 22px 20px;
	}

	.work-card-image {
		position: static;
		width: 78px;
		margin: 0 0 18px;
	}

	.work-card span {
		display: block;
	}

	.work-card h3 {
		max-width: none;
		margin: 18px 0 10px;
		font-size: clamp(1.15rem, 3.5vw, 1.45rem);
	}

	.team-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gallery-grid {
		columns: 2;
	}

	.work-card p {
		max-height: none;
		opacity: 0.78;
	}

	.empty-state,
	.contact-card {
		padding: 48px 24px;
	}

	.partner-logos {
		gap: 18px 16px;
	}

	.footer-meta {
		display: block;
		line-height: 1.5;
	}
}

@media (max-width: 520px) {
	.partner-logos {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.partner-logos img {
		height: 38px;
	}
}

@media (max-width: 460px) {
	.work-grid .work-card.expanded {
		--focus-inline-gap: 8%;
		--focus-block-gap: 12%;
	}

	.site-shell {
		width: 100%;
		margin: 0;
	}

	.logo img,
	.logo .animated-logo {
		width: 150px;
		height: 150px;
	}

	.animated-logo-lockup {
		width: 150px;
		height: 150px;
	}

	.logo .animated-logo-lockup .animated-logo {
		width: 150px;
		height: 118px;
	}

	.animated-logo-brand {
		font-size: 23px;
	}

	.intro h1 {
		font-size: 2.5rem;
	}

	.map-layout #map {
		min-height: 350px;
	}

	.work-grid {
		gap: 104px 10px;
	}

	.work-card {
		padding: 17px 14px;
	}

	.work-card-image {
		width: 62px;
		margin-bottom: 14px;
	}

	.work-card h3 {
		margin-top: 14px;
		font-size: 1.05rem;
	}

	.work-card p {
		font-size: 0.76rem;
		line-height: 1.42;
	}

	.work-centre {
		width: 76px;
		height: 76px;
	}

	.hub-detail {
		padding: 28px 22px;
	}

	.chart-legend {
		display: block;
	}

	.chart-legend span+span {
		margin-top: 6px;
	}

	.team-grid {
		grid-template-columns: 1fr;
	}

	.site-header nav {
		gap: 16px;
	}

	.gallery-grid {
		columns: 1;
	}

	.gallery-lightbox {
		grid-template-columns: 52px minmax(0, 1fr) 52px;
		padding-right: 6px;
		padding-left: 6px;
	}

	.lightbox-button {
		width: 40px;
		height: 40px;
	}

	.team-info {
		min-height: 0;
	}
}

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

	* {
		transition: none !important;
	}
}
