/**
 * Americash Lending theme styles.
 *
 * All colors come from custom properties generated by the Customizer
 * (see tmt_build_css_vars()). No color literals are allowed in this file.
 *
 * Breakpoints follow the reference design: sm 40rem, md 48rem, lg 64rem,
 * xl 80rem.
 */

:root {
	--font-display: "Instrument Serif", Georgia, serif;
	--font-sans: "Economica", "Arial Narrow", system-ui, sans-serif;
	--container: 80rem;
	--header-height: 6rem;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
	border-color: var(--border);
}

body {
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 1.15rem;
	letter-spacing: 0.01em;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.015em;
	margin: 0;
}

p,
figure,
blockquote,
fieldset,
legend {
	margin: 0;
}

fieldset {
	border: 0;
	padding: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	text-align: inherit;
}

img,
svg {
	display: block;
}

svg {
	flex-shrink: 0;
}

a,
button,
[role="button"],
summary,
label[for],
select,
.tmt-choice,
.tmt-tab,
.tmt-town,
.tmt-hiw__step,
.tmt-faq__question {
	cursor: pointer;
}

button:disabled {
	cursor: not-allowed;
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.tmt-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--gold);
	color: var(--primary-foreground);
}

.tmt-skip:focus {
	left: 0;
}

/* -------------------------------------------------------------------------
   Shared utilities
   ------------------------------------------------------------------------- */

.tmt-container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-container {
		padding-inline: 2rem;
	}
}

.tmt-divider {
	height: 1px;
	background: var(--gradient-gold);
	opacity: 0.6;
}

.tmt-divider--spaced {
	margin-top: 3rem;
}

@media (min-width: 48rem) {
	.tmt-divider--spaced {
		margin-top: 4rem;
	}
}

.tmt-eyebrow {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--gold);
}

.tmt-rule {
	width: 6rem;
	height: 1px;
	margin-top: 1.5rem;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.tmt-rule--wide {
	width: 8rem;
	margin-top: 2rem;
}

.tmt-panel {
	border: 1px solid var(--border);
	background: var(--card-70);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.tmt-gold-edge {
	position: relative;
}

.tmt-gold-edge::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: var(--gradient-gold);
}

.tmt-hl {
	font-style: italic;
}

.tmt-hl--gradient,
.tmt-hl--gradient-block {
	background: var(--gradient-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tmt-hl--gradient-block {
	display: block;
}

.tmt-hl--solid-block {
	display: block;
	color: var(--gold);
	font-size: 1.5rem;
	line-height: 1.3333;
}

@media (min-width: 48rem) {
	.tmt-hl--solid-block {
		font-size: 1.875rem;
		line-height: 1.2;
	}
}

.tmt-icon--sm {
	width: 1rem;
	height: 1rem;
}

.tmt-icon--md {
	width: 1.5rem;
	height: 1.5rem;
}

.tmt-icon--lg {
	width: 2.25rem;
	height: 2.25rem;
}

.tmt-icon--faq {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--gold);
	transition: transform 0.3s ease;
}

.tmt-heading {
	max-width: 48rem;
}

.tmt-heading--center {
	margin-inline: auto;
	text-align: center;
}

.tmt-heading--center .tmt-rule {
	margin-inline: auto;
}

.tmt-heading__title {
	margin-top: 1rem;
	font-size: 2.25rem;
	line-height: 1.25;
}

.tmt-heading__intro {
	margin-top: 1.5rem;
	font-size: 1rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}

@media (min-width: 48rem) {
	.tmt-heading__title {
		font-size: 3rem;
	}

	.tmt-heading__intro {
		font-size: 1.125rem;
	}
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.tmt-btn {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	overflow-x: clip;
	padding: 0.75rem 1.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.tmt-btn:hover {
	transform: translateY(-2px);
}

.tmt-btn__sweep {
	pointer-events: none;
	position: absolute;
	inset-block: 0;
	left: -100%;
	width: 50%;
	transform: skewX(-12deg);
	background: var(--foreground-25);
	transition: left 0.7s ease;
}

.tmt-btn:hover .tmt-btn__sweep {
	left: 150%;
}

.tmt-btn__label {
	position: relative;
}

.tmt-btn--gold {
	background: var(--gradient-gold);
	color: var(--primary-foreground);
	box-shadow: var(--shadow-elegant);
}

.tmt-btn--glass {
	border: 1px solid var(--gold-50);
	background: var(--foreground-05);
	color: var(--foreground);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.tmt-btn--glass:hover {
	border-color: var(--gold);
	background: var(--gold-10);
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.tmt-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	transition: background-color 0.5s ease, border-color 0.5s ease;
}

.tmt-header.is-scrolled,
.tmt-header.is-open {
	border-bottom: 1px solid var(--border);
	background: var(--background-90);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.tmt-header__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 1rem;
	max-width: var(--container);
	height: var(--header-height);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-header__inner {
		padding-inline: 2rem;
	}
}

@media (min-width: 64rem) {
	.tmt-header__inner {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	}
}

.tmt-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	justify-self: start;
	flex-shrink: 0;
}

.tmt-brand__logo {
	width: auto;
	height: 2rem;
	max-width: 220px;
}

@media (min-width: 40rem) {
	.tmt-brand__logo {
		height: 2.5rem;
		max-width: none;
	}
}

.tmt-brand__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.2;
}

.tmt-nav {
	display: none;
	align-items: center;
	gap: 1.5rem;
}

@media (min-width: 64rem) {
	.tmt-nav {
		display: flex;
	}
}

@media (min-width: 80rem) {
	.tmt-nav {
		gap: 2rem;
	}
}

.tmt-nav__link {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted-foreground);
	transition: color 0.2s ease;
}

.tmt-nav__link:hover {
	color: var(--gold);
}

.tmt-header__cta {
	display: none;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid var(--gold-70);
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tmt-header__cta:hover {
	background: var(--gold);
	color: var(--primary-foreground);
}

@media (min-width: 64rem) {
	.tmt-header__cta {
		display: inline-flex;
		justify-self: end;
	}
}

.tmt-header__toggle {
	display: flex;
	width: 3rem;
	height: 3rem;
	align-items: center;
	justify-content: center;
	justify-self: end;
	color: var(--gold);
}

.tmt-header__toggle-close {
	display: none;
}

.tmt-header.is-open .tmt-header__toggle-open {
	display: none;
}

.tmt-header.is-open .tmt-header__toggle-close {
	display: inline-flex;
}

@media (min-width: 64rem) {
	.tmt-header__toggle {
		display: none;
	}
}

.tmt-nav-mobile {
	border-top: 1px solid var(--gold-30);
	background: var(--background);
	padding: 0.5rem 1.5rem 2rem;
}

.tmt-nav-mobile__link {
	display: block;
	border-bottom: 1px solid var(--border);
	padding: 1rem 0;
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.2;
	transition: color 0.2s ease;
}

.tmt-nav-mobile__link:hover {
	color: var(--gold);
}

.tmt-nav-mobile__cta {
	display: flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	margin-top: 1.5rem;
	background: var(--gradient-gold);
	color: var(--primary-foreground);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

@media (min-width: 64rem) {
	.tmt-nav-mobile {
		display: none;
	}
}

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

.tmt-hero {
	position: relative;
	display: flex;
	min-height: 100svh;
	flex-direction: column;
	overflow-x: clip;
}

.tmt-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tmt-hero__overlay {
	position: absolute;
	inset: 0;
}

.tmt-hero__overlay--side {
	background: var(--gradient-side);
}

.tmt-hero__overlay--hero {
	background: var(--gradient-hero);
	opacity: 0.6;
}

.tmt-hero__grid {
	position: relative;
	display: grid;
	width: 100%;
	max-width: var(--container);
	flex: 1;
	align-items: center;
	gap: 2.5rem;
	margin-inline: auto;
	padding: 8rem 1.5rem 3rem;
}

@media (min-width: 48rem) {
	.tmt-hero__grid {
		padding-inline: 2rem;
	}
}

@media (min-width: 64rem) {
	.tmt-hero__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
		gap: 2rem;
	}
}

.tmt-hero__title {
	margin-top: 1.5rem;
	font-size: 3rem;
	line-height: 1.02;
}

@media (min-width: 40rem) {
	.tmt-hero__title {
		font-size: 3.75rem;
	}
}

@media (min-width: 80rem) {
	.tmt-hero__title {
		font-size: 4.5rem;
	}
}

@media (min-width: 64rem) {
	.tmt-hero__lead {
		align-self: start;
		padding-top: 2.5rem;
	}
}

.tmt-hero__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 4 / 5;
	width: 100%;
	max-width: 20rem;
	margin-inline: auto;
	padding: 1rem;
	border: 1px solid var(--gold-60);
	background: var(--foreground-05);
	box-shadow: var(--shadow-elegant);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

@media (min-width: 40rem) {
	.tmt-hero__card {
		max-width: 24rem;
	}
}

.tmt-hero__diamond {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 0.625rem;
	height: 0.625rem;
	transform: rotate(45deg);
	border: 1px solid var(--gold);
}

.tmt-hero__card-inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var(--gold-40);
	background: var(--background-75);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.tmt-hero__card-icon {
	display: flex;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	background: var(--gradient-gold);
	color: var(--primary-foreground);
}

.tmt-hero__card-text {
	min-width: 0;
}

.tmt-hero__card-title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	line-height: 1.25;
}

.tmt-hero__card-link {
	display: inline-block;
	font-size: 0.875rem;
	color: var(--gold);
}

.tmt-hero__card-link:hover {
	text-decoration: underline;
}

.tmt-hero__subheading {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.3;
	color: var(--foreground-90);
}

.tmt-hero__intro {
	margin-top: 1rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}

.tmt-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 2rem;
}

@media (min-width: 64rem) {
	.tmt-hero__aside {
		align-self: end;
		padding-bottom: 1.5rem;
	}
}

/* -------------------------------------------------------------------------
   Founder / about
   ------------------------------------------------------------------------- */

.tmt-founder {
	display: grid;
	align-items: stretch;
	gap: 3.5rem;
	max-width: var(--container);
	margin-inline: auto;
	padding: 6rem 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-founder {
		padding: 8rem 2rem;
	}
}

@media (min-width: 64rem) {
	.tmt-founder {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 5rem;
	}
}

.tmt-founder__media {
	position: relative;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	margin-inline: auto;
}

@media (min-width: 64rem) {
	.tmt-founder__media {
		max-width: none;
	}
}

.tmt-frame {
	position: absolute;
	inset: -0.75rem;
	border: 1px solid var(--gold-40);
	pointer-events: none;
}

@media (min-width: 48rem) {
	.tmt-frame {
		inset: -1.25rem;
	}
}

.tmt-founder__photo {
	position: relative;
	height: 100%;
	overflow-x: clip;
}

.tmt-founder__img {
	aspect-ratio: 4 / 5;
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 1s ease;
}

.tmt-founder__media:hover .tmt-founder__img {
	transform: scale(1.05);
}

@media (min-width: 64rem) {
	.tmt-founder__img {
		aspect-ratio: auto;
	}
}

.tmt-founder__body {
	display: flex;
	height: 100%;
	flex-direction: column;
	justify-content: center;
}

.tmt-founder__text {
	margin-top: 1rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}

.tmt-founder__text:first-of-type {
	margin-top: 1.5rem;
	font-size: 1.125rem;
}

/*
 * The reference markup carries border-l-2 / border-l-gold on the quote, but its
 * compiled .panel rule comes later in the cascade and wins, so the published
 * design renders a uniform 1px gold-22% border. Keep that rendered result.
 */
.tmt-quote {
	margin-top: 2.5rem;
	padding: 1.5rem;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.375;
}

@media (min-width: 48rem) {
	.tmt-quote {
		padding: 2rem;
	}
}

/* -------------------------------------------------------------------------
   Marquee
   ------------------------------------------------------------------------- */

.tmt-marquee {
	position: relative;
	background: var(--background);
}

.tmt-marquee__viewport {
	overflow-x: clip;
	padding-block: 3rem;
}

@media (min-width: 48rem) {
	.tmt-marquee__viewport {
		padding-block: 5rem;
	}
}

.tmt-marquee__track {
	display: flex;
	width: max-content;
	white-space: nowrap;
	font-family: var(--font-display);
	font-size: 4.5rem;
	line-height: 1;
	animation: tmt-marquee-big 55s linear infinite;
}

@media (min-width: 48rem) {
	.tmt-marquee__track {
		font-size: 10rem;
	}
}

.tmt-marquee__row {
	display: flex;
	align-items: center;
	padding-right: 0.35em;
}

.tmt-marquee__text {
	color: var(--foreground);
}

.tmt-marquee__text--accent {
	font-style: italic;
	background: var(--gradient-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tmt-marquee__diamond {
	display: inline-block;
	width: 0.12em;
	height: 0.12em;
	margin-inline: 0.35em;
	transform: rotate(45deg);
	background: var(--gold);
	vertical-align: middle;
	flex-shrink: 0;
}

.tmt-marquee__disclaimer {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--muted-foreground);
}

@keyframes tmt-marquee-big {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* -------------------------------------------------------------------------
   Loans
   ------------------------------------------------------------------------- */

.tmt-loans {
	overflow-x: clip;
	background: var(--navy-40);
}

.tmt-loans__grid {
	display: grid;
	gap: 2.5rem;
	max-width: var(--container);
	margin-inline: auto;
	padding: 6rem 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-loans__grid {
		padding: 8rem 2rem;
	}
}

@media (min-width: 64rem) {
	.tmt-loans__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 0;
	}
}

.tmt-loans__media {
	display: none;
	position: relative;
}

@media (min-width: 64rem) {
	.tmt-loans__media {
		display: block;
		grid-row: span 2;
	}
}

.tmt-loans__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tmt-loans__media-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--background-70), transparent 50%, transparent);
}

.tmt-loans__media-edge {
	position: absolute;
	inset-block: 0;
	right: 0;
	width: 1px;
	background: var(--gradient-gold);
}

@media (min-width: 64rem) {
	.tmt-loans__lead {
		padding-left: 4rem;
		padding-top: 1.5rem;
	}
}

.tmt-heading--loans .tmt-heading__title {
	font-size: 3rem;
	line-height: 1.05;
}

@media (min-width: 48rem) {
	.tmt-heading--loans .tmt-heading__title {
		font-size: 4.5rem;
	}
}

.tmt-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem;
}

.tmt-tab {
	min-height: 2.75rem;
	border: 1px solid var(--gold-40);
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted-foreground);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tmt-tab:hover {
	color: var(--gold);
}

.tmt-tab[aria-selected="true"] {
	border-color: transparent;
	background: var(--gradient-gold);
	color: var(--primary-foreground);
}

.tmt-loans__panels {
	min-width: 0;
}

@media (min-width: 64rem) {
	.tmt-loans__panels {
		margin-left: -22%;
		margin-right: calc(-1 * (50vw - min(50vw, 40rem) + 2rem));
		padding-top: 3.5rem;
	}
}

.tmt-loans__cards {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 40rem) {
	.tmt-loans__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.tmt-loans__cards {
		max-width: 48rem;
		padding-right: 2rem;
	}
}

.tmt-card {
	display: flex;
	min-height: 22rem;
	flex-direction: column;
	padding: 1.75rem;
	background: var(--card);
	box-shadow: var(--shadow-elegant);
	transition: background-color 0.2s ease;
}

.tmt-card:hover {
	background: var(--accent);
}

.tmt-card__icon {
	color: var(--gold);
}

.tmt-card__title {
	margin-top: 1.5rem;
	font-size: 1.875rem;
	line-height: 1.2;
}

.tmt-card__text {
	margin-top: 1rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}

.tmt-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
}

.tmt-card__link svg {
	transition: transform 0.2s ease;
}

.tmt-card__link:hover svg {
	transform: translateX(0.25rem);
}

/* -------------------------------------------------------------------------
   How it works
   ------------------------------------------------------------------------- */

.tmt-hiw {
	max-width: var(--container);
	margin-inline: auto;
	padding: 6rem 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-hiw {
		padding: 8rem 2rem;
	}
}

.tmt-hiw__body {
	margin-top: 3.5rem;
}

.tmt-hiw__steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 48rem) {
	.tmt-hiw__steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0;
	}
}

.tmt-hiw__line {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: var(--border);
}

.tmt-hiw__line--gold {
	right: auto;
	width: var(--tmt-step-progress, 25%);
	background: var(--gold);
	transition: width 0.5s ease;
}

@media (min-width: 48rem) {
	.tmt-hiw__line {
		display: block;
	}
}

.tmt-hiw__step {
	border: 1px solid var(--border);
	padding: 1.25rem;
	text-align: left;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tmt-hiw__step:hover {
	background: var(--card-60);
}

.tmt-hiw__step.is-active {
	border-color: var(--gold);
	background: var(--gold-05);
}

@media (min-width: 48rem) {
	.tmt-hiw__step {
		border: 0;
		border-top: 2px solid transparent;
		padding-top: 1.5rem;
	}

	.tmt-hiw__step.is-active {
		border-top-color: var(--gold);
	}
}

.tmt-hiw__step-number {
	display: block;
	font-family: var(--font-display);
	font-size: 2.25rem;
	line-height: 1.1111;
	color: var(--muted-foreground);
}

.tmt-hiw__step.is-active .tmt-hiw__step-number {
	background: var(--gradient-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tmt-hiw__step-title {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.tmt-hiw__detail {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
	padding: 2rem;
}

@media (min-width: 48rem) {
	.tmt-hiw__detail {
		grid-template-columns: auto 1fr;
		align-items: center;
		padding: 3rem;
	}
}

.tmt-hiw__detail-number {
	font-family: var(--font-display);
	font-size: 4.5rem;
	line-height: 1;
	background: var(--gradient-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (min-width: 48rem) {
	.tmt-hiw__detail-number {
		font-size: 6rem;
	}
}

.tmt-hiw__detail-title {
	font-size: 1.875rem;
	line-height: 1.2;
}

.tmt-hiw__detail-text {
	margin-top: 1rem;
	max-width: 42rem;
	font-size: 1.125rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}

/* -------------------------------------------------------------------------
   Team
   ------------------------------------------------------------------------- */

.tmt-team {
	border-block: 1px solid var(--border);
	background: var(--navy-40);
}

.tmt-team .tmt-container {
	padding-block: 6rem;
}

@media (min-width: 48rem) {
	.tmt-team .tmt-container {
		padding-block: 8rem;
	}
}

.tmt-team__grid {
	display: grid;
	gap: 2rem;
	margin-top: 3.5rem;
}

@media (min-width: 48rem) {
	.tmt-team__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tmt-team__card {
	display: grid;
	gap: 1.5rem;
	padding: 1.5rem;
}

@media (min-width: 40rem) {
	.tmt-team__card {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		align-items: center;
	}
}

@media (min-width: 48rem) {
	.tmt-team__card {
		padding: 2rem;
	}
}

.tmt-team__img {
	aspect-ratio: 4 / 5;
	width: 100%;
	object-fit: cover;
}

.tmt-team__name {
	font-size: 1.875rem;
	line-height: 1.2;
}

.tmt-team__role {
	margin-top: 0.25rem;
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--gold);
}

.tmt-team__text {
	margin-top: 1rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}

/* -------------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------------- */

.tmt-testimonials {
	max-width: var(--container);
	margin-inline: auto;
	padding: 6rem 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-testimonials {
		padding: 8rem 2rem;
	}
}

.tmt-testimonials__grid {
	display: grid;
	align-items: center;
	gap: 3.5rem;
}

@media (min-width: 64rem) {
	.tmt-testimonials__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}

.tmt-testimonials__media {
	position: relative;
	width: 100%;
	max-width: 28rem;
	margin-inline: auto;
}

@media (min-width: 64rem) {
	.tmt-testimonials__media {
		max-width: none;
	}
}

.tmt-testimonials__img {
	position: relative;
	aspect-ratio: 4 / 5;
	width: 100%;
	object-fit: cover;
}

.tmt-testimonials__title {
	margin-top: 1rem;
	font-size: 3rem;
	line-height: 1.05;
}

@media (min-width: 48rem) {
	.tmt-testimonials__title {
		font-size: 3.75rem;
	}
}

.tmt-marquee-vert {
	height: 32rem;
	margin-top: 2.5rem;
	overflow-y: clip;
	-webkit-mask-image: linear-gradient(transparent, var(--foreground) 10%, var(--foreground) 90%, transparent);
	mask-image: linear-gradient(transparent, var(--foreground) 10%, var(--foreground) 90%, transparent);
}

@media (min-width: 48rem) {
	.tmt-marquee-vert {
		height: 36rem;
	}
}

.tmt-marquee-vert__track {
	display: flex;
	flex-direction: column;
	animation: tmt-marquee-vertical 30s linear infinite;
}

.tmt-marquee-vert:hover .tmt-marquee-vert__track {
	animation-play-state: paused;
}

.tmt-testimonials__group {
	display: grid;
	gap: 1.25rem;
	padding-bottom: 1.25rem;
}

.tmt-testimonial {
	border-left: 2px solid var(--gold);
	padding: 1.5rem;
}

.tmt-testimonial__icon {
	display: block;
	color: var(--gold);
}

.tmt-testimonial__quote {
	margin-top: 0.75rem;
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-style: italic;
	line-height: 1.375;
}

@media (min-width: 48rem) {
	.tmt-testimonial__quote {
		font-size: 1.5rem;
	}
}

.tmt-testimonial__meta {
	margin-top: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}

@keyframes tmt-marquee-vertical {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(-50%);
	}
}

/* -------------------------------------------------------------------------
   Service area
   ------------------------------------------------------------------------- */

.tmt-area {
	border-block: 1px solid var(--border);
	background: var(--navy-40);
}

.tmt-area__grid {
	display: grid;
	align-items: center;
	gap: 3rem;
	max-width: var(--container);
	margin-inline: auto;
	padding: 6rem 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-area__grid {
		padding: 8rem 2rem;
	}
}

@media (min-width: 64rem) {
	.tmt-area__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tmt-area__title {
	margin-top: 1rem;
	font-size: 3rem;
	line-height: 1.05;
}

@media (min-width: 48rem) {
	.tmt-area__title {
		font-size: 3.75rem;
	}
}

.tmt-area__intro {
	margin-top: 1.5rem;
	font-size: 1.125rem;
	line-height: 1.625;
	color: var(--foreground-85);
}

.tmt-area__towns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.tmt-town {
	min-height: 2.75rem;
	border: 1px solid var(--gold-50);
	background: var(--background-60);
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tmt-town:hover {
	color: var(--gold);
}

.tmt-town[aria-pressed="true"] {
	border-color: transparent;
	background: var(--gradient-gold);
	color: var(--primary-foreground);
}

.tmt-area__actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 2.5rem;
}

@media (min-width: 40rem) {
	.tmt-area__actions {
		flex-direction: row;
	}
}

.tmt-area__map {
	position: relative;
	z-index: 0;
	height: 22rem;
	border: 1px solid var(--gold-40);
	background: var(--card);
}

@media (min-width: 40rem) {
	.tmt-area__map {
		height: 28rem;
	}
}

@media (min-width: 64rem) {
	.tmt-area__map {
		height: 34rem;
	}
}

.tmt-area__canvas {
	width: 100%;
	height: 100%;
}

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */

.tmt-faq {
	border-block: 1px solid var(--border);
	background: var(--navy-50);
}

.tmt-faq__inner {
	max-width: 56rem;
	margin-inline: auto;
	padding: 6rem 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-faq__inner {
		padding: 8rem 2rem;
	}
}

.tmt-faq__list {
	margin-top: 3.5rem;
	border-top: 1px solid var(--border);
}

.tmt-faq__item {
	border-bottom: 1px solid var(--border);
}

.tmt-faq__question {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.5rem 0;
	font-family: var(--font-display);
	font-size: 1.25rem;
	line-height: 1.3;
	transition: color 0.2s ease;
}

.tmt-faq__question:hover {
	color: var(--gold);
}

@media (min-width: 48rem) {
	.tmt-faq__question {
		font-size: 1.5rem;
	}
}

.tmt-faq__question[aria-expanded="true"] .tmt-icon--faq {
	transform: rotate(180deg);
}

.tmt-faq__panel {
	padding-bottom: 1.5rem;
}

.tmt-faq__answer {
	line-height: 1.625;
	color: var(--muted-foreground);
}

.tmt-faq__answer + .tmt-faq__answer {
	margin-top: 1rem;
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */

.tmt-contact {
	position: relative;
}

.tmt-contact__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tmt-contact__overlay {
	position: absolute;
	inset: 0;
	background: var(--background-85);
}

.tmt-contact__grid {
	position: relative;
	display: grid;
	grid-auto-rows: 1fr;
	gap: 2rem;
	max-width: var(--container);
	margin-inline: auto;
	padding: 6rem 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-contact__grid {
		padding: 8rem 2rem;
	}
}

@media (min-width: 64rem) {
	.tmt-contact__grid {
		grid-template-columns: 2fr 3fr;
		gap: 2.5rem;
	}
}

.tmt-contact__info {
	display: flex;
	height: 100%;
	flex-direction: column;
	padding: 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-contact__info {
		padding: 2.5rem;
	}
}

.tmt-contact__rows {
	display: grid;
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.tmt-contact__row {
	display: flex;
	gap: 1rem;
}

.tmt-contact__row-icon {
	display: flex;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--gold-50);
	color: var(--gold);
}

.tmt-contact__row-value {
	display: block;
	margin-top: 0.25rem;
	overflow-wrap: anywhere;
	transition: color 0.2s ease;
}

a.tmt-contact__row-value:hover {
	color: var(--gold);
}

.tmt-contact__cta {
	padding-top: 1rem;
	margin-top: auto;
}

/* Form */

.tmt-form {
	display: flex;
	height: 100%;
	flex-direction: column;
	padding: 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-form {
		padding: 2.5rem;
	}
}

.tmt-form__steps {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
}

.tmt-form__step-indicator {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 0.75rem;
}

.tmt-form__step-number {
	display: flex;
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	font-family: var(--font-display);
	font-size: 1.125rem;
	line-height: 1;
	color: var(--muted-foreground);
}

.tmt-form__step-indicator.is-active .tmt-form__step-number {
	border-color: var(--gold);
	background: var(--gold-15);
	color: var(--gold);
}

.tmt-form__step-label {
	font-size: 0.875rem;
	line-height: 1.25rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}

.tmt-form__step-indicator.is-active .tmt-form__step-label {
	color: var(--foreground);
}

.tmt-form__step-line {
	flex: 1;
	height: 1px;
	background: var(--border);
}

.tmt-form__step-indicator.is-complete .tmt-form__step-line {
	background: var(--gold);
}

.tmt-form__body {
	margin-bottom: 2rem;
}

.tmt-form__form {
	display: grid;
	gap: 1.5rem;
}

.tmt-form__step {
	display: grid;
	gap: 1.5rem;
}

.tmt-form__row {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 40rem) {
	.tmt-form__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tmt-form__legend,
.tmt-form__label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}

.tmt-form__legend {
	margin-bottom: 0.5rem;
	padding: 0;
}

.tmt-form__choices {
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 40rem) {
	.tmt-form__choices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tmt-form__choice {
	position: relative;
	display: flex;
}

.tmt-choice-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.tmt-choice {
	display: flex;
	width: 100%;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--input-border);
	padding: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	text-align: center;
	color: var(--muted-foreground);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tmt-choice:hover {
	border-color: var(--gold-60);
}

.tmt-choice-input:checked + .tmt-choice {
	border-color: var(--gold);
	background: var(--gold-10);
	color: var(--gold);
}

.tmt-choice-input:focus-visible + .tmt-choice {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.tmt-form__input {
	display: block;
	width: 100%;
	margin-top: 0.5rem;
	border: 1px solid var(--input-border);
	background: var(--background-60);
	padding: 0.75rem 1rem;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--foreground);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tmt-form__input::placeholder {
	color: var(--muted-foreground-70);
}

.tmt-form__input:focus {
	border-color: var(--gold);
	outline: none;
	box-shadow: 0 0 0 1px var(--gold);
}

.tmt-form__error {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--destructive);
}

.tmt-form__privacy {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--muted-foreground);
}

.tmt-form__actions {
	display: flex;
	flex-direction: column-reverse;
	gap: 1rem;
}

.tmt-form__actions--end {
	justify-content: flex-end;
}

@media (min-width: 40rem) {
	.tmt-form__actions {
		flex-direction: row;
		justify-content: space-between;
	}

	.tmt-form__actions--end {
		justify-content: flex-end;
	}
}

.tmt-form__back {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--gold-50);
	padding: 0.75rem 2rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

.tmt-form__back:hover {
	background: var(--gold-10);
}

.tmt-form__submit {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 2rem;
	background: var(--gradient-gold);
	color: var(--primary-foreground);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	box-shadow: var(--shadow-elegant);
	transition: transform 0.3s ease, opacity 0.2s ease;
}

.tmt-form__submit:hover {
	transform: translateY(-2px);
}

.tmt-form__submit:disabled {
	opacity: 0.6;
}

.tmt-form__success {
	padding-block: 1.5rem;
	text-align: center;
}

.tmt-form__success-title {
	margin-top: 1rem;
	font-size: 1.875rem;
	line-height: 1.2;
}

.tmt-form__success-body {
	max-width: 28rem;
	margin: 1rem auto 0;
	line-height: 1.625;
	color: var(--muted-foreground);
}

.tmt-form__restart {
	margin-top: 2rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold);
	text-underline-offset: 4px;
}

.tmt-form__restart:hover {
	text-decoration: underline;
}

.tmt-form__notice {
	margin-bottom: 1.5rem;
	border: 1px solid var(--gold-40);
	padding: 1rem;
	line-height: 1.5;
	color: var(--muted-foreground);
}

.tmt-form__notice-title {
	margin-top: 0.5rem;
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--foreground);
}

.tmt-form__notice--error {
	border-color: var(--destructive);
	color: var(--destructive);
}

.tmt-form__disclaimer {
	margin-top: auto;
	border-top: 1px solid var(--border);
	padding-top: 1.5rem;
	font-size: 0.875rem;
	font-style: italic;
	line-height: 1.625;
	color: var(--muted-foreground);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.tmt-footer {
	background: var(--ink);
}

.tmt-footer__inner {
	display: grid;
	gap: 3rem;
	max-width: var(--container);
	margin-inline: auto;
	padding: 4rem 1.5rem;
}

@media (min-width: 48rem) {
	.tmt-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-inline: 2rem;
	}
}

@media (min-width: 64rem) {
	.tmt-footer__inner {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.tmt-brand--footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.tmt-brand--footer .tmt-brand__logo {
	height: 3rem;
	max-width: 100%;
}

.tmt-brand--footer .tmt-brand__title {
	font-size: 1.875rem;
}

@media (min-width: 64rem) {
	.tmt-footer__brand {
		grid-column: span 2;
	}
}

.tmt-footer__blurb {
	max-width: 28rem;
	margin-top: 1.25rem;
	font-size: 0.875rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}

.tmt-footer__tagline {
	margin-top: 1.25rem;
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--gold);
}

.tmt-footer__list {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.25rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--muted-foreground);
}

.tmt-footer__link {
	color: var(--muted-foreground);
	transition: color 0.2s ease;
}

.tmt-footer__link:hover {
	color: var(--gold);
}

.tmt-footer__link--email {
	word-break: break-all;
}

.tmt-footer__legal {
	border-top: 1px solid var(--border);
}

.tmt-footer__legal-inner {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: var(--container);
	margin-inline: auto;
	padding: 1.5rem;
	font-size: 0.875rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}

@media (min-width: 48rem) {
	.tmt-footer__legal-inner {
		padding-inline: 2rem;
	}
}

/* -------------------------------------------------------------------------
   Motion, admin bar and map integration
   ------------------------------------------------------------------------- */

html.tmt-js [data-tmt-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.tmt-js [data-tmt-reveal].is-visible {
	opacity: 1;
	transform: none;
}

html:not(.tmt-js) .tmt-loans__panel[hidden],
html:not(.tmt-js) .tmt-hiw__detail[hidden],
html:not(.tmt-js) .tmt-faq__panel[hidden] {
	display: block !important;
}

/* Without JavaScript the two-step form becomes one continuous form. */
html:not(.tmt-js) .tmt-form__step[hidden] {
	display: grid !important;
}

html:not(.tmt-js) .tmt-form__steps,
html:not(.tmt-js) [data-tmt-next],
html:not(.tmt-js) [data-tmt-back] {
	display: none;
}

body.admin-bar .tmt-header {
	top: 32px;
}

body.admin-bar .tmt-hero {
	min-height: calc(100svh - 32px);
}

body.admin-bar [id] {
	scroll-margin-top: calc(var(--header-height) + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .tmt-header {
		top: 46px;
	}

	body.admin-bar .tmt-hero {
		min-height: calc(100svh - 46px);
	}

	body.admin-bar [id] {
		scroll-margin-top: calc(var(--header-height) + 46px);
	}
}

[id] {
	scroll-margin-top: var(--header-height);
}

.leaflet-container {
	background: var(--background);
	font-family: inherit;
}

.map-tiles-dark {
	filter: invert(1) hue-rotate(200deg) brightness(0.85) saturate(0.6) contrast(0.9);
}

.tmt-map-pin {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 9999px;
	background: var(--gold);
	border: 2px solid var(--background);
	box-shadow: 0 0 0 1px var(--gold);
}

.tmt-map-pin--office {
	box-shadow: 0 0 0 6px var(--gold-30);
}

.tmt-map-popup {
	font-family: var(--font-sans);
	color: var(--background);
	line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
	html.tmt-js [data-tmt-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.tmt-marquee__track,
	.tmt-marquee-vert__track {
		animation: none;
	}

	.tmt-btn:hover,
	.tmt-form__submit:hover {
		transform: none;
	}
}
