/* =====================================================================
   HRI Footer — revealed over the end of the page.   v1.0

   Figma file "14" (2359 × 1066); sizes × --k (= 100vw / 2359, same
   scale as the Quick Inquiry bar). Line boxes 1.21em (Inter), 1em
   (Cormorant), so the gaps below put every baseline where Figma has it:
     name 128 (Cormorant Light, black)   ▸39.4  address 20 (Regular)
     ▸26.8 phone 20 + 21px icon         ▸76.2  bar slot 72
     ▸96.7 links 22 (Medium)            ▸46.3  tags 20 (Medium, 50%)
     ▸60.8 © 20 (Regular)               ▸34.2  bottom
   Background: progressive blur (heavier towards the bottom) under a
   shade black 50% → 0 over 95% of the height.

   footer.js drives: --ft-r (blur reveal 0 → 125, bottom → top),
   --ft-s (shade opacity), item transforms, html.hri-ft-on (navigation
   flash-out), .is-active / .is-on on .hri-ft.
   ===================================================================== */

.hri-ft-spacer {
	display: block;
	height: 45vh;
	height: 45svh;
	margin: 0;
	padding: 0;
	background: #fff6ea;
	pointer-events: none;
}

.hri-ft {
	--k: clamp(0.62px, calc(100vw / 2359), 1px);
	--qk: var(--k); /* the Quick Inquiry bar's scale */
	--ft-r: 0;
	--ft-s: 0;

	position: fixed;
	inset: 0;
	z-index: 53; /* above sections, under the Quick Inquiry bar (54) and the navigation (60) */
	margin: 0;
	padding: 0;
	visibility: hidden;
	pointer-events: none;
	font-family: "HRI Inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #ffffff;
	letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-sizing: border-box;
}

.hri-ft *,
.hri-ft *::before,
.hri-ft *::after {
	box-sizing: border-box;
}

.hri-ft.is-active {
	visibility: visible;
}

.hri-ft.is-on {
	pointer-events: auto; /* the blurred page underneath is not clickable */
}

/* ---------------------------------------------------------------------
   Progressive blur, revealed from the bottom up
   (Each layer masks itself — a mask on a parent would cut the blur off.)
   --------------------------------------------------------------------- */
.hri-ft__blur,
.hri-ft__blur i {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hri-ft__blur i {
	--reveal: linear-gradient(to top, #000 calc(var(--ft-r) * 1% - 25%), transparent calc(var(--ft-r) * 1%));
	-webkit-mask-image: var(--band), var(--reveal);
	mask-image: var(--band), var(--reveal);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

.hri-ft__blur i:nth-child(1) { --band: linear-gradient(to top, #000 0%, #000 80%, transparent 100%); -webkit-backdrop-filter: blur(3px);  backdrop-filter: blur(3px); }
.hri-ft__blur i:nth-child(2) { --band: linear-gradient(to top, #000 0%, #000 55%, transparent 82%);  -webkit-backdrop-filter: blur(7px);  backdrop-filter: blur(7px); }
.hri-ft__blur i:nth-child(3) { --band: linear-gradient(to top, #000 0%, #000 32%, transparent 62%);  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hri-ft__blur i:nth-child(4) { --band: linear-gradient(to top, #000 0%, #000 12%, transparent 42%);  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }

.hri-ft__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 95.3%);
	opacity: var(--ft-s);
	pointer-events: none;
}

/* ---------------------------------------------------------------------
   Content
   --------------------------------------------------------------------- */
.hri-ft__stack {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 24px calc(34.2 * var(--k));
	text-align: center;
}

.hri-ft [data-hri-ft-item] {
	will-change: transform, opacity;
}

.hri-ft p {
	margin: 0;
	padding: 0;
}

.hri-ft a {
	color: inherit;
	text-decoration: none;
	transition: color 0.35s ease, text-shadow 0.35s ease, opacity 0.35s ease;
}

.hri-ft .hri-ft__name {
	font-family: "HRI Cormorant", "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
	font-size: calc(128 * var(--k));
	font-weight: 300;
	line-height: 1;
	height: 1em;
	letter-spacing: 0;
	white-space: nowrap;
	color: #000000;
	transform-origin: 50% 100%;
}

.hri-ft__line {
	font-size: calc(20 * var(--k));
	font-weight: 300;
	line-height: 1.21;
}

.hri-ft .hri-ft__address {
	margin-top: calc(39.4 * var(--k));
}

.hri-ft .hri-ft__phone {
	display: flex;
	justify-content: center;
	margin-top: calc(26.8 * var(--k));
}

.hri-ft__phone a {
	display: inline-flex;
	align-items: center;
	gap: calc(16 * var(--k));
}

.hri-ft__phone-icon {
	display: block;
	flex: none;
	width: calc(21 * var(--k));
	height: calc(21.27 * var(--k));
	fill: currentColor;
	transform: translateY(calc(-0.5 * var(--k)));
}

.hri-ft__bar-slot {
	flex: none;
	width: calc(517 * var(--qk));
	height: calc(72 * var(--qk));
	margin-top: calc(76.2 * var(--k));
}

.hri-ft__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hri-ft__links,
.hri-ft__tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hri-ft__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hri-ft__links {
	margin-top: calc(96.7 * var(--k));
	column-gap: calc(73.5 * var(--k));
	font-size: calc(22 * var(--k));
	font-weight: 400;
	line-height: 1.21;
}

.hri-ft__tags {
	margin-top: calc(46.3 * var(--k));
	column-gap: calc(73.5 * var(--k));
	font-size: calc(20 * var(--k));
	font-weight: 400;
	line-height: 1.21;
}

.hri-ft .hri-ft__tag {
	color: rgba(255, 255, 255, 0.5);
}

.hri-ft .hri-ft__copy {
	margin-top: calc(60.8 * var(--k));
}

@media (hover: hover) and (pointer: fine) {
	.hri-ft .hri-ft__link:hover,
	.hri-ft .hri-ft__address a:hover,
	.hri-ft .hri-ft__phone a:hover {
		color: #ffffff;
		text-shadow: 0 0 calc(14 * var(--k)) rgba(255, 244, 225, 0.75);
	}

	.hri-ft .hri-ft__tag:hover {
		color: #ffffff;
	}
}

.hri-ft a:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 4px;
}

.hri-ft a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

/* ---------------------------------------------------------------------
   The navigation flashes out while the footer comes in
   (selectors outrank the hero's own entrance rules; once used,
   html.hri-ft-back stays so the links never replay their entrance)
   --------------------------------------------------------------------- */
/* The hero locks its items/plus with `!important` once it has loaded
   (.is-static), so the flash runs on the elements it does not lock:
   each link (desktop/tablet row) and the whole <nav> on phones. */
@media (min-width: 768px) {
	html.hri-ft-on .hri-hero .hri-hero__nav-wrap .hri-hero__link {
		animation: hri-ft-navout 1s cubic-bezier(0.3, 0, 0.2, 1) calc(var(--i, 0) * 90ms) both;
		pointer-events: none !important;
	}

	html.hri-ft-back:not(.hri-ft-on) .hri-hero .hri-hero__nav-wrap .hri-hero__link {
		animation: hri-ft-navin 0.9s ease calc(var(--i, 0) * 70ms) both;
	}
}

@media (max-width: 767px) {
	html.hri-ft-on .hri-hero .hri-hero__nav-wrap .hri-hero__nav {
		animation: hri-ft-navout 1s cubic-bezier(0.3, 0, 0.2, 1) both;
		pointer-events: none !important;
	}

	html.hri-ft-back:not(.hri-ft-on) .hri-hero .hri-hero__nav-wrap .hri-hero__nav {
		animation: hri-ft-navin 0.9s ease both;
	}
}

html.hri-ft-on .hri-hero .hri-hero__shade {
	opacity: 0 !important;
	transition: opacity 0.9s ease !important;
}

@keyframes hri-ft-navout {
	0% {
		opacity: 1;
		filter: none;
	}
	28% {
		opacity: 1;
		filter: brightness(1.9) drop-shadow(0 0 6px rgba(255, 246, 228, 0.95)) drop-shadow(0 0 18px rgba(255, 222, 170, 0.75));
	}
	100% {
		opacity: 0;
		filter: brightness(2.4) blur(10px) drop-shadow(0 0 26px rgba(255, 222, 170, 0));
	}
}

@keyframes hri-ft-navin {
	0% {
		opacity: 0;
		filter: blur(8px);
	}
	100% {
		opacity: 1;
		filter: none;
	}
}

/* ---------------------------------------------------------------------
   Tablets and phones
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hri-ft {
		--qk: min(calc((100vw - 32px) / 517), 0.8px);
	}

	.hri-ft__stack {
		padding: 0 32px calc(28px + env(safe-area-inset-bottom, 0px));
	}

	.hri-ft .hri-ft__name { font-size: min(calc((100vw - 96px) / 11.49), 72px); }
	.hri-ft__line { font-size: 16px; line-height: 1.4; }
	.hri-ft .hri-ft__address { margin-top: 22px; max-width: 30em; }
	.hri-ft .hri-ft__phone { margin-top: 12px; }
	.hri-ft__phone a { gap: 10px; }
	.hri-ft__phone-icon { width: 16px; height: 16px; transform: none; }
	.hri-ft__bar-slot { margin-top: 34px; }
	.hri-ft__links { margin-top: 40px; column-gap: 34px; row-gap: 10px; font-size: 17px; max-width: 640px; }
	.hri-ft__tags { margin-top: 24px; column-gap: 26px; row-gap: 8px; font-size: 14px; max-width: 600px; }
	.hri-ft .hri-ft__copy { margin-top: 30px; font-size: 13px; }
}

@media (max-width: 767px) {
	.hri-ft__stack {
		padding: 0 20px calc(22px + env(safe-area-inset-bottom, 0px));
	}

	.hri-ft .hri-ft__name { font-size: calc((100vw - 40px) / 11.49); }
	.hri-ft__line { font-size: 14px; }
	.hri-ft .hri-ft__address { margin-top: 16px; max-width: 290px; text-wrap: balance; }
	.hri-ft .hri-ft__phone { margin-top: 10px; }
	.hri-ft__phone-icon { width: 14px; height: 14px; }
	.hri-ft__bar-slot { margin-top: 28px; }
	.hri-ft__links { margin-top: 32px; column-gap: 22px; row-gap: 10px; font-size: 15px; max-width: 340px; }
	.hri-ft__tags { margin-top: 20px; column-gap: 18px; row-gap: 6px; font-size: 13px; max-width: 330px; }
	.hri-ft .hri-ft__copy { margin-top: 24px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	html.hri-ft-on .hri-hero .hri-hero__nav-wrap .hri-hero__link,
	html.hri-ft-on .hri-hero .hri-hero__nav-wrap .hri-hero__nav {
		animation: none;
		opacity: 0;
	}

	html.hri-ft-back:not(.hri-ft-on) .hri-hero .hri-hero__nav-wrap .hri-hero__link,
	html.hri-ft-back:not(.hri-ft-on) .hri-hero .hri-hero__nav-wrap .hri-hero__nav {
		animation: none;
	}
}