/* Park City page (/park-city-luxury-home-builder/; Curtis, Nov 30 and Dec 1). Loaded on that page only,
   after home.css. Its own components, built around the questions people search for:
   - hero: Old Town Park City, a slow sideways pan and a sink on scroll; the playbook's first screen
     (Dec 1): what, where and why trust us, the main button, the phone number, and a card of Clarke
   - .mlh-pc-proof: four facts right under the hero
   - .mlh-pc-homes: four of our homes, one line each
   - .mlh-pc-cost: what moves the cost, as a numbered list beside the answer
   - .mlh-pc-build: design to move-in, each step with its photo and date; the line fills with the
     scroll and each step lights as the line reaches it (park-city-map.js)
   - .mlh-pc-where + .mlh-pc-map: an interactive map (template-parts/park-city/map.php, park-city-map.js)
   - .mlh-pc-away: building from out of state, on a dark band beside a photo
   - .mlh-pc-team: the people, with their photos
   - .mlh-pc-ask: questions to ask any builder, with our answers
   - .mlh-pc-close: the closing heading over a full-width photo
   Motion only under html.mlh-anim (never for reduced motion). Scroll-linked motion is decorative and
   a progressive enhancement: browsers without scroll-driven animations see the still page.
   Paragraph rules name a class: on WordPress.com every paragraph has a class (wp-block-paragraph),
   so p:not([class]) never matches there (Dec 1). Group children are matched through WordPress's
   inner-container wrapper (see CLAUDE.md). */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.mlh-hero--pc {
	height: clamp(560px, 88vh, 920px);
	height: clamp(560px, 88svh, 920px);
}

.mlh-hero--pc .mlh-hero__image {
	object-position: 50% 66%;
}

/* A slow pan across Old Town, on the wrapper (the photo stays free for view transitions).
   It starts already zoomed, so nothing jumps when it begins. */
.mlh-anim .mlh-hero--pc .mlh-hero__drift {
	animation: mlh-pc-pan 46s ease-in-out infinite alternate;
	transform-origin: 50% 60%;
}

@keyframes mlh-pc-pan {
	from { transform: scale(1.1) translate3d(-2.6%, 0.6%, 0); }
	to { transform: scale(1.1) translate3d(2.6%, -0.8%, 0); }
}

@media (prefers-reduced-motion: no-preference) {
	@supports ((animation-timeline: view()) and (animation-range: entry)) {
		/* As the hero scrolls away, the photo sinks and the title lifts and fades. */
		.mlh-anim .mlh-hero--pc .mlh-hero__media {
			animation: mlh-pc-sink linear both;
			animation-timeline: view();
			animation-range: exit 0% exit 100%;
		}

		.mlh-anim .mlh-hero--pc .mlh-hero__text {
			animation: mlh-pc-lift linear both;
			animation-timeline: view();
			animation-range: exit 0% exit 70%;
		}
	}
}

@keyframes mlh-pc-sink {
	to { transform: translate3d(0, 22%, 0); }
}

@keyframes mlh-pc-lift {
	to { transform: translate3d(0, -48px, 0); opacity: 0; }
}

/* A darker shade on the left and bottom, so the title, line and buttons read over the busy town. */
.mlh-hero--pc .mlh-hero__shade {
	background:
		linear-gradient(90deg, rgba(10, 12, 16, 0.55) 0%, rgba(10, 12, 16, 0.2) 55%, rgba(10, 12, 16, 0) 80%),
		linear-gradient(180deg, rgba(10, 12, 16, 0.45) 0%, rgba(10, 12, 16, 0) 28%, rgba(10, 12, 16, 0.15) 50%, rgba(10, 12, 16, 0.7) 100%);
}

.mlh-hero--pc .mlh-hero__lead {
	text-shadow: 0 1px 12px rgba(10, 12, 16, 0.45);
}

/* The first screen: the line under the title, the button and phone, and a card of one of our homes.
   The hero is a little shorter than the screen, so the next section shows below it. */
.mlh-hero--pc .mlh-hero__inner {
	align-items: flex-end;
}

.mlh-hero--pc .mlh-hero__lead {
	max-width: 54ch;
	margin-top: 4px;
	font-size: clamp(16px, 1.35vw, 19px);
	color: #f6f4ec;
}

.mlh-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 28px;
}

.mlh-hero a.mlh-btn--light {
	border-color: var(--mlh-bg);
	background: var(--mlh-bg);
	color: var(--mlh-dark);
}

.mlh-hero a.mlh-btn--light:hover {
	border-color: #fff;
	background: transparent;
	color: #fff;
}

.mlh-hero__phone {
	font: 500 13px/1.4 var(--mlh-sans);
	letter-spacing: 0.14em;
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 8px;
}

.mlh-hero__phone:hover {
	color: #e8dcc4;
}

.mlh-hero__card {
	display: block;
	flex: none;
	width: 300px;
	background: rgba(246, 244, 236, 0.95);
	color: var(--mlh-ink);
	text-decoration: none;
	transition: translate 0.5s var(--mlh-ease), box-shadow 0.5s var(--mlh-ease);
}

.mlh-hero__card-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.mlh-hero__card-text {
	display: block;
	padding: 12px 16px 14px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--mlh-muted);
}

.mlh-hero__card-text strong {
	display: block;
	margin-bottom: 2px;
	font: 400 20px/1.2 var(--mlh-serif);
	color: var(--mlh-ink);
}

@media (hover: hover) {
	.mlh-hero__card:hover {
		translate: 0 -4px;
		box-shadow: 0 18px 40px rgba(10, 12, 16, 0.28);
	}
}

/* --------------------------------------------------------------------------
   Proof: four facts right under the hero
   -------------------------------------------------------------------------- */

.mlh-home > .mlh-pc-proof {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding-top: 48px;
	padding-bottom: clamp(80px, 9vw, 120px);
}

.mlh-pc-proof__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 24px;
	padding-left: 20px;
	border-left: 1px solid var(--mlh-bronze);
}

.mlh-home .mlh-pc-proof__big {
	margin-bottom: 0;
	font: 400 clamp(20px, 1.7vw, 24px)/1.2 var(--mlh-serif);
	color: var(--mlh-ink);
}

.mlh-home .mlh-pc-proof__small {
	font-size: 14px;
	line-height: 1.5;
	color: var(--mlh-muted);
}

/* Section heading with a short line beside it */
.mlh-pc-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 48px;
	margin-bottom: clamp(36px, 4vw, 56px);
}

.mlh-home .mlh-pc-head h2 {
	max-width: 22ch;
}

.mlh-home .mlh-pc-head__text {
	max-width: 44ch;
	font-size: 16px;
	color: var(--mlh-muted);
}

/* --------------------------------------------------------------------------
   Where we build: the interactive map
   -------------------------------------------------------------------------- */

.mlh-home > .mlh-pc-where {
	max-width: none;
	margin-bottom: 128px;
	padding: clamp(72px, 8vw, 112px) 0;
	background: var(--mlh-band);
}

:is(.mlh-pc-where, .mlh-pc-where > .wp-block-group__inner-container) > * {
	max-width: var(--mlh-max);
	margin-inline: auto;
	padding-inline: var(--mlh-gutter);
}

.mlh-home .mlh-pc-where h2 {
	margin-bottom: clamp(36px, 5vw, 64px);
}

.mlh-pc-map {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
	gap: 32px clamp(32px, 4vw, 64px);
	align-items: start;
}

.mlh-pc-map__stage {
	position: relative;
	background: var(--mlh-bg);
}

.mlh-pc-map__svg {
	display: block;
	width: 100%;
	height: auto;
}

.mlh-pc-map__credit {
	margin: 0;
	padding: 8px 12px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--mlh-muted);
	background: var(--mlh-bg);
}

/* The drawing: real shaded terrain (USGS elevation), real roads and water (OpenStreetMap via Overture),
   built by a script and drawn to scale (Dec 1). */
.mlh-pc-map__terrain {
	image-rendering: auto;
}

.mlh-pc-map__water .mlh-pc-map__lake {
	fill: #9fb3bb;
	fill-rule: evenodd;
	stroke: #8aa1aa;
	stroke-width: 0.8;
}

.mlh-pc-map__water .mlh-pc-map__river {
	fill: none;
	stroke: #9fb3bb;
	stroke-width: 1.6;
	stroke-linecap: round;
}

.mlh-pc-map__water-label {
	font: italic 300 16px var(--mlh-serif);
	fill: #f6f4ec;
	text-anchor: middle;
}

/* Park City's city limits, and Tuhaye (shown when chosen) */
.mlh-pc-map__area {
	fill: var(--mlh-bronze);
	fill-opacity: 0.07;
	stroke: var(--mlh-bronze);
	stroke-opacity: 0.55;
	stroke-width: 1.2;
	stroke-dasharray: 5 4;
	cursor: pointer;
	transition: fill-opacity 0.4s ease, stroke-opacity 0.4s ease;
}

.mlh-pc-map__area--tuhaye {
	fill-opacity: 0;
	stroke-opacity: 0;
}

.mlh-pc-map[data-active="parkcity"] .mlh-pc-map__area--pc,
.mlh-pc-map[data-active="main"] .mlh-pc-map__area--pc {
	fill-opacity: 0.16;
	stroke-opacity: 0.95;
}

.mlh-pc-map[data-active="tuhaye"] .mlh-pc-map__area--tuhaye {
	fill-opacity: 0.18;
	stroke-opacity: 0.95;
}

/* Roads: white with a soft casing, the highways wider */
.mlh-pc-map__road-case,
.mlh-pc-map__road {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mlh-pc-map__road-case {
	stroke: #7d7464;
	stroke-opacity: 0.55;
}

.mlh-pc-map__road {
	stroke: #fffdf7;
}

.mlh-pc-map__road-case.mlh-pc-map__road--major { stroke-width: 6; }
.mlh-pc-map__road.mlh-pc-map__road--major { stroke-width: 3.6; }
.mlh-pc-map__road-case.mlh-pc-map__road--primary { stroke-width: 4.4; }
.mlh-pc-map__road.mlh-pc-map__road--primary { stroke-width: 2.4; }
.mlh-pc-map__road-case.mlh-pc-map__road--minor { stroke-width: 2.6; stroke-opacity: 0.35; }
.mlh-pc-map__road.mlh-pc-map__road--minor { stroke-width: 1.2; stroke-opacity: 0.9; }

/* Route numbers */
.mlh-pc-map__shield rect {
	fill: var(--mlh-dark);
}

.mlh-pc-map__shield text {
	font: 600 11.5px var(--mlh-sans);
	letter-spacing: 0.04em;
	fill: #f6f4ec;
}

.mlh-pc-map__town {
	font: 400 16px var(--mlh-serif);
	fill: var(--mlh-ink);
	paint-order: stroke;
	stroke: rgba(246, 244, 236, 0.85);
	stroke-width: 4px;
	stroke-linejoin: round;
}

.mlh-pc-map__faint {
	font: italic 300 14px var(--mlh-serif);
	fill: var(--mlh-ink);
	fill-opacity: 0.75;
	paint-order: stroke;
	stroke: rgba(246, 244, 236, 0.7);
	stroke-width: 3px;
}

/* SkyRidge, outlined */
.mlh-pc-map__sky path {
	fill: var(--mlh-bronze);
	fill-opacity: 0.22;
	stroke: var(--mlh-bronze);
	stroke-width: 2.2;
	stroke-linejoin: round;
	cursor: pointer;
	transition: fill-opacity 0.4s ease;
}

.mlh-pc-map[data-active="skyridge"] .mlh-pc-map__sky path {
	fill-opacity: 0.34;
}

/* Routes from SkyRidge, along the roads: hidden until their place is chosen, then drawn. */
.mlh-pc-map__route {
	fill: none;
	stroke: var(--mlh-bronze);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 0.4s var(--mlh-ease);
}

.mlh-pc-map[data-active="dvev"] .mlh-pc-map__route[data-route="dvev"],
.mlh-pc-map[data-active="main"] .mlh-pc-map__route[data-route="main"],
.mlh-pc-map[data-active="airport"] .mlh-pc-map__route[data-route="airport"] {
	stroke-dashoffset: 0;
	transition-duration: 1.6s;
}

/* Pins */
.mlh-pc-map__pin {
	cursor: pointer;
}

.mlh-pc-map__in {
	transform-box: fill-box;
	transform-origin: center;
}

.mlh-pc-map__pin circle:not(.mlh-pc-map__halo),
.mlh-pc-map__pin--star path {
	fill: var(--mlh-bg);
	stroke: var(--mlh-ink);
	stroke-width: 1.8;
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.5s var(--mlh-ease), fill 0.3s ease;
}

.mlh-pc-map__pin--home circle:not(.mlh-pc-map__halo) {
	fill: var(--mlh-bronze);
	stroke: #fff;
	stroke-width: 2.4;
}

.mlh-pc-map__pin--star path {
	fill: var(--mlh-dark);
	stroke: #fff;
	stroke-width: 1.4;
}

.mlh-pc-map__pin--also circle:not(.mlh-pc-map__halo) {
	stroke: var(--mlh-ink);
	stroke-dasharray: 2.5 2;
}

.mlh-pc-map__halo {
	fill: var(--mlh-bronze);
	fill-opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
}

.mlh-pc-map__pin text {
	font: 400 16px var(--mlh-serif);
	fill: var(--mlh-ink);
	paint-order: stroke;
	stroke: #f6f4ec;
	stroke-width: 4.5px;
	stroke-linejoin: round;
}

.mlh-pc-map__pin .mlh-pc-map__city,
.mlh-pc-map__pin--home text {
	font-size: 19px;
	font-weight: 400;
}

/* The chosen place */
.mlh-pc-map[data-active="skyridge"] .mlh-pc-map__pin[data-place="skyridge"] circle:not(.mlh-pc-map__halo),
.mlh-pc-map[data-active="dvev"] .mlh-pc-map__pin[data-place="dvev"] circle:not(.mlh-pc-map__halo),
.mlh-pc-map[data-active="main"] .mlh-pc-map__pin[data-place="main"] circle:not(.mlh-pc-map__halo),
.mlh-pc-map[data-active="airport"] .mlh-pc-map__pin[data-place="airport"] circle:not(.mlh-pc-map__halo),
.mlh-pc-map[data-active="tuhaye"] .mlh-pc-map__pin[data-place="tuhaye"] circle:not(.mlh-pc-map__halo),
.mlh-pc-map[data-active="redledges"] .mlh-pc-map__pin[data-place="redledges"] circle:not(.mlh-pc-map__halo),
.mlh-pc-map[data-active="marcella"] .mlh-pc-map__pin[data-place="marcella"] circle:not(.mlh-pc-map__halo),
.mlh-pc-map[data-active="main"] .mlh-pc-map__pin--star path {
	fill: var(--mlh-bronze);
	stroke: #fff;
	stroke-dasharray: none;
	transform: scale(1.35);
}

.mlh-pc-map[data-active="skyridge"] .mlh-pc-map__pin[data-place="skyridge"] .mlh-pc-map__halo,
.mlh-pc-map[data-active="dvev"] .mlh-pc-map__pin[data-place="dvev"] .mlh-pc-map__halo,
.mlh-pc-map[data-active="main"] .mlh-pc-map__pin[data-place="main"] .mlh-pc-map__halo,
.mlh-pc-map[data-active="airport"] .mlh-pc-map__pin[data-place="airport"] .mlh-pc-map__halo,
.mlh-pc-map[data-active="tuhaye"] .mlh-pc-map__pin[data-place="tuhaye"] .mlh-pc-map__halo,
.mlh-pc-map[data-active="redledges"] .mlh-pc-map__pin[data-place="redledges"] .mlh-pc-map__halo,
.mlh-pc-map[data-active="marcella"] .mlh-pc-map__pin[data-place="marcella"] .mlh-pc-map__halo {
	fill-opacity: 0.25;
}

.mlh-anim .mlh-pc-map[data-active="skyridge"] .mlh-pc-map__pin[data-place="skyridge"] .mlh-pc-map__halo,
.mlh-anim .mlh-pc-map[data-active="dvev"] .mlh-pc-map__pin[data-place="dvev"] .mlh-pc-map__halo,
.mlh-anim .mlh-pc-map[data-active="main"] .mlh-pc-map__pin[data-place="main"] .mlh-pc-map__halo,
.mlh-anim .mlh-pc-map[data-active="airport"] .mlh-pc-map__pin[data-place="airport"] .mlh-pc-map__halo,
.mlh-anim .mlh-pc-map[data-active="tuhaye"] .mlh-pc-map__pin[data-place="tuhaye"] .mlh-pc-map__halo,
.mlh-anim .mlh-pc-map[data-active="redledges"] .mlh-pc-map__pin[data-place="redledges"] .mlh-pc-map__halo,
.mlh-anim .mlh-pc-map[data-active="marcella"] .mlh-pc-map__pin[data-place="marcella"] .mlh-pc-map__halo {
	animation: mlh-pc-pulse 2.6s ease-out infinite;
}

@keyframes mlh-pc-pulse {
	0% { transform: scale(0.6); fill-opacity: 0.34; }
	100% { transform: scale(1.7); fill-opacity: 0; }
}

@media (hover: hover) {
	.mlh-pc-map__pin:hover circle:not(.mlh-pc-map__halo),
	.mlh-pc-map__pin--star:hover path {
		transform: scale(1.25);
	}
}

/* The drawing comes in once, when it scrolls into view (park-city-map.js sets the classes). */
.mlh-anim .mlh-pc-map.is-waiting .mlh-pc-map__terrain {
	opacity: 0;
	transition: opacity 1.4s ease;
}

.mlh-anim .mlh-pc-map.is-waiting .mlh-pc-map__roads,
.mlh-anim .mlh-pc-map.is-waiting .mlh-pc-map__labels,
.mlh-anim .mlh-pc-map.is-waiting .mlh-pc-map__sky {
	opacity: 0;
	transition: opacity 1s ease 0.5s;
}

.mlh-anim .mlh-pc-map.is-waiting .mlh-pc-map__pin {
	opacity: 0;
	transition: opacity 0.6s ease calc(1s + var(--i, 0) * 0.12s);
}

.mlh-anim .mlh-pc-map.is-waiting .mlh-pc-map__route {
	transition-delay: 1.4s;
}

.mlh-anim .mlh-pc-map.is-in .mlh-pc-map__terrain,
.mlh-anim .mlh-pc-map.is-in .mlh-pc-map__roads,
.mlh-anim .mlh-pc-map.is-in .mlh-pc-map__labels,
.mlh-anim .mlh-pc-map.is-in .mlh-pc-map__sky,
.mlh-anim .mlh-pc-map.is-in .mlh-pc-map__pin {
	opacity: 1;
}

/* The list beside the map */
.mlh-pc-map__places {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--mlh-ink);
}

.mlh-pc-map__place {
	border-bottom: 1px solid var(--mlh-border);
}

.mlh-pc-map__btn {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 20px 0 18px;
	border: 0;
	background: none;
	color: var(--mlh-ink);
	text-align: left;
	cursor: pointer;
}

.mlh-pc-map__name {
	font: 400 clamp(19px, 1.6vw, 23px)/1.25 var(--mlh-serif);
	transition: color 0.3s ease, transform 0.4s var(--mlh-ease);
}

.mlh-pc-map__dist {
	flex: none;
	font: 300 clamp(19px, 1.6vw, 23px)/1.25 var(--mlh-serif);
	color: var(--mlh-bronze);
	font-variant-numeric: lining-nums;
}

.mlh-pc-map__btn[aria-expanded="true"] .mlh-pc-map__name {
	color: var(--mlh-bronze);
}

@media (hover: hover) {
	.mlh-pc-map__btn:hover .mlh-pc-map__name {
		transform: translateX(6px);
	}
}

.mlh-home .mlh-pc-map__text {
	margin: -4px 0 20px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--mlh-text);
}

/* With the script, only the chosen place's line shows. */
.mlh-pc-map.is-js .mlh-pc-map__btn[aria-expanded="false"] + .mlh-pc-map__text {
	display: none;
}

.mlh-home .mlh-pc-map__also {
	margin-top: 32px;
}

.mlh-home .mlh-pc-map__also-label {
	margin-bottom: 14px;
	font: 500 11px/1.4 var(--mlh-sans);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mlh-muted);
}

.mlh-pc-map__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mlh-pc-map__chip {
	padding: 10px 16px;
	border: 1px solid var(--mlh-ink);
	background: transparent;
	color: var(--mlh-ink);
	font: 500 12px/1 var(--mlh-sans);
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.mlh-pc-map__chip[aria-pressed="true"],
.mlh-pc-map__chip:hover {
	background: var(--mlh-dark);
	color: var(--mlh-bg);
}

.mlh-home .mlh-pc-map__note {
	min-height: 3.2em;
	margin-top: 16px;
	font-size: 15px;
	line-height: 1.55;
}

.mlh-pc-map__note a {
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   What does it cost? The answer beside a numbered list
   -------------------------------------------------------------------------- */

.mlh-home > .mlh-pc-cost {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px clamp(48px, 7vw, 120px);
	align-items: start;
}

.mlh-pc-cost__head {
	position: sticky;
	top: 120px;
}

.mlh-home .mlh-pc-cost__head h2 {
	margin-bottom: 24px;
}

.mlh-home .mlh-pc-cost__answer {
	max-width: 46ch;
	margin-bottom: 18px;
	font-size: 17px;
}

.mlh-pc-cost__list {
	counter-reset: mlh-pc-driver;
	border-top: 1px solid var(--mlh-ink);
}

.mlh-pc-driver {
	display: grid;
	grid-template-columns: 56px minmax(0, 2fr) minmax(0, 3fr);
	gap: 8px 24px;
	padding: 30px 0;
	border-bottom: 1px solid var(--mlh-border);
	counter-increment: mlh-pc-driver;
}

.mlh-pc-driver::before {
	content: "0" counter(mlh-pc-driver);
	font: 300 24px/1.2 var(--mlh-serif);
	color: var(--mlh-bronze);
}

.mlh-home .mlh-pc-driver h3 {
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 300;
}

.mlh-home .mlh-pc-driver__text {
	font-size: 16px;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Build timeline: a track that fills as you scroll, then one build from the job site
   -------------------------------------------------------------------------- */

.mlh-home .mlh-pc-build h2 {
	max-width: 24ch;
	margin-bottom: clamp(48px, 6vw, 80px);
}

.mlh-pc-time__track {
	--mlh-pc-gap: 24px;
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--mlh-pc-gap);
	padding-top: 44px;
}

/* The rail, and the bronze line along it, from the first dot to the last: the dots sit at a quarter,
   half and three quarters of it. park-city-map.js sets --mlh-pc-p (0 to 1) from the scroll, so the
   line grows as you scroll and each dot lights the moment the line reaches it. Without the script or
   with reduced motion the line is full and every step shows. */
.mlh-pc-time__track::before,
.mlh-pc-time__track::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 7px;
	right: calc((100% - 4 * var(--mlh-pc-gap)) / 5 - 8px);
	height: 1px;
	background: var(--mlh-border);
}

.mlh-pc-time__track::after {
	height: 2px;
	top: 6px;
	background: var(--mlh-bronze);
	transform: scaleX(var(--mlh-pc-p, 1));
	transform-origin: left center;
}

/* While the script syncs the timeline, a step waits quietly until the line reaches its dot. */
.mlh-pc-time__track.is-sync .mlh-pc-phase::before {
	transition: background-color 0.35s ease, transform 0.45s var(--mlh-ease), box-shadow 0.45s var(--mlh-ease);
}

.mlh-pc-time__track.is-sync .mlh-pc-phase:not(.is-on)::before {
	background: var(--mlh-bg);
}

.mlh-pc-time__track.is-sync .mlh-pc-phase.is-on::before {
	background: var(--mlh-bronze);
	transform: scale(1.15);
	box-shadow: 0 0 0 5px rgba(131, 111, 78, 0.16);
}

.mlh-pc-time__track.is-sync .mlh-pc-phase > :not(.mlh-pc-shot),
.mlh-pc-time__track.is-sync .mlh-pc-phase > .wp-block-group__inner-container > :not(.mlh-pc-shot),
.mlh-pc-time__track.is-sync .mlh-pc-shot img {
	transition: opacity 0.5s ease, filter 0.6s ease, transform 0.6s var(--mlh-ease);
}

.mlh-pc-time__track.is-sync .mlh-pc-phase:not(.is-on) > :not(.mlh-pc-shot),
.mlh-pc-time__track.is-sync .mlh-pc-phase:not(.is-on) > .wp-block-group__inner-container > :not(.mlh-pc-shot) {
	opacity: 0.4;
	transform: translate3d(0, 8px, 0);
}

.mlh-pc-time__track.is-sync .mlh-pc-phase:not(.is-on) .mlh-pc-shot img {
	opacity: 0.55;
	filter: grayscale(1);
}

.mlh-pc-phase {
	position: relative;
}

.mlh-pc-phase::before {
	content: "";
	position: absolute;
	top: -44px;
	left: 0;
	width: 15px;
	height: 15px;
	border: 1px solid var(--mlh-bronze);
	border-radius: 50%;
	background: var(--mlh-bg);
}

.mlh-pc-phase:last-child::before {
	background: var(--mlh-bronze);
}

.mlh-home .mlh-pc-phase h3 {
	margin-bottom: 10px;
	font-size: clamp(22px, 1.9vw, 27px);
	font-weight: 300;
}

.mlh-home .mlh-pc-phase__text {
	font-size: 15px;
	line-height: 1.6;
}

.mlh-home .mlh-pc-phase .mlh-link {
	margin-top: 14px;
}

/* Each step of the timeline has its photo, its date and a line */
.mlh-pc-build .mlh-pc-time__track {
	gap: 24px;
}

.mlh-home .mlh-pc-shot {
	margin: 0 0 16px;
	overflow: hidden;
}

.mlh-pc-shot img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.mlh-home .mlh-pc-phase__when {
	margin-bottom: 6px;
	font: 500 11px/1.4 var(--mlh-sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mlh-bronze);
}

/* --------------------------------------------------------------------------
   Building from out of state: a dark band beside a photo
   -------------------------------------------------------------------------- */

.mlh-home > .mlh-pc-away {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	max-width: none;
	margin-bottom: 128px;
	padding: 0;
	background: var(--mlh-dark);
	color: var(--mlh-bg);
}

.mlh-home .mlh-pc-away__photo {
	min-height: clamp(380px, 46vw, 680px);
	margin: 0;
	overflow: clip;
}

.mlh-pc-away__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 40% 50%;
}

.mlh-home .mlh-pc-away__text {
	align-self: center;
	max-width: 620px;
	padding: clamp(48px, 7vw, 112px) clamp(24px, 5vw, 96px);
}

.mlh-home .mlh-pc-away h2 {
	margin-bottom: 24px;
	font-size: clamp(32px, 3.4vw, 50px);
	font-weight: 300;
	color: #fff;
}

.mlh-home .mlh-pc-away__body {
	margin-bottom: 16px;
	font-size: 17px;
	line-height: 1.65;
	color: rgba(246, 244, 236, 0.85);
}

.mlh-pc-away__list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.mlh-pc-away__list li {
	padding: 12px 0;
	border-top: 1px solid rgba(246, 244, 236, 0.18);
	font-size: 16px;
	line-height: 1.55;
	color: rgba(246, 244, 236, 0.85);
}

.mlh-pc-away__list strong {
	font-weight: 600;
	color: #fff;
}

.mlh-home .mlh-pc-away .mlh-link a {
	color: var(--mlh-bg);
}

.mlh-home .mlh-pc-away .mlh-link a:hover {
	color: #d9c9a8;
}

/* --------------------------------------------------------------------------
   Four of our homes
   -------------------------------------------------------------------------- */

.mlh-pc-homes__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 24px;
}

.mlh-home .mlh-pc-home .wp-block-image {
	margin: 0 0 16px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
}

.mlh-pc-home .wp-block-image a,
.mlh-pc-home .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
}

.mlh-pc-home .wp-block-image img {
	object-fit: cover;
	transition: transform 1.4s var(--mlh-ease);
}

@media (hover: hover) {
	.mlh-pc-home .wp-block-image a:hover img {
		transform: scale(1.04);
	}
}

.mlh-home .mlh-pc-home__tag {
	margin-bottom: 6px;
	font: 500 11px/1.4 var(--mlh-sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mlh-bronze);
}

.mlh-home .mlh-pc-home h3 {
	margin-bottom: 6px;
	font-size: clamp(24px, 2vw, 30px);
	font-weight: 300;
}

.mlh-home .mlh-pc-home h3 a {
	text-decoration: none;
}

.mlh-home .mlh-pc-home__meta {
	font-size: 14px;
	line-height: 1.5;
	color: var(--mlh-muted);
}

.mlh-home .mlh-pc-homes__all {
	margin-top: 48px;
}

/* --------------------------------------------------------------------------
   The team, with their photos
   -------------------------------------------------------------------------- */

.mlh-pc-team__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px clamp(24px, 3vw, 48px);
}

.mlh-home .mlh-pc-person .wp-block-image {
	margin: 0 0 18px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--mlh-band);
}

.mlh-pc-person .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
}

.mlh-home .mlh-pc-person h3 {
	margin-bottom: 6px;
	font-size: clamp(22px, 1.9vw, 27px);
	font-weight: 300;
}

.mlh-home .mlh-pc-person__role {
	max-width: 40ch;
	font-size: 15px;
	line-height: 1.55;
	color: var(--mlh-text);
}

.mlh-home .mlh-pc-team__more {
	margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Questions to ask any builder: numbered cards on a band, with our answers
   -------------------------------------------------------------------------- */

.mlh-home > .mlh-pc-ask {
	max-width: none;
	margin-bottom: 128px;
	padding: clamp(72px, 8vw, 112px) 0;
	background: var(--mlh-band);
}

:is(.mlh-pc-ask, .mlh-pc-ask > .wp-block-group__inner-container) > * {
	max-width: var(--mlh-max);
	margin-inline: auto;
	padding-inline: var(--mlh-gutter);
}

.mlh-pc-ask__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	border: 0;
}

.mlh-pc-qa {
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 3vw, 40px);
	border: 0;
	background: var(--mlh-bg);
	transition: translate 0.5s var(--mlh-ease), box-shadow 0.5s var(--mlh-ease);
}

:is(.mlh-pc-qa, .mlh-pc-qa > .wp-block-group__inner-container) {
	display: flex;
	flex-direction: column;
}

.mlh-home .mlh-pc-qa__num {
	margin-bottom: 20px;
	font: 300 40px/1 var(--mlh-serif);
	color: var(--mlh-bronze);
	font-variant-numeric: lining-nums;
}

.mlh-home .mlh-pc-qa h3 {
	margin-bottom: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--mlh-border);
	font-size: clamp(20px, 1.7vw, 24px);
	font-weight: 400;
	line-height: 1.25;
}

.mlh-home .mlh-pc-qa__answer {
	font-size: 15px;
	line-height: 1.6;
}

/* The last card: ask your own */
.mlh-pc-qa--cta {
	justify-content: flex-end;
	background: var(--mlh-dark);
	color: rgba(246, 244, 236, 0.85);
}

.mlh-home .mlh-pc-qa--cta h3 {
	margin-top: auto;
	border-bottom-color: rgba(246, 244, 236, 0.2);
	color: #fff;
}

.mlh-home .mlh-pc-qa--cta .mlh-pc-qa__answer {
	color: rgba(246, 244, 236, 0.85);
}

.mlh-home .mlh-pc-qa--cta .mlh-link {
	margin-top: 20px;
}

.mlh-home .mlh-pc-qa--cta .mlh-link a {
	color: var(--mlh-bg);
}

@media (hover: hover) {
	.mlh-pc-qa:hover {
		translate: 0 -4px;
		box-shadow: 0 16px 36px rgba(66, 64, 58, 0.12);
	}
}

/* --------------------------------------------------------------------------
   Closing: the question over a full-width photo
   -------------------------------------------------------------------------- */

.mlh-home > .mlh-pc-close {
	position: relative;
	display: grid;
	max-width: none;
	min-height: clamp(440px, 72vh, 760px);
	padding: 0;
	overflow: clip;
	background: var(--mlh-dark);
}

.mlh-home .mlh-pc-close__photo,
.mlh-pc-close__text {
	grid-area: 1 / 1;
}

.mlh-home .mlh-pc-close__photo {
	margin: 0;
}

.mlh-pc-close__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 72%;
}

.mlh-pc-close__text {
	position: relative;
	z-index: 1;
	align-self: end;
	width: 100%;
	max-width: var(--mlh-max);
	margin-inline: auto;
	padding: 0 var(--mlh-gutter) clamp(56px, 8vw, 104px);
}

.mlh-pc-close::after {
	content: "";
	grid-area: 1 / 1;
	background:
		linear-gradient(90deg, rgba(10, 12, 16, 0.66) 0%, rgba(10, 12, 16, 0.32) 45%, rgba(10, 12, 16, 0) 75%),
		linear-gradient(180deg, rgba(10, 12, 16, 0) 40%, rgba(10, 12, 16, 0.5) 100%);
	pointer-events: none;
}

.mlh-home .mlh-pc-close h2 {
	max-width: 14ch;
	margin-bottom: 32px;
	font-size: clamp(38px, 5vw, 72px);
	font-weight: 300;
	color: #fff;
}

.mlh-home .mlh-pc-close .mlh-btn .wp-block-button__link {
	border-color: var(--mlh-bg);
	background: var(--mlh-bg);
	color: var(--mlh-dark);
}

.mlh-home .mlh-pc-close .mlh-btn .wp-block-button__link:hover {
	border-color: #fff;
	background: transparent;
	color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
	@supports ((animation-timeline: view()) and (animation-range: entry)) {
		.mlh-anim .mlh-pc-close__photo img,
		.mlh-anim .mlh-pc-away__photo img {
			animation: mlh-pc-settle linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 60%;
		}
	}
}

@keyframes mlh-pc-settle {
	from { transform: scale(1.14); }
	to { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Tablets and phones
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
	.mlh-home > .mlh-pc-cost,
	.mlh-pc-map {
		grid-template-columns: 1fr;
	}

	.mlh-pc-homes__grid,
	.mlh-pc-ask__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mlh-pc-cost__head {
		position: static;
	}

	.mlh-pc-time__track {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 56px;
	}

	.mlh-pc-time__track::before,
	.mlh-pc-time__track::after {
		display: none;
	}

	.mlh-pc-phase::before {
		top: -30px;
	}

	.mlh-home > .mlh-pc-away {
		grid-template-columns: 1fr;
	}

	.mlh-home .mlh-pc-away__photo {
		min-height: 0;
		aspect-ratio: 3 / 2;
	}
}

@media (max-width: 760px) {
	/* On a phone the drawing is small: pins, route numbers and the Park City star are set larger,
	   and only the chosen place keeps its label. */
	.mlh-pc-map__in {
		scale: 2.1;
	}

	.mlh-pc-map__shield .mlh-pc-map__in {
		scale: 1.9;
	}

	.mlh-pc-map__pin text {
		display: none;
	}

	.mlh-pc-map__pin--star text,
	.mlh-pc-map[data-active="skyridge"] .mlh-pc-map__pin[data-place="skyridge"] text,
	.mlh-pc-map[data-active="dvev"] .mlh-pc-map__pin[data-place="dvev"] text,
	.mlh-pc-map[data-active="main"] .mlh-pc-map__pin[data-place="main"] text,
	.mlh-pc-map[data-active="airport"] .mlh-pc-map__pin[data-place="airport"] text,
	.mlh-pc-map[data-active="tuhaye"] .mlh-pc-map__pin[data-place="tuhaye"] text,
	.mlh-pc-map[data-active="redledges"] .mlh-pc-map__pin[data-place="redledges"] text,
	.mlh-pc-map[data-active="marcella"] .mlh-pc-map__pin[data-place="marcella"] text {
		display: block;
	}

	.mlh-pc-map__town {
		font-size: 30px;
		stroke-width: 6px;
	}

	.mlh-pc-map__water-label {
		font-size: 28px;
	}

	.mlh-pc-map__faint,
	.mlh-pc-map__road--minor {
		display: none;
	}

	.mlh-pc-map__road.mlh-pc-map__road--major { stroke-width: 6; }
	.mlh-pc-map__road-case.mlh-pc-map__road--major { stroke-width: 10; }
	.mlh-pc-map__road.mlh-pc-map__road--primary { stroke-width: 4.4; }
	.mlh-pc-map__road-case.mlh-pc-map__road--primary { stroke-width: 7.4; }
	.mlh-pc-map__route { stroke-width: 8; }
	.mlh-pc-map__sky path { stroke-width: 4; }

	.mlh-pc-driver {
		grid-template-columns: 40px minmax(0, 1fr);
	}

	.mlh-home .mlh-pc-driver__text {
		grid-column: 2;
	}

	/* The track runs down the left side; the script keeps the line's tip level with a point on the
	   screen, and each dot lights as the tip passes it. */
	.mlh-pc-time__track {
		grid-template-columns: 1fr;
		row-gap: 36px;
		padding: 0 0 0 40px;
	}

	.mlh-pc-time__track::before,
	.mlh-pc-time__track::after {
		display: block;
		top: 8px;
		bottom: 8px;
		left: 7px;
		right: auto;
		width: 1px;
		height: auto;
	}

	.mlh-pc-time__track::after {
		left: 6px;
		width: 2px;
		transform: scaleY(var(--mlh-pc-p, 1));
		transform-origin: center top;
	}

	.mlh-pc-phase::before {
		top: 6px;
		left: -40px;
	}

	/* The first screen grows to fit: title, line, button and phone, then the home card. */
	.mlh-hero--pc {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		height: auto;
		min-height: 88vh;
		min-height: 88svh;
	}

	.mlh-hero--pc .mlh-hero__shade {
		background: linear-gradient(180deg, rgba(10, 12, 16, 0.5) 0%, rgba(10, 12, 16, 0.2) 25%, rgba(10, 12, 16, 0.55) 55%, rgba(10, 12, 16, 0.8) 100%);
	}

	.mlh-hero--pc .mlh-hero__inner {
		position: relative;
		padding-top: 120px;
		padding-bottom: 32px;
	}

	.mlh-hero__card {
		display: grid;
		grid-template-columns: 92px minmax(0, 1fr);
		align-items: center;
		width: 100%;
	}

	.mlh-hero__card-img {
		height: 100%;
		aspect-ratio: 1 / 1;
	}

	.mlh-pc-proof__item {
		padding-left: 14px;
	}

	.mlh-pc-homes__grid {
		gap: 32px 14px;
	}

	.mlh-pc-team__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.mlh-pc-person {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		column-gap: 18px;
		align-items: start;
	}

	.mlh-home .mlh-pc-person .wp-block-image {
		grid-row: 1 / span 2;
		margin: 0;
	}

	.mlh-pc-ask__list {
		grid-template-columns: 1fr;
	}
}
