.ks-footer {
	--ksf-bg: #181512;
	--ksf-surface: #211e1a;
	--ksf-text: #f7f1e7;
	--ksf-muted: rgba(247, 241, 231, .58);
	--ksf-accent: #a8783f;
	--ksf-line: rgba(247, 241, 231, .14);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--ksf-bg);
	color: var(--ksf-text);
	font-family: inherit;
}

.ks-footer *,
.ks-footer *::before,
.ks-footer *::after { box-sizing: border-box; }

.ks-footer a { color: inherit; text-decoration: none; }
.ks-footer button { font: inherit; }

.ks-footer__grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: .36;
	background-image: linear-gradient(var(--ksf-line) 1px, transparent 1px), linear-gradient(90deg, var(--ksf-line) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
	mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.ks-footer:not(.has-grid) .ks-footer__grid { display: none; }

.ks-footer__inner {
	width: 100%;
	margin-inline: auto;
}

.ks-footer__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	min-height: 190px;
	padding: 42px 0;
	border-bottom: 1px solid var(--ksf-line);
}

.ks-footer__cta small,
.ks-footer__brand > small {
	display: block;
	margin-bottom: 13px;
	color: var(--ksf-accent);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .18em;
	line-height: 1.4;
}

.ks-footer__cta h2 {
	max-width: 780px;
	margin: 0;
	font-size: clamp(34px, 4.2vw, 66px);
	font-weight: 760;
	letter-spacing: -.045em;
	line-height: .98;
}

.ks-footer__cta-button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 54px;
	padding: 14px 19px 14px 24px;
	border: 1px solid var(--ksf-accent);
	background: var(--ksf-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 720;
	letter-spacing: .04em;
	transition: color .25s ease, background .25s ease, transform .25s ease;
}

.ks-footer__cta-button svg { transition: transform .25s ease; }
.ks-footer__cta-button:hover { background: transparent; color: var(--ksf-text); transform: translateY(-2px); }
.ks-footer__cta-button:hover svg { transform: translateX(3px); }

.ks-footer__main {
	display: grid;
	grid-template-columns: minmax(250px, 1.05fr) minmax(520px, 1.7fr);
	gap: clamp(64px, 9vw, 150px);
	padding: 64px 0 58px;
}

.ks-footer__brand { max-width: 390px; }
.ks-footer__brand-link { display: inline-flex; align-items: center; min-height: 44px; max-width: min(100%, 310px); margin-bottom: 24px; }
.ks-footer__logo { display: block; width: auto; max-width: 100%; max-height: 76px; object-fit: contain; }
.ks-footer__wordmark { font-size: clamp(27px, 3vw, 40px); font-weight: 780; letter-spacing: -.045em; }
.ks-footer__brand p { margin: 0 0 23px; color: var(--ksf-muted); font-size: 15px; line-height: 1.75; }
.ks-footer__brand > small { margin: 0 0 27px; }

.ks-footer__socials { display: flex; flex-wrap: wrap; gap: 9px; }
.ks-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ksf-line);
	color: var(--ksf-muted);
	transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.ks-footer__social svg { width: 16px; height: 16px; }
.ks-footer__social:hover { border-color: var(--ksf-accent); color: var(--ksf-accent); transform: translateY(-2px); }

.ks-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.ks-footer__column h3 { margin: 0 0 21px; color: var(--ksf-text); font-size: 12px; font-weight: 760; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.ks-footer__column ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ks-footer__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ksf-muted);
	font-size: 14px;
	line-height: 1.45;
	transition: color .2s ease, transform .2s ease;
}
.ks-footer__link:hover { color: var(--ksf-text); transform: translateX(3px); }

.ks-footer__bottom {
	display: grid;
	grid-template-columns: minmax(220px, auto) 1fr auto auto;
	align-items: center;
	gap: 22px;
	min-height: 76px;
	border-top: 1px solid var(--ksf-line);
	color: var(--ksf-muted);
	font-size: 12px;
}
.ks-footer__bottom p { margin: 0; }
.ks-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.ks-footer__credit { min-height: 44px; display: inline-flex; align-items: center; color: var(--ksf-muted); transition: color .2s ease; }
.ks-footer__credit:hover { color: var(--ksf-text); }
.ks-footer__top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ksf-line);
	background: transparent;
	color: var(--ksf-text);
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.ks-footer__top:hover { border-color: var(--ksf-accent); color: var(--ksf-accent); transform: translateY(-2px); }

.ks-footer.layout-light { background: #f4f0e8; color: #181512; }
.ks-footer.layout-light .ks-footer__grid { opacity: .16; }
.ks-footer.layout-light .ks-footer__cta,
.ks-footer.layout-light .ks-footer__bottom { border-color: rgba(24, 21, 18, .16); }
.ks-footer.layout-light .ks-footer__cta h2,
.ks-footer.layout-light .ks-footer__column h3,
.ks-footer.layout-light .ks-footer__wordmark { color: #181512; }
.ks-footer.layout-light .ks-footer__brand p,
.ks-footer.layout-light .ks-footer__link,
.ks-footer.layout-light .ks-footer__bottom,
.ks-footer.layout-light .ks-footer__credit { color: rgba(24, 21, 18, .65); }
.ks-footer.layout-light .ks-footer__social,
.ks-footer.layout-light .ks-footer__top { border-color: rgba(24, 21, 18, .18); color: #181512; }
.ks-footer.layout-light .ks-footer__cta-button:hover { color: #181512; }

.ks-footer.layout-compact .ks-footer__cta { min-height: 150px; }
.ks-footer.layout-compact .ks-footer__main { padding-block: 45px; }

.ks-footer a:focus-visible,
.ks-footer button:focus-visible { outline: 2px solid var(--ksf-accent); outline-offset: 4px; }

.ks-footer.has-reveal.is-reveal-ready .ks-footer__cta,
.ks-footer.has-reveal.is-reveal-ready .ks-footer__brand,
.ks-footer.has-reveal.is-reveal-ready .ks-footer__column {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .65s ease, transform .65s ease;
}
.ks-footer.has-reveal.is-reveal-ready.is-visible .ks-footer__cta,
.ks-footer.has-reveal.is-reveal-ready.is-visible .ks-footer__brand,
.ks-footer.has-reveal.is-reveal-ready.is-visible .ks-footer__column { opacity: 1; transform: none; }
.ks-footer.has-reveal.is-reveal-ready.is-visible .ks-footer__column:nth-child(1) { transition-delay: .08s; }
.ks-footer.has-reveal.is-reveal-ready.is-visible .ks-footer__column:nth-child(2) { transition-delay: .14s; }
.ks-footer.has-reveal.is-reveal-ready.is-visible .ks-footer__column:nth-child(3) { transition-delay: .20s; }

@media (max-width: 1024px) {
	.ks-footer__main { grid-template-columns: .8fr 1.5fr; gap: 52px; }
	.ks-footer__nav { gap: 28px; }
	.ks-footer__bottom { grid-template-columns: 1fr auto; padding-block: 16px; }
	.ks-footer__legal { justify-self: end; }
	.ks-footer__credit { justify-self: start; }
	.ks-footer__top { justify-self: end; grid-column: 2; grid-row: 2; }
}

@media (max-width: 767px) {
	.ks-footer__grid { background-size: 42px 42px; }
	.ks-footer__cta { align-items: flex-start; flex-direction: column; gap: 25px; min-height: 0; padding: 42px 0 38px; }
	.ks-footer__cta h2 { font-size: clamp(34px, 11vw, 48px); }
	.ks-footer__cta-button { width: 100%; justify-content: space-between; }
	.ks-footer__main { grid-template-columns: 1fr; gap: 43px; padding: 46px 0 38px; }
	.ks-footer__brand { max-width: none; }
	.ks-footer__brand-link { max-width: 240px; margin-bottom: 19px; }
	.ks-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
	.ks-footer__column:last-child { grid-column: 1 / -1; }
	.ks-footer__column h3 { margin-bottom: 12px; }
	.ks-footer__bottom { grid-template-columns: 1fr 44px; gap: 10px 18px; min-height: 0; padding: 24px 0; }
	.ks-footer__bottom p,
	.ks-footer__legal,
	.ks-footer__credit { grid-column: 1; justify-self: start; }
	.ks-footer__top { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
	.ks-footer__legal { gap: 18px; }
	.ks-footer__link { overflow-wrap: anywhere; }
}

@media (max-width: 340px) {
	.ks-footer__nav { grid-template-columns: 1fr; gap: 28px; }
	.ks-footer__column:last-child { grid-column: auto; }
}

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