/*
Theme Name: BlackWECOLAB
Theme URI: https://wecolab.com/
Author: WECOLAB
Author URI: https://wecolab.com/
Description: WECOLAB public theme. Child of Blackdsn 1.4.0 (Design Grid / ThemeForest, last upstream 2023). Parent stays the engine; this child is the brand fork we will evolve.
Template: blackdsn
Version: 0.2.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blackwecolab
*/

/* Brand overrides live here. Do not edit the parent blackdsn tree. */

html,
:root,
:root .v-dark,
:root .v-dark-head,
:root .v-light,
:root .v-light-head,
body,
body.v-dark,
body.v-light {
	--bg-color: #222 !important;
	--assistant-color: #1c1c1c !important;
	--theme-color: #2a2a2a !important;
	--theme-color-font: #fff !important;
	--font-color: #b3b3b3 !important;
	--heading-color: #fff !important;
	--border-color: #262626 !important;
	--smooth-color: #e8e8e8 !important;
	--reverse-color: #e8e8e8 !important;
	--reverse-heading-color: #000 !important;
	--bg-btn: #111 !important;
	--divider-color: #1f1f1f !important;
}

html,
body,
body.v-dark,
body.v-light {
	background-color: #222 !important;
	color: var(--font-color);
}

/* Dark gray + the same black-sand as pedromujica.com */
body.bw-sand::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: #222 url("assets/black_sand_mod.jpg") left top / cover no-repeat;
	background-blend-mode: soft-light;
	filter: brightness(2.15) contrast(1.18);
}

#dsn_preloader,
#dsn_preloader .bg-load {
	background-color: #000;
}

/* Mobile menu wipe is a full-screen SVG: paint its path, never its box (a box fill covers the page). */
.site-header .bg-load path {
	fill: #000;
}

.background-main,
#page_wrapper,
#dsn-scrollbar,
#dsn_footer,
.dsn-footer,
.root-page,
.root-project,
.bw-home,
.bw-archive,
.bw-fiche,
.bw-contact,
.background-section,
.dsn-footer.background-section,
.sidebar-single.background-section {
	background-color: transparent;
}

#dsn_box_options {
	display: none !important;
}

.bw-hero-title .title {
	font-size: 0;
	line-height: 0;
	letter-spacing: 0;
}

.bw-hero-mark {
	display: block;
	width: min(42vw, 260px);
	height: auto;
	filter: invert(1);
}

#hero_title .bw-hero-kicker,
#hero_title .bw-hero-line {
	margin: 0;
	line-height: 1.35;
}

#hero_title .bw-hero-kicker {
	margin-top: 1.35rem;
	max-width: 40rem;
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #e8e8e8;
}

#hero_title .bw-hero-line {
	margin-top: 0.45rem;
	max-width: 40rem;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	color: #8a8a8a;
}

/* Black left column vs sand page — no mix-blend (it ate contrast on #000) */
.bw-side-rail {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 20;
	width: 72px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 88px 0 36px;
	background: #000;
	color: #fff;
	box-shadow: 1px 0 0 #1c1c1c;
}

.bw-side-lab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	width: 30px;
	color: #fff;
}

.bw-side-lab p {
	margin: 0;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	white-space: nowrap;
	letter-spacing: 0.14em;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
}

.bw-side-lab__name {
	opacity: 1;
	font-weight: 600;
	letter-spacing: 0.22em;
}

.bw-side-lab__kicker {
	opacity: 0.88;
	letter-spacing: 0.1em;
}

.bw-side-lab__line {
	opacity: 0.48;
	letter-spacing: 0.08em;
	font-size: 10px;
}

.bw-side-rail .social-side {
	position: static;
	left: auto;
	bottom: auto;
	height: auto;
	z-index: auto;
	mix-blend-mode: normal !important;
	justify-content: flex-end;
	color: #fff;
	--heading-color: #fff;
}

@media only screen and (min-width: 992px) {
	.site-header {
		padding-left: 72px;
	}
}

@media only screen and (max-width: 991px) {
	.bw-side-rail {
		display: none;
	}
}

.bw-home .post-full-content {
	display: none;
}

.bw-works {
	padding-bottom: 8rem;
}

.bw-works__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2.4rem 1.6rem;
}

.bw-works__card {
	position: relative;
}

.bw-works__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.bw-works__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #121212;
	outline: 1px solid #1f1f1f;
}

.bw-works__card:hover .bw-works__media {
	outline-color: #333;
}

.bw-works__media img,
.bw-works__ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bw-works__ph {
	background: linear-gradient(160deg, #1c1c1c 0%, #101010 50%, #000 100%);
}

.bw-works__meta {
	padding: 1.1rem 0 0;
}

.bw-works__cat {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8a8a8a;
	opacity: 1;
	margin-bottom: 0.35rem;
}

.bw-works__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.25;
	color: #f2f2f2;
}

.bw-works__ext {
	display: inline-block;
	margin-top: 0.45rem;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.55;
}

.bw-home .post-full-content {
	max-width: 42rem;
	padding-bottom: 2rem;
}

.bw-home .post-full-content p {
	margin: 0 0 0.75rem;
}

.bw-contact address {
	font-style: normal;
	line-height: 1.7;
}

.bw-fiche__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 3rem;
	padding-bottom: 6rem;
	align-items: start;
}

.bw-fiche__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #121212;
	outline: 1px solid #1f1f1f;
}

.bw-fiche__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bw-fiche__copy p {
	margin: 0 0 1rem;
	max-width: 36rem;
	line-height: 1.55;
}

.bw-fiche__url a {
	word-break: break-all;
}

.bw-fiche__note {
	opacity: 0.5;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}

@media (max-width: 800px) {
	.bw-fiche__inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

.bw-fiche--lobo .bw-fiche__lobo {
	padding-bottom: 6rem;
	max-width: 1100px;
}

.bw-lobo__text {
	margin: 0 0 2.4rem;
	max-width: 40rem;
}

.bw-lobo__text h2 {
	margin: 0 0 0.8rem;
}

.bw-lobo__figure {
	margin: 0 0 1.4rem;
}

.bw-lobo__figure img,
.bw-lobo__figure video {
	display: block;
	width: 100%;
	height: auto;
}

.bw-lobo__slider {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.8rem;
	margin: 0 0 1.4rem;
}

.bw-lobo__slider .bw-lobo__figure {
	margin: 0;
}

.bw-lobo--rebelia .bw-lobo__text {
	max-width: 44rem;
}

.bw-lobo--rebelia .bw-lobo__meta {
	color: #8a8a8a;
	font-size: 0.92rem;
	letter-spacing: 0.02em;
}

.bw-lobo--rebelia .bw-lobo__brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2.4rem 3rem;
	padding: 2.2rem 2rem;
	margin: 0 0 2.4rem;
	background: #111;
	outline: 1px solid #1f1f1f;
}

.bw-lobo--rebelia .bw-lobo__brand img {
	max-height: 88px;
	width: auto;
	max-width: 280px;
	display: block;
}

.bw-lobo--rebelia .bw-lobo__brand .is-invert {
	filter: invert(1);
}

.bw-lobo--rebelia .bw-lobo__brand .is-color {
	background: #f2f2f2;
	padding: 0.85rem 1.1rem;
}

.bw-lobo--rebelia .bw-lobo__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.8rem;
	margin: 0 0 1.4rem;
}

.bw-lobo--rebelia .bw-lobo__pair .bw-lobo__figure {
	margin: 0;
}

@media (max-width: 800px) {
	.bw-lobo--rebelia .bw-lobo__pair {
		grid-template-columns: 1fr;
	}
}

.bw-nav-lang a {
	letter-spacing: 0.12em;
}

.bw-nav-lang.current-menu-item a {
	opacity: 1;
}

.bw-nav-lang:not(.current-menu-item) a {
	opacity: 0.45;
}

.bw-search-open__icon {
	font-size: 1.15em;
	line-height: 1;
}

.bw-search {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.86);
}

.bw-search[hidden] {
	display: none;
}

.bw-search__form {
	display: flex;
	gap: 0.6rem;
	width: min(640px, 90vw);
}

.bw-search__form input[type="search"] {
	flex: 1;
	background: #111;
	color: #fff;
	border: 1px solid #333;
	padding: 0.85rem 1rem;
	font-size: 1rem;
}

.bw-search__form button,
.bw-search__close {
	background: #fff;
	color: #000;
	border: 0;
	padding: 0.85rem 1.1rem;
	cursor: pointer;
}

.bw-search__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	font-size: 1.4rem;
	line-height: 1;
	padding: 0.35rem 0.65rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.bw-legal-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1.2rem;
	margin-top: 1.1rem;
	padding: 0;
	list-style: none;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bw-legal-nav a {
	color: #8a8a8a;
}

.bw-clients,
.bw-team,
.bw-contact,
.root-page .post-full-content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.5rem 6rem;
}

.bw-clients h1,
.bw-team h2,
.root-page .post-full-content h1 {
	margin: 0 0 1.6rem;
}

.bw-clients__grid,
.bw-team__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1.2rem;
	align-items: center;
}

.bw-team__grid {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	margin: 2rem 0 2.4rem;
}

.bw-clients__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 88px;
	background: #f2f2f2;
	padding: 0.8rem;
}

.bw-clients__logo,
.bw-team__img {
	display: block;
	width: 100%;
	height: auto;
}

.bw-clients__cta {
	margin-top: 2.4rem;
	text-align: center;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bw-team__card {
	margin: 0;
	background: #111;
}

.bw-team__card figcaption {
	padding: 0.7rem 0.8rem 1rem;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #b3b3b3;
}

/* ------------------------------------------------------------------
 * CookieYes banner in the site palette (0.2.7). CookieYes writes its
 * colours as inline styles, so the overrides need !important.
 * ------------------------------------------------------------------ */
.cky-consent-container .cky-consent-bar,
.cky-preference-center,
.cky-modal .cky-preference-center {
	background-color: #111 !important;
	border-color: #1f1f1f !important;
	color: #e8e8e8 !important;
}
.cky-consent-bar .cky-title,
.cky-consent-bar .cky-notice-des,
.cky-consent-bar .cky-notice-des p,
.cky-preference-center .cky-preference-title,
.cky-preference-center .cky-preference-content-wrapper,
.cky-preference-center .cky-accordion-btn,
.cky-preference-center .cky-accordion-header-des,
.cky-preference-center .cky-always-active {
	color: #e8e8e8 !important;
}
.cky-consent-bar .cky-notice-des a,
.cky-consent-bar .cky-policy,
.cky-preference-center a,
.cky-preference-center .cky-show-desc-btn {
	color: #fff !important;
	text-decoration: underline;
}
.cky-preference-center .cky-audit-table {
	background-color: #1a1a1a !important;
	border-color: #2a2a2a !important;
	color: #8a8a8a !important;
}
.cky-preference-center .cky-accordion,
.cky-preference-center .cky-preference-header,
.cky-preference-center .cky-footer-wrapper {
	border-color: #1f1f1f !important;
}
.cky-preference-center .cky-footer-shadow {
	background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, #111 100%) !important;
}
.cky-btn.cky-btn-accept,
.cky-btn.cky-btn-preferences {
	background-color: #fff !important;
	border-color: #fff !important;
	color: #000 !important;
}
.cky-btn.cky-btn-reject,
.cky-btn.cky-btn-customize {
	background-color: transparent !important;
	border-color: #e8e8e8 !important;
	color: #e8e8e8 !important;
}
.cky-btn:hover {
	opacity: 0.85;
}
.cky-btn-close img,
.cky-accordion-chevron i::before {
	filter: invert(1);
}
.cky-btn-revisit-wrapper {
	background-color: #1f1f1f !important;
}
