/* Scroll reveal */
.hmx-reveal {
	opacity: 0;
	translate: 0 34px;
	transition: opacity 0.9s ease, translate 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.hmx-reveal.hmx-in {
	opacity: 1;
	translate: 0 0;
}

/* Filter / jump chips */
.hmx-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 1100px;
}
.hmx-chips-sticky {
	position: sticky;
	top: 104px;
	z-index: 20;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(244, 247, 248, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 6px 18px rgba(15, 108, 120, 0.10);
	width: auto;
}
button.hmx-chip,
button.hmx-chip:focus,
button.hmx-chip:active {
	font-family: Montserrat, sans-serif !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	padding: 11px 18px !important;
	border-radius: 999px !important;
	border: 2px solid #D5E2E5 !important;
	background: #ffffff !important;
	color: #0F6C78 !important;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
button.hmx-chip:hover {
	border-color: #D8A441 !important;
	background: #ffffff !important;
	color: #0F6C78 !important;
	transform: translateY(-2px);
}
button.hmx-chip:focus-visible {
	outline: 3px solid #D8A441;
	outline-offset: 2px;
}
button.hmx-chip.is-active,
button.hmx-chip.is-active:hover,
button.hmx-chip.is-active:focus {
	background: #0F6C78 !important;
	border-color: #0F6C78 !important;
	color: #ffffff !important;
}
.hmx-chip-count {
	display: inline-block;
	margin-left: 8px;
	padding: 3px 7px;
	border-radius: 999px;
	font-size: 12px;
	background: rgba(15, 108, 120, 0.10);
}
.hmx-chip.is-active .hmx-chip-count {
	background: rgba(255, 255, 255, 0.22);
}

/* Staff filtering */
.hmx-hidden {
	display: none !important;
}
.hmx-fade-in {
	animation: hmxFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hmxFadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Staff card photo zoom */
.hm-staff-card .hm-staff-img {
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hm-staff-card:hover .hm-staff-img {
	transform: scale(1.06);
}

/* Belief pillars: fill teal on hover */
.hm-pillar {
	transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.hm-pillar .hm-pillar-word,
.hm-pillar .hm-pillar-text {
	transition: color 0.4s ease;
}
.hm-pillar:hover {
	background-color: #0F6C78;
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(15, 108, 120, 0.25);
}
.hm-pillar:hover .hm-pillar-word {
	color: #D9B35F;
}
.hm-pillar:hover .hm-pillar-text {
	color: #ffffff;
}

/* Belief cards: hover + highlight when jumped to */
.hm-belief-card {
	transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
	scroll-margin-top: 190px;
}
.hm-belief-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 32px rgba(15, 108, 120, 0.15);
	border-color: #D8A441;
}
.hm-belief-card.hmx-flash {
	animation: hmxFlash 1.8s ease;
}
@keyframes hmxFlash {
	0% { box-shadow: 0 0 0 0 rgba(216, 164, 65, 0.0); }
	25% { box-shadow: 0 0 0 6px rgba(216, 164, 65, 0.45); }
	100% { box-shadow: 0 0 0 0 rgba(216, 164, 65, 0.0); }
}

/* About link cards: arrow nudge */
.hm-link-card .hm-link-card-more,
.hm-connect-card .hm-connect-more {
	transition: transform 0.35s ease, color 0.35s ease;
}
.hm-link-card:hover .hm-link-card-more,
.hm-connect-card:hover .hm-connect-more {
	transform: translateX(6px);
}
.hm-connect-card:hover .hm-connect-more {
	color: #B7862D;
}

@media (max-width: 767px) {
	.hmx-chips-sticky {
		top: 84px;
		border-radius: 18px;
	}
	button.hmx-chip {
		font-size: 13px !important;
		padding: 9px 14px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmx-reveal { opacity: 1; translate: none; transition: none; }
	.hmx-fade-in, .hm-belief-card.hmx-flash { animation: none; }
	.hm-staff-card:hover .hm-staff-img, .hm-pillar:hover, .hm-belief-card:hover { transform: none; }
}
