/**
 * Backlab Method — processo editorial e estrutural.
 * Sem JavaScript: o estado base e o estado final sao o mesmo.
 */

section.bl-method.bl-scope {
	position: relative;
	isolation: isolate;
	margin: 0;
	background-color: var(--bl-bg-primary, #080c0c);
	background-image: linear-gradient(180deg, var(--bl-bg-deep, #050707) 0, var(--bl-bg-primary, #080c0c) 18rem, var(--bl-bg-primary, #080c0c) 100%);
	color: var(--bl-text-primary, #f5f8f7);
	overflow: clip;
}

.bl-method::before {
	position: absolute;
	inset: 0 0 auto;
	block-size: 18rem;
	background: linear-gradient(180deg, rgba(61, 191, 176, 0.025), transparent 72%);
	content: "";
	pointer-events: none;
}

.bl-method__inner {
	position: relative;
	padding-block: clamp(7rem, 10vw, 11rem) clamp(6.5rem, 9vw, 10rem);
}

.bl-method__intro {
	max-inline-size: 78rem;
}

.bl-method__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 clamp(1.5rem, 2.4vw, 2.25rem);
	color: var(--bl-text-secondary, #a8b4b1);
	font-size: clamp(0.67rem, 0.64rem + 0.12vw, 0.78rem);
	font-weight: 600;
	letter-spacing: 0.13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bl-method__eyebrow::before {
	inline-size: clamp(1.75rem, 3vw, 3.25rem);
	block-size: 1px;
	background: linear-gradient(90deg, var(--bl-color-brand, #3dbfb0), rgba(61, 191, 176, 0.15));
	content: "";
}

.bl-method__intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.7fr);
	align-items: end;
	gap: clamp(2.5rem, 6vw, 7rem);
}

.bl-method__headline {
	max-inline-size: 21ch;
	margin: 0;
	color: var(--bl-text-primary, #f5f8f7);
	font-family: var(--bl-font-display, sans-serif);
	font-size: clamp(2.6rem, 1.35rem + 3.6vw, 4.75rem);
	font-weight: 600;
	letter-spacing: -0.052em;
	line-height: 1.01;
	text-wrap: balance;
}

.bl-method__lead {
	max-inline-size: 38ch;
	margin: 0 0 0.35rem;
	color: var(--bl-text-secondary, #a8b4b1);
	font-size: clamp(1rem, 0.94rem + 0.28vw, 1.2rem);
	font-weight: 400;
	line-height: 1.62;
}

.bl-method__process {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: clamp(5rem, 8vw, 8rem) 0 0;
	padding: 0;
	border-block: 1px solid var(--bl-border, rgba(255, 255, 255, 0.08));
	list-style: none;
}

.bl-method__stage {
	position: relative;
	display: flex;
	min-inline-size: 0;
	min-block-size: clamp(30rem, 37vw, 35rem);
	flex-direction: column;
	padding: clamp(1.75rem, 2.4vw, 2.5rem) clamp(1.25rem, 2.1vw, 2.25rem) clamp(2rem, 2.8vw, 2.75rem);
	border-inline-start: 1px solid var(--bl-border, rgba(255, 255, 255, 0.08));
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 42%);
	transition: background-color 220ms ease, border-color 220ms ease;
}

.bl-method__stage:first-child {
	border-inline-start: 0;
}

.bl-method__stage::before {
	position: absolute;
	inset: -1px auto auto 0;
	inline-size: 0;
	block-size: 1px;
	background: var(--bl-color-brand, #3dbfb0);
	content: "";
	transition: inline-size 220ms ease;
}

.bl-method__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

.bl-method__number {
	color: var(--bl-text-secondary, #a8b4b1);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1;
	transition: color 220ms ease;
}

.bl-method__coordinate {
	color: var(--bl-text-muted, #71807d);
	font-size: 0.6rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1;
}

.bl-method__signal {
	position: relative;
	block-size: 4.5rem;
	margin-block: clamp(2rem, 3.2vw, 3rem) clamp(1.5rem, 2.5vw, 2.25rem);
	opacity: 0.78;
	transition: opacity 220ms ease;
}

.bl-method__signal::before {
	position: absolute;
	inset: 50% 0 auto;
	block-size: 1px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(61, 191, 176, 0.32), rgba(255, 255, 255, 0.08));
	content: "";
}

.bl-method__signal::after {
	position: absolute;
	inset: calc(50% - 2px) 0 auto auto;
	inline-size: 5px;
	block-size: 5px;
	border-block-start: 1px solid rgba(61, 191, 176, 0.7);
	border-inline-end: 1px solid rgba(61, 191, 176, 0.7);
	content: "";
	transform: rotate(45deg);
}

.bl-method__signal i {
	position: absolute;
	inline-size: 4px;
	block-size: 4px;
	background: var(--bl-text-muted, #71807d);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.025);
}

.bl-method__stage--understand .bl-method__signal i:nth-child(1) { inset: 18% auto auto 4%; }
.bl-method__stage--understand .bl-method__signal i:nth-child(2) { inset: 69% auto auto 30%; }
.bl-method__stage--understand .bl-method__signal i:nth-child(3) { inset: 25% auto auto 61%; }
.bl-method__stage--understand .bl-method__signal i:nth-child(4) { inset: 65% 8% auto auto; }

.bl-method__stage--structure .bl-method__signal i {
	inset-block-start: calc(50% - 2px);
	background: rgba(61, 191, 176, 0.65);
}

.bl-method__stage--structure .bl-method__signal i:nth-child(1) { inset-inline-start: 5%; }
.bl-method__stage--structure .bl-method__signal i:nth-child(2) { inset-inline-start: 34%; }
.bl-method__stage--structure .bl-method__signal i:nth-child(3) { inset-inline-start: 63%; }
.bl-method__stage--structure .bl-method__signal i:nth-child(4) { inset-inline-start: 90%; }

.bl-method__stage--implement .bl-method__signal i {
	inset-block-start: calc(50% - 2px);
	inline-size: 18%;
	block-size: 4px;
	background: rgba(61, 191, 176, 0.62);
	box-shadow: none;
}

.bl-method__stage--implement .bl-method__signal i:nth-child(1) { inset-inline-start: 0; }
.bl-method__stage--implement .bl-method__signal i:nth-child(2) { inset-inline-start: 25%; }
.bl-method__stage--implement .bl-method__signal i:nth-child(3) { inset-inline-start: 50%; }
.bl-method__stage--implement .bl-method__signal i:nth-child(4) { inset-inline-start: 75%; }

.bl-method__stage--evolve .bl-method__signal::before {
	background: linear-gradient(90deg, rgba(61, 191, 176, 0.2), rgba(61, 191, 176, 0.7) 76%, rgba(61, 191, 176, 0.2));
}

.bl-method__stage--evolve .bl-method__signal i {
	inset-block-start: calc(50% - 2px);
	border: 1px solid rgba(61, 191, 176, 0.72);
	background: var(--bl-bg-primary, #080c0c);
	box-shadow: none;
}

.bl-method__stage--evolve .bl-method__signal i:nth-child(1) { inset-inline-start: 6%; }
.bl-method__stage--evolve .bl-method__signal i:nth-child(2) { inset-inline-start: 33%; }
.bl-method__stage--evolve .bl-method__signal i:nth-child(3) { inset-inline-start: 60%; }
.bl-method__stage--evolve .bl-method__signal i:nth-child(4) { inset-inline-start: 86%; }

.bl-method__title {
	margin: 0;
	color: var(--bl-text-primary, #f5f8f7);
	font-family: var(--bl-font-display, sans-serif);
	font-size: clamp(1.75rem, 1.25rem + 1.25vw, 2.45rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.05;
	transition: transform 220ms ease;
}

.bl-method__description {
	max-inline-size: 31ch;
	margin: 1.25rem 0 0;
	color: var(--bl-text-secondary, #a8b4b1);
	font-size: clamp(0.94rem, 0.9rem + 0.18vw, 1.05rem);
	line-height: 1.62;
}

.bl-method__terms {
	display: grid;
	margin: auto 0 0;
	padding: clamp(2.75rem, 4.5vw, 4.25rem) 0 0;
	list-style: none;
}

.bl-method__terms li {
	margin: 0;
	padding-block: 0.72rem 0.66rem;
	border-block-start: 1px solid rgba(255, 255, 255, 0.065);
	color: var(--bl-text-secondary, #a8b4b1);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	line-height: 1.25;
	text-transform: uppercase;
	transition: color 220ms ease, border-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.bl-method__stage:hover {
		background-color: rgba(61, 191, 176, 0.018);
		border-inline-start-color: rgba(61, 191, 176, 0.2);
	}

	.bl-method__stage:hover::before {
		inline-size: 38%;
	}

	.bl-method__stage:hover .bl-method__number {
		color: var(--bl-color-brand, #3dbfb0);
	}

	.bl-method__stage:hover .bl-method__signal {
		opacity: 1;
	}

	.bl-method__stage:hover .bl-method__title {
		transform: translateX(3px);
	}

	.bl-method__stage:hover .bl-method__terms li {
		border-block-start-color: rgba(61, 191, 176, 0.16);
		color: var(--bl-text-primary, #f5f8f7);
	}
}

@media (max-width: 1179px) {
	.bl-method__intro-grid {
		grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.62fr);
		gap: clamp(2rem, 4vw, 4rem);
	}

	.bl-method__process {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bl-method__stage {
		min-block-size: 28rem;
		padding-inline: clamp(1.5rem, 4vw, 3rem);
	}

	.bl-method__stage:nth-child(3) {
		border-inline-start: 0;
	}

	.bl-method__stage:nth-child(-n + 2) {
		border-block-end: 1px solid var(--bl-border, rgba(255, 255, 255, 0.08));
	}
}

@media (max-width: 767px) {
	.bl-method__inner {
		padding-block: clamp(5.5rem, 20vw, 7.25rem) clamp(5rem, 18vw, 7rem);
	}

	.bl-method__intro-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.75rem;
	}

	.bl-method__headline {
		max-inline-size: 13ch;
		font-size: clamp(2.35rem, 11vw, 3.35rem);
		line-height: 1.02;
	}

	.bl-method__lead {
		max-inline-size: 31ch;
		margin: 0;
	}

	.bl-method__process {
		grid-template-columns: minmax(0, 1fr);
		margin-block-start: clamp(4rem, 17vw, 5.5rem);
	}

	.bl-method__stage,
	.bl-method__stage:nth-child(3) {
		min-block-size: 0;
		padding: 2rem 0 3.25rem 3.25rem;
		border-inline-start: 0;
		border-block-end: 1px solid var(--bl-border, rgba(255, 255, 255, 0.08));
		background: none;
	}

	.bl-method__stage:last-child {
		border-block-end: 0;
	}

	.bl-method__stage::after {
		position: absolute;
		inset: 2rem auto 0 1rem;
		inline-size: 1px;
		background: linear-gradient(180deg, rgba(61, 191, 176, 0.45), rgba(255, 255, 255, 0.08) 70%, transparent);
		content: "";
	}

	.bl-method__stage:last-child::after {
		inset-block-end: 1.5rem;
		background: linear-gradient(180deg, rgba(61, 191, 176, 0.45), rgba(61, 191, 176, 0.08) 76%, transparent);
	}

	.bl-method__stage::before {
		inset: 2rem auto auto calc(1rem - 4px);
		inline-size: 9px;
		block-size: 1px;
		background: var(--bl-color-brand, #3dbfb0);
	}

	.bl-method__coordinate {
		display: none;
	}

	.bl-method__number {
		color: var(--bl-color-brand, #3dbfb0);
		font-size: 0.72rem;
	}

	.bl-method__signal {
		block-size: 3.5rem;
		margin-block: 1.5rem 1.25rem;
	}

	.bl-method__title {
		font-size: clamp(2rem, 9.5vw, 2.75rem);
	}

	.bl-method__description {
		max-inline-size: 33ch;
		font-size: 1rem;
	}

	.bl-method__terms {
		margin-block-start: 2.75rem;
		padding-block-start: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bl-method__stage,
	.bl-method__stage::before,
	.bl-method__number,
	.bl-method__signal,
	.bl-method__title,
	.bl-method__terms li {
		transition-duration: 0.01ms;
	}
}

@media (forced-colors: active) {
	.bl-method__process,
	.bl-method__stage,
	.bl-method__terms li {
		border-color: CanvasText;
	}

	.bl-method__eyebrow::before,
	.bl-method__stage::before,
	.bl-method__signal::before,
	.bl-method__signal i {
		background: CanvasText;
	}
}
