/* Homepage sections. */
.ks-home > .ks-section:first-child { margin-top: 20px; }
@media (min-width: 1024px) { .ks-home > .ks-section:first-child { margin-top: 32px; } }

/* Category tiles: 7 per row on desktop, two-row scroller on small screens. */
.ks-tiles__grid {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(2, auto);
	grid-auto-columns: 30%;
	gap: 16px 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
.ks-tiles__grid::-webkit-scrollbar { display: none; }
.ks-tile a { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ks-tile__media {
	display: flex; align-items: center; justify-content: center;
	width: 100%; aspect-ratio: 168 / 140;
	background: var(--ks-gray7); border-radius: var(--ks-r-md);
	overflow: hidden;
}
.ks-tile__media svg, .ks-tile__media img { width: 86%; height: 86%; object-fit: contain; transition: transform .3s var(--ks-ease); }
/* Product shots come on white; multiply drops the white into the tile colour. */
.ks-tile__media img { mix-blend-mode: multiply; }
.ks-tile a:hover .ks-tile__media svg, .ks-tile a:hover .ks-tile__media img { transform: scale(1.05); }
.ks-tile__label { font-size: var(--ks-fs-14); text-align: center; }
@media (min-width: 640px) { .ks-tiles__grid { grid-auto-columns: 22%; } }
@media (min-width: 1024px) {
	.ks-tiles__grid { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); grid-template-rows: none; gap: 24px 24px; overflow: visible; }
	.ks-tile a { gap: 18px; }
	.ks-tile__label { font-size: var(--ks-fs-16); }
}

/* Hero carousel. */
.ks-hero__frame { position: relative; overflow: hidden; border-radius: var(--ks-r-md); background: var(--ks-black2); }
.ks-hero__track { display: flex; transition: transform .5s var(--ks-ease); }
.ks-hero__slide { flex: 0 0 100%; min-width: 0; }
.ks-hero__link {
	position: relative;
	display: grid; grid-template-columns: 1.2fr 1fr; align-items: center;
	aspect-ratio: 2.2 / 1;
	padding: 0 6%;
	background: linear-gradient(115deg, var(--from) 0%, var(--from) 45%, var(--to) 100%);
	color: var(--fg);
	overflow: hidden;
}
@media (min-width: 1024px) { .ks-hero__link { aspect-ratio: auto; height: 240px; padding: 0 12%; } }
.ks-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ks-hero__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 1; }
.ks-hero__eyebrow { font-size: var(--ks-fs-11); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.ks-hero__title { font-size: clamp(22px, 4.2vw, 48px); font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.ks-hero__subtitle { max-width: 34ch; font-size: clamp(12px, 1.3vw, 16px); opacity: .9; }
.ks-hero__cta {
	margin-top: 8px; padding: 6px 14px;
	background: var(--accent); color: var(--ks-black);
	font-size: var(--ks-fs-12); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	border-radius: 2px;
}
.ks-hero__art { position: relative; display: flex; justify-content: center; }
.ks-hero__art svg { width: min(100%, 360px); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); transform: rotate(-8deg); }
.ks-hero__art .ks-ph .f { stroke-width: 2.5; }
.ks-hero__art img {
	height: clamp(96px, 30vw, 190px); width: auto; aspect-ratio: 1 / 1;
	padding: 6%; object-fit: contain;
	background: var(--ks-white); border-radius: var(--ks-r-md);
	box-shadow: 0 18px 32px rgba(0, 0, 0, .35);
	transform: rotate(-6deg);
}
.ks-hero__nav {
	position: absolute; top: 50%; z-index: 2;
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: rgba(10, 10, 10, .55); color: var(--ks-white);
	transform: translateY(-50%);
}
.ks-hero__nav:hover { background: rgba(10, 10, 10, .8); }
.ks-hero__nav--prev { left: 16px; }
.ks-hero__nav--next { right: 16px; }
@media (min-width: 1024px) { .ks-hero__nav { display: inline-flex; } }
.ks-hero__dots { position: absolute; left: 50%; bottom: 12px; z-index: 2; display: flex; gap: 12px; transform: translateX(-50%); }
@media (max-width: 1023px) { .ks-hero__dots { left: auto; right: 14px; bottom: 10px; transform: none; gap: 8px; } .ks-hero__dots button { width: 8px !important; height: 8px !important; } }
.ks-hero__dots button { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ks-white); background: transparent; }
.ks-hero__dots button[aria-selected="true"] { background: var(--ks-white); }

/* Brand tiles: 10 per row on desktop. */
.ks-brands__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (min-width: 640px) { .ks-brands__grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .ks-brands__grid { grid-template-columns: repeat(10, 1fr); gap: 24px; } }
.ks-brand a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	aspect-ratio: 110 / 112; padding: 10px 6px;
	border: 1px solid var(--ks-gray6); border-radius: var(--ks-r-md);
	background: var(--ks-white);
	transition: border-color .2s, box-shadow .2s;
}
.ks-brand a:hover { border-color: var(--ks-black); box-shadow: 0 4px 14px rgba(10, 10, 10, .06); }
.ks-brand__mark {
	display: flex; align-items: center; justify-content: center;
	min-height: 42px; width: 100%;
	font-size: clamp(12px, 1.5vw, 17px); font-weight: 700; line-height: 1;
	text-transform: uppercase; letter-spacing: -.01em; text-align: center;
	word-break: break-word;
}
.ks-brand__mark.is-long { font-size: clamp(10px, 1.1vw, 13px); }
.ks-brand__mark img { max-height: 42px; width: auto; }
/* Logos in one tone like the wordmarks; the brand's own colours on hover. */
.ks-brand__mark.has-logo img { width: 100%; height: 42px; max-height: none; object-fit: contain; filter: grayscale(1); transition: filter .2s; }
.ks-brand a:hover .ks-brand__mark.has-logo img { filter: none; }
.ks-brand__label { font-size: var(--ks-fs-12); font-weight: 500; color: var(--ks-black); text-align: center; }
@media (min-width: 1024px) { .ks-brand__label { font-size: var(--ks-fs-13); } }

/* Trust strip. */
.ks-trust__bar {
	display: grid; grid-template-columns: 1fr; gap: 12px;
	padding: 18px 20px;
	border-radius: var(--ks-r-md);
	background: linear-gradient(90deg, var(--ks-mint-from), var(--ks-mint-to) 55%, var(--ks-mint-from));
}
.ks-trust__brand .ks-wordmark { font-size: 22px; }
.ks-trust__item { display: flex; align-items: center; gap: 10px; font-size: var(--ks-fs-13); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.ks-trust__more { font-size: var(--ks-fs-13); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; }
@media (min-width: 1024px) {
	.ks-trust__bar { grid-template-columns: auto repeat(3, 1fr) auto; align-items: center; gap: 0; min-height: 100px; padding: 0 24px; }
	.ks-trust__bar > * { padding: 0 32px; }
	.ks-trust__bar > * + * { border-left: 1px solid rgba(10, 10, 10, .2); }
	.ks-trust__brand .ks-wordmark { font-size: 26px; }
	.ks-trust__item { font-size: var(--ks-fs-14); }
}
