/* Motto Site — marka vitrini (MADRIX sayfası, widgets/class-brand.php). Kartlar product-card.css'te.
 * Davranış: assets/js/brand.js (süzgeçler, adımlar) ve pixels.js (giriş matrisi). */

/* ---------------------------------------------------------------------------
 * Giriş: tam genişlikte canlı piksel matrisi, solda yazılar.
 * ------------------------------------------------------------------------ */
.motto-br-hero {
	display: flex;
	align-items: center;
	min-height: min(100svh, 980px);
	margin-top: calc(var(--motto-hdr-h) * -1);
	padding-top: calc(var(--motto-hdr-h) + clamp(32px, 4vw, 64px));
	padding-bottom: clamp(70px, 7vw, 110px);
	overflow: hidden;
	isolation: isolate;
	background: #030303;
}

.motto-br-hero__matrix {
	position: absolute;
	z-index: -2;
	inset: 0;
}

.motto-br-hero__veil {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(3, 3, 3, 0.94) 0%, rgba(3, 3, 3, 0.82) 34%, rgba(3, 3, 3, 0.28) 66%, rgba(3, 3, 3, 0.1) 100%),
		linear-gradient(0deg, var(--motto-bg) 0%, rgba(18, 18, 18, 0) 26%),
		linear-gradient(180deg, rgba(3, 3, 3, 0.8) 0%, rgba(3, 3, 3, 0) 22%);
	pointer-events: none;
}

.motto-br-hero__inner {
	position: relative;
	width: 100%;
	max-width: 920px;
}

/* Renkli MADRIX logosu yalnızca saf siyah zeminde kullanılır; çevresinde simge boyu kadar boşluk kalır. */
.motto-br-hero__badge {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 26px;
	margin: 0 0 clamp(26px, 3vw, 40px);
}

.motto-br-hero__plate {
	display: inline-flex;
	padding: 30px;
	border-radius: 18px;
	background: #000;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.motto-br-hero__plate img {
	display: block;
	width: auto;
	height: 34px;
}

.motto-br-hero__role {
	color: rgba(255, 255, 255, 0.72);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.24em;
	line-height: 1.6;
	text-transform: uppercase;
}

.motto-br-hero .motto-br-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(40px, 5vw, 86px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1;
	text-wrap: balance;
}

.motto-br-hero__title em {
	background: linear-gradient(90deg, #b1db18, #3fd3c6 45%, #c9a050 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-style: normal;
}

.motto-br-hero__text {
	max-width: 56ch;
	margin: clamp(20px, 2.2vw, 30px) 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(16px, 1.2vw, 19px);
	line-height: 1.7;
}

.motto-br-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: clamp(28px, 2.8vw, 40px);
}

.motto-br-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 26px;
	margin: clamp(30px, 3.2vw, 46px) 0 0;
	padding: 0;
	list-style: none;
}

.motto-br-hero__trust li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 13.5px;
}

.motto-br-hero__trust .motto-icon {
	width: 18px;
	height: 18px;
	color: var(--motto-gold);
}

.motto-br-hero .motto-br-hero__proof {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 22px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.25);
	text-underline-offset: 4px;
	transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.motto-br-hero .motto-br-hero__proof:hover {
	color: #fff;
	text-decoration-color: var(--motto-gold);
}

.motto-br-hero__proof .motto-icon {
	width: 15px;
	height: 15px;
}

.motto-br-hero__fx {
	position: absolute;
	right: var(--motto-pad);
	bottom: clamp(26px, 3vw, 44px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(3, 3, 3, 0.6);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: rgba(255, 255, 255, 0.62);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.motto-br-hero__fx i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #b1db18;
	animation: motto-br-live 2.2s ease-out infinite;
}

.motto-br-hero__fx b {
	color: #fff;
	font-weight: 600;
	opacity: 0.2;
	transition: opacity 0.35s ease;
}

.motto-br-hero__fx b.is-in {
	opacity: 1;
}

@keyframes motto-br-live {
	0% {
		box-shadow: 0 0 0 0 rgba(177, 219, 24, 0.6);
	}
	70%,
	100% {
		box-shadow: 0 0 0 8px rgba(177, 219, 24, 0);
	}
}

@keyframes motto-br-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 34px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes motto-br-fade {
	from {
		opacity: 0;
	}
}

.motto-js .motto-br-hero__inner > * {
	animation: motto-br-rise 1.1s var(--motto-ease-out) both;
}

.motto-js .motto-br-hero__inner > :nth-child(2) { animation-delay: 0.08s; }
.motto-js .motto-br-hero__inner > :nth-child(3) { animation-delay: 0.18s; }
.motto-js .motto-br-hero__inner > :nth-child(4) { animation-delay: 0.28s; }
.motto-js .motto-br-hero__inner > :nth-child(5) { animation-delay: 0.38s; }
.motto-js .motto-br-hero__inner > :nth-child(6) { animation-delay: 0.46s; }

.motto-js .motto-br-hero__matrix {
	animation: motto-br-fade 2.8s ease 0.2s both;
}

/* ---------------------------------------------------------------------------
 * Sistem adımları: birbirine bağlı dört halka; tıklanınca ürün listesi süzülür.
 * ------------------------------------------------------------------------ */
.motto-br-chain__list {
	--gap: clamp(12px, 1.4vw, 20px);
	display: grid;
	grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.motto-br-chain__step {
	position: relative;
	min-width: 0;
}

/* Halkaları bağlayan çizgi (düğümün sağından bir sonraki düğüme) ve üzerinde akan ışık. */
.motto-br-chain__step:not(:last-child)::before,
.motto-br-chain__step:not(:last-child)::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: 85px;
	left: 62px;
	width: calc(100% - 38px + var(--gap));
	height: 1px;
	background: rgba(201, 160, 80, 0.32);
	pointer-events: none;
}

.motto-br-chain__step:not(:last-child)::after {
	background: linear-gradient(90deg, transparent, #fff, transparent) no-repeat;
	background-size: 34% 100%;
	animation: motto-br-flow 2.8s linear infinite;
	animation-delay: calc(var(--d, 0) * 0.7s);
}

@keyframes motto-br-flow {
	from {
		background-position: -60% 0;
	}
	to {
		background-position: 160% 0;
	}
}

.motto-sec button.motto-br-chain__btn,
.motto-sec button.motto-br-chain__btn:hover,
.motto-sec button.motto-br-chain__btn:focus {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 26px 24px 24px;
	border: 0;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.025);
	box-shadow: inset 0 0 0 1px var(--motto-line);
	color: var(--motto-ink);
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	cursor: pointer;
	transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.motto-sec button.motto-br-chain__btn:hover,
.motto-sec button.motto-br-chain__btn.is-active {
	background: rgba(201, 160, 80, 0.06);
	box-shadow: inset 0 0 0 1px rgba(201, 160, 80, 0.55);
}

.motto-br-chain__num {
	display: block;
	color: var(--motto-ink-3);
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.12em;
	line-height: 18px;
}

.motto-br-chain__node {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	margin: 22px 0;
	border-radius: 50%;
	background: var(--motto-bg);
	box-shadow: inset 0 0 0 1px rgba(201, 160, 80, 0.5);
}

.motto-br-chain__node i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--motto-gold);
	box-shadow: 0 0 14px rgba(201, 160, 80, 0.8);
	transition: transform 0.45s var(--motto-ease-out);
}

.motto-br-chain__btn:hover .motto-br-chain__node i,
.motto-br-chain__btn.is-active .motto-br-chain__node i {
	transform: scale(1.5);
}

.motto-br-chain__title {
	margin-bottom: 10px;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.motto-br-chain__text {
	color: var(--motto-ink-2);
	font-size: 14.5px;
	line-height: 1.65;
}

.motto-br-chain__products {
	margin-top: 16px;
	color: var(--motto-gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.motto-br-chain__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 18px;
	color: var(--motto-ink-3);
	font-size: 12.5px;
	transition: color 0.3s ease;
}

.motto-br-chain__go .motto-icon {
	width: 15px;
	height: 15px;
}

.motto-br-chain__btn:hover .motto-br-chain__go {
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * Ürün listesi
 * ------------------------------------------------------------------------ */
.motto-br-lineup__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 40px;
	margin-bottom: clamp(28px, 3.4vw, 52px);
}

.motto-br-lineup__top .motto-sec__head {
	margin-bottom: 0;
}

.motto-br-lineup__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.motto-sec button.motto-br-lineup__filter,
.motto-sec button.motto-br-lineup__filter:hover,
.motto-sec button.motto-br-lineup__filter:focus {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	color: var(--motto-ink-2);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.motto-sec button.motto-br-lineup__filter:hover {
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.motto-sec button.motto-br-lineup__filter.is-active {
	background: #fff;
	box-shadow: none;
	color: #121212;
}

.motto-br-lineup__filter span {
	min-width: 22px;
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 11px;
	text-align: center;
}

.motto-br-lineup__filter.is-active span {
	background: rgba(0, 0, 0, 0.08);
}

.motto-br-lineup__grid .motto-ucard {
	transition: opacity 0.35s ease;
}

.motto-br-lineup__grid .motto-ucard.is-leaving {
	opacity: 0;
}

/* ---------------------------------------------------------------------------
 * Projelerde
 * ------------------------------------------------------------------------ */
.motto-br-field__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(32px, 4.4vw, 80px);
	align-items: center;
}

.motto-br-field__media {
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	border-radius: 28px;
	background: #050505;
}

.motto-br-field__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.6s var(--motto-ease-out);
}

.motto-br-field__media:hover img {
	transform: scale(1.04);
}

.motto-br-field__head {
	margin-bottom: 26px;
}

.motto-br-field__project {
	padding: 22px 24px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.03);
	box-shadow: inset 0 0 0 1px var(--motto-line);
}

.motto-br-field__name {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 14px;
}

.motto-sec .motto-br-field__name a {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
}

.motto-sec .motto-br-field__name a:hover {
	color: var(--motto-gold);
}

.motto-br-field__name small {
	color: var(--motto-ink-3);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.motto-br-field__rows {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.motto-br-field__rows li {
	display: grid;
	gap: 2px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.motto-br-field__rows strong {
	font-size: 14px;
	font-weight: 600;
}

.motto-sec .motto-br-field__rows strong a {
	color: var(--motto-gold);
	text-decoration: none;
}

.motto-sec .motto-br-field__rows strong a:hover {
	color: #fff;
}

.motto-br-field__rows span {
	color: var(--motto-ink-2);
	font-size: 14px;
	line-height: 1.55;
}

.motto-br-field__more {
	display: grid;
	gap: 6px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.motto-sec .motto-br-field__more a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--motto-ink-2);
	font-size: 14px;
	text-decoration: none;
}

.motto-br-field__more .motto-icon {
	width: 15px;
	height: 15px;
	color: var(--motto-gold);
}

.motto-br-field__copy > .motto-btn {
	margin-top: 26px;
}

/* ---------------------------------------------------------------------------
 * Hizmetler ve marka notu
 * ------------------------------------------------------------------------ */
.motto-br-services__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(32px, 5vw, 96px);
	align-items: start;
}

.motto-br-services__head {
	position: sticky;
	top: calc(var(--motto-hdr-h) + 24px);
	margin-bottom: 0;
}

.motto-br-services__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 24px;
	background: var(--motto-line);
	box-shadow: inset 0 0 0 1px var(--motto-line);
	list-style: none;
}

.motto-br-services__item {
	padding: clamp(24px, 2.4vw, 34px);
	background: var(--motto-bg);
}

.motto-br-services__num {
	display: block;
	margin-bottom: 18px;
	color: var(--motto-gold);
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.1em;
}

.motto-br-services__item h3 {
	margin: 0 0 10px;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.motto-br-services__item p {
	margin: 0;
	color: var(--motto-ink-2);
	font-size: 14.5px;
	line-height: 1.65;
}

.motto-br-note {
	margin: clamp(30px, 3.4vw, 50px) 0 0;
	color: var(--motto-ink-3);
	font-size: 12px;
	line-height: 1.6;
}

/* ---------------------------------------------------------------------------
 * Duyarlı düzen
 * ------------------------------------------------------------------------ */
@media (max-width: 1199px) {
	.motto-br-chain__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.motto-br-chain__step::before,
	.motto-br-chain__step::after {
		display: none;
	}
}

@media (max-width: 1023px) {
	.motto-br-hero__veil {
		background:
			linear-gradient(180deg, rgba(3, 3, 3, 0.86) 0%, rgba(3, 3, 3, 0.7) 50%, rgba(3, 3, 3, 0.86) 100%),
			linear-gradient(0deg, var(--motto-bg) 0%, rgba(18, 18, 18, 0) 26%);
	}

	.motto-br-field__grid,
	.motto-br-services__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.motto-br-services__head {
		position: static;
	}
}

@media (max-width: 767px) {
	.motto-br-hero {
		min-height: 0;
	}

	.motto-br-hero__plate {
		padding: 24px;
	}

	.motto-br-hero__plate img {
		height: 30px;
	}

	.motto-br-hero__fx {
		display: none;
	}

	.motto-br-chain__list,
	.motto-br-services__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.motto-br-lineup__filters {
		flex-wrap: nowrap;
		width: calc(100% + var(--motto-pad) * 2);
		margin: 0 calc(var(--motto-pad) * -1);
		padding: 2px var(--motto-pad);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.motto-br-lineup__filters::-webkit-scrollbar {
		display: none;
	}

	.motto-sec button.motto-br-lineup__filter {
		flex: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.motto-js .motto-br-hero__inner > *,
	.motto-js .motto-br-hero__matrix,
	.motto-br-chain__step::after,
	.motto-br-hero__fx i {
		animation: none;
	}
}

/* Marka sayfasında bölümler arası boşluk ürün sayfasındaki kadar (bölüm başına 44–80 px üst ve alt). */
.motto-brand-page .motto-sec:not(.motto-br-hero) {
	padding-top: clamp(44px, 4.8vw, 80px);
	padding-bottom: clamp(44px, 4.8vw, 80px);
}
