/* =============================================================================
   Ecoleas · Contact artboard
   ============================================================================= */

.ec-contact {
	--ec-contact-paper: var(--ec-page);
	--ec-contact-ground: var(--ec-ivory);
	--ec-contact-ink: var(--ec-ink);
	--ec-contact-muted: var(--ec-label-brown);
	--ec-contact-gold: var(--ec-sand);
	--ec-contact-rule: var(--ec-rule-field);
	background: var(--ec-contact-paper);
	color: var(--ec-contact-ink);
	font-family: var(--ec-font-text);
	overflow: clip;
}

.ec-contact-kicker {
	margin: 0;
	color: var(--ec-contact-muted);
	font-family: var(--ec-font-text);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .24em;
	line-height: 1.35;
	text-transform: uppercase;
}

.ec-contact-hero {
	display: grid;
	grid-template-columns: minmax(0, .94fr) minmax(430px, 1.06fr);
	min-height: clamp(440px, 39vw, 560px);
	background: var(--ec-contact-ground);
}

.ec-contact-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(36px, 4vw, 64px) clamp(32px, 8vw, 148px);
	position: relative;
	z-index: 1;
}

.ec-contact-hero__title,
.ec-contact-section-head h2,
.ec-contact-newsletter h2 {
	margin: 16px 0 0;
	color: var(--ec-contact-ink);
	font-family: var(--ec-font-display);
	font-size: clamp(48px, 5.25vw, 90px);
	font-weight: 400;
	letter-spacing: -.03em;
	line-height: 1.04;
}

.ec-contact-hero__title span {
	display: block;
}

.ec-contact-hero__intro {
	max-width: 460px;
	margin: 20px 0 0;
	color: var(--ec-contact-muted);
	font-family: var(--ec-font-text);
	font-size: 15px;
	line-height: 1.7;
}

.ec-contact-hero__line {
	display: block;
	width: min(134px, 42%);
	height: 1px;
	margin-top: 24px;
	background: var(--ec-contact-gold);
	transform-origin: left;
}

.ec-contact-hero__media {
	min-height: 100%;
	overflow: hidden;
	position: relative;
	background: #d8c9b9;
}

.ec-contact-hero__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(45, 29, 19, .14), transparent 30%);
	content: '';
	pointer-events: none;
}

.ec-contact-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(440px, 39vw, 560px);
	object-fit: cover;
	object-position: center center;
	will-change: transform, filter;
}

.ec-contact-main {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
	gap: clamp(40px, 6vw, 96px);
	padding: clamp(54px, 7vw, 96px) clamp(24px, 8vw, 140px);
	background: var(--ec-contact-paper);
}

.ec-contact-section-head h2 {
	font-size: clamp(38px, 3.7vw, 62px);
	letter-spacing: -.03em;
	line-height: 1.04;
	text-transform: uppercase;
}

.ec-contact-section-head > p:last-child {
	max-width: 420px;
	margin: 20px 0 0;
	color: var(--ec-contact-muted);
	font-size: 14px;
	line-height: 1.65;
}

.ec-contact-notice {
	margin: 28px 0 -2px;
	padding: 13px 15px;
	border-left: 2px solid var(--ec-contact-gold);
	background: var(--ec-contact-ground);
	color: var(--ec-contact-muted);
	font-size: 13px;
	line-height: 1.5;
}

.ec-contact-notice--success {
	border-left-color: var(--ec-contact-ink);
	color: var(--ec-contact-ink);
}

.ec-contact-form {
	margin-top: 43px;
}

.ec-contact-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 18px;
}

.ec-contact-field {
	position: relative;
}

.ec-contact-field--message {
	grid-column: 1 / -1;
}

.ec-contact-field label {
	display: block;
	margin: 0 0 8px;
	color: var(--ec-contact-muted);
	font-family: var(--ec-font-text);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ec-contact-field label span {
	letter-spacing: .06em;
	text-transform: none;
}

.ec-contact-field input,
.ec-contact-field textarea,
.ec-contact-newsletter__form input {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--ec-contact-rule);
	border-radius: 2px;
	outline: none;
	background: rgba(255, 255, 255, .46);
	color: var(--ec-contact-ink);
	font: inherit;
	font-size: 14px;
	transition: border-color 380ms cubic-bezier(.22, 1, .36, 1), box-shadow 380ms cubic-bezier(.22, 1, .36, 1), background-color 380ms cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-field input {
	height: 53px;
	padding: 0 16px;
}

.ec-contact-field:has(.ec-contact-field__icon) input {
	padding-left: 42px;
}

.ec-contact-field textarea {
	min-height: 148px;
	padding: 15px 16px;
	resize: vertical;
}

.ec-contact-field__icon {
	position: absolute;
	bottom: 17px;
	left: 15px;
	display: grid;
	place-items: center;
	color: var(--ec-contact-gold);
	pointer-events: none;
	transition: transform 380ms cubic-bezier(.22, 1, .36, 1), color 380ms cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-field input:focus,
.ec-contact-field textarea:focus,
.ec-contact-newsletter__form input:focus {
	border-color: var(--ec-contact-gold);
	background: var(--ec-contact-paper);
	box-shadow: 0 0 0 3px rgba(201, 168, 139, .15);
}

.ec-contact-field:focus-within .ec-contact-field__icon {
	color: var(--ec-contact-ink);
	transform: scale(1.08) translateY(-1px);
}

.ec-contact-submit,
.ec-contact-newsletter__form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 13px;
	border: 1px solid var(--ec-contact-ink);
	border-radius: 0;
	background: var(--ec-contact-ink);
	color: var(--ec-contact-paper);
	cursor: pointer;
	font-family: var(--ec-font-text);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .17em;
	line-height: 1;
	text-transform: uppercase;
	transition: background-color 360ms cubic-bezier(.22, 1, .36, 1), color 360ms cubic-bezier(.22, 1, .36, 1), transform 360ms cubic-bezier(.22, 1, .36, 1), border-color 360ms cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-submit {
	min-height: 53px;
	margin-top: 28px;
	padding: 0 25px;
}

.ec-contact-submit svg,
.ec-contact-newsletter__form button svg,
.ec-contact-assist__link svg {
	transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-submit:hover,
.ec-contact-newsletter__form button:hover {
	border-color: var(--ec-contact-gold);
	background: var(--ec-contact-gold);
	color: var(--ec-contact-ink);
	transform: scale(1.01);
}

.ec-contact-submit:hover svg,
.ec-contact-newsletter__form button:hover svg,
.ec-contact-assist__story:hover svg {
	transform: translateX(4px);
}

.ec-contact-info {
	align-self: start;
	padding: 7px 0 0;
}

.ec-contact-details {
	margin: 43px 0 0;
	border-top: 1px solid var(--ec-contact-rule);
}

.ec-contact-details__item {
	padding: 23px 0 24px;
	border-bottom: 1px solid var(--ec-contact-rule);
}

.ec-contact-details dt {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--ec-contact-ink);
	font-family: var(--ec-font-text);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .16em;
	line-height: 1.35;
	text-transform: uppercase;
}

.ec-contact-details dd {
	margin: 14px 0 0 48px;
	color: var(--ec-contact-muted);
	font-size: 14px;
	line-height: 1.7;
}

.ec-contact-details a {
	color: inherit;
	text-decoration: none;
	text-decoration-color: var(--ec-contact-gold);
	text-underline-offset: 4px;
	transition: color 280ms ease, text-decoration-color 280ms ease;
}

.ec-contact-details a:hover {
	color: var(--ec-contact-ink);
	text-decoration: underline;
}

.ec-contact-details__icon {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid var(--ec-contact-rule);
	border-radius: 50%;
	color: var(--ec-contact-gold);
}

.ec-contact-assist {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr) minmax(0, 1fr);
	align-items: stretch;
	min-height: 440px;
	border-top: 1px solid var(--ec-contact-rule);
	border-bottom: 1px solid var(--ec-contact-rule);
	background: var(--ec-contact-ground);
}

.ec-contact-assist__story {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: 100%;
	padding: clamp(45px, 6vw, 96px) clamp(28px, 5.5vw, 100px);
	color: var(--ec-contact-ink);
	text-decoration: none;
}

.ec-contact-assist__story strong {
	margin-top: 20px;
	font-family: var(--ec-font-display);
	font-size: clamp(30px, 2.65vw, 48px);
	font-weight: 400;
	letter-spacing: -.045em;
	line-height: .98;
}

.ec-contact-assist__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 30px;
	padding-bottom: 7px;
	border-bottom: 1px solid var(--ec-contact-gold);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .15em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: border-color 360ms cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-assist__story:hover .ec-contact-assist__link {
	border-bottom-color: var(--ec-contact-ink);
}

.ec-contact-assist__image {
	min-height: 440px;
	overflow: hidden;
	background: #c8b6a6;
}

.ec-contact-assist__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-assist__image:hover img {
	transform: scale(1.03);
}

.ec-contact-newsletter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	padding: clamp(66px, 8vw, 114px) clamp(24px, 8vw, 140px);
	background: var(--ec-contact-paper);
}

.ec-contact-newsletter h2 {
	max-width: 620px;
	margin-top: 17px;
	font-size: clamp(34px, 3.55vw, 58px);
	letter-spacing: -.045em;
	line-height: .98;
}

.ec-contact-newsletter__form {
	display: flex;
	width: min(100%, 460px);
	border-bottom: 1px solid var(--ec-contact-ink);
}

.ec-contact-newsletter__form input {
	height: 50px;
	min-width: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none !important;
	padding: 0 12px 0 0;
}

.ec-contact-newsletter__form input::placeholder {
	color: var(--ec-contact-muted);
	opacity: .8;
}

.ec-contact-newsletter__form button {
	flex: 0 0 auto;
	padding: 0 16px;
	border: 0;
	background: transparent;
	color: var(--ec-contact-ink);
}

.ec-contact-newsletter__form button:hover {
	background: transparent;
	color: var(--ec-contact-gold);
	transform: none;
}

.ec-contact-motion .ec-contact-hero__media {
	clip-path: inset(0 0 0 100%);
	transition: clip-path 1.35s cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-motion .ec-contact-hero__media img {
	filter: blur(3px);
	transform: scale(1.08);
	transition: transform 1.65s cubic-bezier(.22, 1, .36, 1), filter 1.25s cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-motion .ec-contact-hero__title {
	overflow: hidden;
}

.ec-contact-motion .ec-contact-hero__title span,
.ec-contact-motion [data-contact-hero-copy] {
	opacity: 0;
	transform: translateY(38px);
	transition: opacity 700ms cubic-bezier(.22, 1, .36, 1), transform 900ms cubic-bezier(.22, 1, .36, 1), filter 800ms cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-motion .ec-contact-hero__title span {
	filter: blur(4px);
}

.ec-contact-motion .ec-contact-hero__line {
	transform: scaleX(0);
	transition: transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-motion .ec-contact-hero.is-ready .ec-contact-hero__media {
	clip-path: inset(0);
}

.ec-contact-motion .ec-contact-hero.is-ready .ec-contact-hero__media img {
	filter: blur(0);
	transform: translate3d(var(--ec-contact-parallax-x, 0), var(--ec-contact-parallax-y, 0), 0) scale(1);
}

.ec-contact-motion .ec-contact-hero.is-ready [data-contact-hero-copy],
.ec-contact-motion .ec-contact-hero.is-ready .ec-contact-hero__title span {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

.ec-contact-motion .ec-contact-hero.is-ready .ec-contact-kicker {
	transition-delay: 430ms;
}

.ec-contact-motion .ec-contact-hero.is-ready .ec-contact-hero__title span:first-child {
	transition-delay: 540ms;
}

.ec-contact-motion .ec-contact-hero.is-ready .ec-contact-hero__title span:last-child {
	transition-delay: 660ms;
}

.ec-contact-motion .ec-contact-hero.is-ready .ec-contact-hero__intro {
	transition-delay: 790ms;
}

.ec-contact-motion .ec-contact-hero.is-ready .ec-contact-hero__line {
	transition-delay: 920ms;
	transform: scaleX(1);
}

.ec-contact-motion [data-contact-reveal] {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 780ms cubic-bezier(.22, 1, .36, 1), transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-motion [data-contact-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ec-contact-motion [data-contact-field],
.ec-contact-motion [data-contact-detail] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 650ms cubic-bezier(.22, 1, .36, 1), transform 750ms cubic-bezier(.22, 1, .36, 1);
}

.ec-contact-motion .is-visible [data-contact-field],
.ec-contact-motion .is-visible [data-contact-detail] {
	opacity: 1;
	transform: translateY(0);
}

.ec-contact-motion .is-visible [data-contact-field]:nth-child(2),
.ec-contact-motion .is-visible [data-contact-detail]:nth-child(2) { transition-delay: 90ms; }
.ec-contact-motion .is-visible [data-contact-field]:nth-child(3),
.ec-contact-motion .is-visible [data-contact-detail]:nth-child(3) { transition-delay: 180ms; }
.ec-contact-motion .is-visible [data-contact-field]:nth-child(4),
.ec-contact-motion .is-visible [data-contact-detail]:nth-child(4) { transition-delay: 270ms; }
.ec-contact-motion .is-visible [data-contact-field]:nth-child(5) { transition-delay: 360ms; }

@media (max-width: 980px) {
	.ec-contact-hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.ec-contact-hero__copy {
		min-height: 0;
		padding: clamp(58px, 8vw, 80px) clamp(28px, 12vw, 140px);
	}

	.ec-contact-hero__media,
	.ec-contact-hero__media img {
		min-height: 420px;
	}

	.ec-contact-main {
		grid-template-columns: 1fr;
		gap: 52px;
	}

	.ec-contact-info {
		max-width: 620px;
	}

	.ec-contact-assist {
		grid-template-columns: 1fr 300px;
	}

	.ec-contact-assist__story--measure {
		grid-column: 1 / -1;
		border-top: 1px solid var(--ec-contact-rule);
	}

	.ec-contact-newsletter {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 620px) {
	.ec-contact-hero__copy {
		min-height: 0;
		padding: 74px 27px 52px;
	}

	.ec-contact-hero__title {
		font-size: clamp(48px, 16vw, 66px);
	}

	.ec-contact-hero__media,
	.ec-contact-hero__media img {
		min-height: 390px;
	}

	.ec-contact-main {
		gap: 42px;
		padding: 54px 24px;
	}

	.ec-contact-form__grid {
		grid-template-columns: 1fr;
	}

	.ec-contact-field--message {
		grid-column: auto;
	}

	.ec-contact-assist {
		grid-template-columns: 1fr;
	}

	.ec-contact-assist__image {
		order: -1;
		min-height: 390px;
	}

	.ec-contact-assist__story--measure {
		grid-column: auto;
	}

	.ec-contact-assist__story {
		min-height: 310px;
	}

	.ec-contact-newsletter {
		gap: 34px;
		padding: 70px 24px;
	}

	.ec-contact-newsletter__form {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ec-contact *,
	.ec-contact *::before,
	.ec-contact *::after {
		transition-duration: 1ms !important;
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}
