/* Homepage video hero */

.thsc-home-hero {
	--thsc-hero-serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
	--thsc-hero-sans: "Source Sans Pro", "Segoe UI", sans-serif;
	--thsc-hero-ink: #ffffff;
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: stretch;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: calc(95vh - var(--thsc-site-chrome, 88px));
	min-height: calc(95dvh - var(--thsc-site-chrome, 88px));
	overflow: hidden;
	color: var(--thsc-hero-ink);
	background: #1a1612;
	font-family: var(--thsc-hero-sans);
}

.thsc-home-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.thsc-home-hero__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.thsc-home-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(12, 10, 8, 0.22) 0%, rgba(12, 10, 8, 0.1) 50%, rgba(12, 10, 8, 0.04) 100%),
		linear-gradient(180deg, rgba(12, 10, 8, 0.1) 0%, rgba(12, 10, 8, 0.03) 50%, rgba(167, 154, 141, 0.12) 100%);
	pointer-events: none;
}

.thsc-home-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	flex: 1 1 auto;
	width: min(1212px, 100%);
	max-width: 1212px;
	min-height: 100%;
	margin-right: auto;
	margin-left: auto;
	padding: clamp(96px, 12vh, 120px) 21px clamp(72px, 10vh, 96px);
	box-sizing: border-box;
}

.thsc-home-hero__copy {
	max-width: 60rem;
	animation: thsc-hero-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.thsc-home-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 26px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	line-height: 1.2;
	text-transform: uppercase;
}

.thsc-home-hero__eyebrow-rule {
	display: block;
	width: 28px;
	height: 1px;
	background: rgba(255, 255, 255, 0.9);
	flex-shrink: 0;
}

.thsc-home-hero__title {
	margin: 0;
	color: #fff;
	font-family: var(--thsc-hero-serif);
	font-size: clamp(44px, 5.8vw, 72px);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.5;
	text-transform: none;
}

.thsc-home-hero__title-line {
	display: block;
	line-height: 1.5;
}

.thsc-home-hero__title br,
.thsc-home-hero__title-line br {
	display: none !important;
}

.thsc-home-hero__title-line--italic {
	font-style: italic;
	font-weight: 400;
}

.thsc-home-hero__lead {
	max-width: 60ch;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(22px, 1.25vw, 17px);
	font-weight: 300;
	letter-spacing: 0.01em;
	line-height: 1.55;
}

.thsc-home-hero__actions {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	gap: 14px;
	width: max-content;
	max-width: 100%;
	margin-top: 30px;
	animation: thsc-hero-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
}

.thsc-home-hero__actions br,
.thsc-home-hero a.thsc-home-hero__btn br,
.thsc-home-hero__btn br {
	display: none !important;
}

.thsc-home-hero a.thsc-home-hero__btn,
.thsc-home-hero__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 1 1 0;
	width: auto;
	min-width: 200px;
	height: 50px;
	min-height: 50px;
	max-height: 50px;
	padding: 0 24px !important;
	margin: 0 !important;
	border-width: 1px !important;
	border-style: solid !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	box-sizing: border-box !important;
	background-image: none !important;
	font-family: "Montserrat", var(--thsc-hero-sans) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	line-height: 1 !important;
	vertical-align: middle;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.thsc-home-hero a.thsc-home-hero__btn--primary,
.thsc-home-hero__btn--primary {
	background: #f3efe6 !important;
	background-color: #f3efe6 !important;
	border-color: #f3efe6 !important;
	color: #2c2824 !important;
}

.thsc-home-hero a.thsc-home-hero__btn--primary:hover,
.thsc-home-hero a.thsc-home-hero__btn--primary:focus,
.thsc-home-hero__btn--primary:hover,
.thsc-home-hero__btn--primary:focus {
	background: #e8e2d6 !important;
	background-color: #e8e2d6 !important;
	border-color: #e8e2d6 !important;
	color: #2c2824 !important;
	text-decoration: none !important;
}

.thsc-home-hero a.thsc-home-hero__btn--ghost,
.thsc-home-hero__btn--ghost {
	background: transparent !important;
	background-color: transparent !important;
	border-color: #f3efe6 !important;
	color: #f3efe6 !important;
}

.thsc-home-hero a.thsc-home-hero__btn--ghost:hover,
.thsc-home-hero a.thsc-home-hero__btn--ghost:focus,
.thsc-home-hero__btn--ghost:hover,
.thsc-home-hero__btn--ghost:focus {
	background: rgba(243, 239, 230, 0.08) !important;
	background-color: rgba(243, 239, 230, 0.08) !important;
	border-color: #f3efe6 !important;
	color: #f3efe6 !important;
	text-decoration: none !important;
}

.thsc-home-hero__meta {
	position: absolute;
	right: 21px;
	bottom: clamp(28px, 4vh, 40px);
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
	animation: thsc-hero-fade 1000ms ease 280ms both;
}

.thsc-home-hero__index {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.thsc-home-hero__index-sep {
	opacity: 0.55;
}

.thsc-home-hero__index-total {
	opacity: 0.7;
}

.thsc-home-hero__meta-rule {
	display: block;
	width: 36px;
	height: 1px;
	background: rgba(255, 255, 255, 0.7);
	flex-shrink: 0;
}

.thsc-home-hero__caption {
	display: inline-block;
	min-width: 12ch;
	transition: opacity 320ms ease, transform 320ms ease;
}

.thsc-home-hero__caption.is-leaving {
	opacity: 0;
	transform: translateY(6px);
}

.thsc-home-hero__caption.is-entering {
	opacity: 0;
	transform: translateY(-6px);
}

@keyframes thsc-hero-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes thsc-hero-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Pull hero flush under the site chrome on the front page */
body.thsc-home-hero-page .block-content > .container,
body.thsc-home-hero-page .block-content > .container-fullwidth {
	padding-top: 0;
}

body.thsc-home-hero-page .block-content .vc_row:has(.thsc-home-hero),
body.thsc-home-hero-page .block-content .wpb_row:has(.thsc-home-hero) {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.thsc-home-hero-page .block-content > .container > .vc_row:first-child,
body.thsc-home-hero-page .block-content > .container-fullwidth > .vc_row:first-child {
	margin-top: 0 !important;
}

@media (max-width: 767px) {
	.thsc-home-hero {
		min-height: calc(100dvh - var(--thsc-site-chrome, 52px));
	}

	.thsc-home-hero__inner {
		justify-content: center;
		padding-top: 110px;
		padding-bottom: 72px;
	}

	.thsc-home-hero__copy {
		max-width: 100%;
	}

	.thsc-home-hero__title {
		font-size: clamp(36px, 10vw, 48px);
	}

	.thsc-home-hero__actions {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		width: 100%;
	}

	.thsc-home-hero a.thsc-home-hero__btn,
	.thsc-home-hero__btn {
		min-width: 0;
		padding: 0 14px !important;
		font-size: 10px !important;
		letter-spacing: 0.1em !important;
	}

	.thsc-home-hero__meta {
		right: auto;
		left: 21px;
		flex-wrap: wrap;
		gap: 10px 12px;
	}

	.thsc-home-hero__meta-rule {
		width: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thsc-home-hero__copy,
	.thsc-home-hero__actions,
	.thsc-home-hero__meta,
	.thsc-home-hero__caption {
		animation: none;
		transition: none;
	}

	.thsc-home-hero__video {
		display: none;
	}

	.thsc-home-hero__media {
		background: var(--thsc-hero-poster, none) center / cover no-repeat, #1a1612;
	}
}

/* Feature perks band under the hero */
.thsc-home-perks {
	--thsc-perks-bg: #f7f1ea;
	--thsc-perks-ink: #3d342c;
	--thsc-perks-muted: #6b5f54;
	--thsc-perks-accent: #a85a32;
	--thsc-perks-icon-bg: #efe6db;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: var(--thsc-perks-bg);
	color: var(--thsc-perks-ink);
	font-family: "Source Sans Pro", "Segoe UI", sans-serif;
}

.thsc-home-perks__inner {
	width: min(1212px, 100%);
	margin: 0 auto;
	padding: 28px 21px;
	box-sizing: border-box;
}

.thsc-home-perks__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.thsc-home-perks__item {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.thsc-home-perks__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--thsc-perks-icon-bg);
	color: var(--thsc-perks-accent);
}

.thsc-home-perks__icon svg {
	display: block;
	width: 28px;
	height: 28px;
}

.thsc-home-perks__copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.thsc-home-perks__title {
	color: var(--thsc-perks-ink);
	font-family: "Montserrat", "Source Sans Pro", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.25;
	text-transform: uppercase;
}

.thsc-home-perks__text {
	color: var(--thsc-perks-muted);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.35;
}

body.thsc-home-hero-page .block-content .vc_row:has(.thsc-home-perks),
body.thsc-home-hero-page .block-content .wpb_row:has(.thsc-home-perks) {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

@media (max-width: 1024px) {
	.thsc-home-perks__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 24px;
	}
}

@media (max-width: 560px) {
	.thsc-home-perks__inner {
		padding: 24px 21px;
	}

	.thsc-home-perks__list {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}
