/* Methodology page — a cinematic editorial interpretation of the supplied mockup.
   Mobile first, isolated behind .sl-methodology, and loaded only by its template. */

.sl-methodology {
	--sl-method-ink: #071017;
	--sl-method-ink-soft: #0d1820;
	--sl-method-paper: #f5f0e8;
	--sl-method-red: #e2232e;
	--sl-method-line: color-mix(in srgb, var(--sl-text) 16%, transparent);
	margin-bottom: -2rem;
	overflow: clip;
}

.sl-method-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: clamp(470px, 76svh, 680px);
	color: #fff;
	background-color: var(--sl-method-ink);
	background-image:
		linear-gradient(90deg, rgb(3 10 15 / 96%) 0%, rgb(3 10 15 / 82%) 46%, rgb(3 10 15 / 20%) 78%),
		linear-gradient(0deg, rgb(3 10 15 / 58%) 0%, transparent 45%),
		var(--sl-method-hero-image, url("../images/methodology-hero.webp"));
	background-position: center, center, 66% center;
	background-size: cover;
	isolation: isolate;
}

.sl-method-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: rgb(255 255 255 / 18%);
}

.sl-method-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 7rem;
	padding-bottom: 3.5rem;
}

.sl-method-kicker {
	margin: 0 0 0.8rem;
	color: var(--sl-method-red);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sl-method-hero h1,
.sl-method-sectionhead h2,
.sl-method-step h3,
.sl-method-profile h2,
.sl-method-cta h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 600;
	letter-spacing: -0.035em;
}

.sl-method-hero h1 {
	max-width: 9em;
	margin: 0;
	font-size: clamp(3.1rem, 14vw, 5.5rem);
	line-height: 0.94;
	text-wrap: balance;
}

.sl-method-rule {
	display: block;
	width: 3.5rem;
	height: 3px;
	margin: 1.6rem 0 1.2rem;
	background: var(--sl-method-red);
}

.sl-method-hero__lead {
	max-width: 34rem;
	margin: 0;
	color: rgb(255 255 255 / 84%);
	font-size: clamp(1rem, 3vw, 1.15rem);
	line-height: 1.65;
}

.sl-method-main {
	position: relative;
	padding: 3.5rem 0 4rem;
	background:
		radial-gradient(circle at 8% 22%, color-mix(in srgb, var(--sl-red) 8%, transparent), transparent 28rem),
		linear-gradient(135deg, color-mix(in srgb, var(--sl-surface) 92%, var(--sl-bg)), var(--sl-bg));
}

.sl-method-main::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.035;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.sl-method-intro {
	position: relative;
	max-width: 46rem;
	margin: 0 auto 3.5rem;
	font-size: 1.0625rem;
}

.sl-method-sectionhead {
	position: relative;
	max-width: 40rem;
	margin-bottom: 2.5rem;
}

.sl-method-sectionhead h2,
.sl-method-profile h2 {
	font-size: clamp(2rem, 8vw, 3rem);
	line-height: 1.06;
}

.sl-method-timeline {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sl-method-step {
	position: relative;
	display: grid;
	grid-template-columns: 4.2rem minmax(0, 1fr);
	gap: 1.1rem;
	min-height: 9.5rem;
}

.sl-method-step:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 3.75rem;
	bottom: -0.1rem;
	left: 2.05rem;
	border-left: 2px dotted color-mix(in srgb, var(--sl-method-red) 70%, transparent);
}

.sl-method-step__rail {
	position: relative;
	z-index: 1;
}

.sl-method-icon {
	display: grid;
	place-items: center;
	width: 4.2rem;
	aspect-ratio: 1;
	border: 1px solid var(--sl-method-line);
	border-radius: 50%;
	background: color-mix(in srgb, var(--sl-surface) 87%, transparent);
	color: var(--sl-method-red);
	box-shadow: 0 12px 32px rgb(0 0 0 / 7%);
}

.sl-method-icon svg,
.sl-method-flow__icon svg {
	width: 2.35rem;
	height: 2.35rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sl-method-icon text,
.sl-method-flow__icon text {
	fill: currentColor;
	stroke: none;
	font: 700 6px var(--sl-font-num);
}

.sl-method-step__number {
	position: absolute;
	z-index: 2;
	top: -0.2rem;
	left: -0.1rem;
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--sl-method-red);
	color: #fff;
	font: 700 0.72rem var(--sl-font-num);
	box-shadow: 0 0 0 4px var(--sl-bg);
}

.sl-method-step__copy { padding: 0.05rem 0 2.25rem; }
.sl-method-step__label {
	margin: 0 0 0.2rem;
	color: var(--sl-method-red);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.sl-method-step h3 {
	margin: 0 0 0.45rem;
	font-size: clamp(1.35rem, 5vw, 1.7rem);
	line-height: 1.18;
}
.sl-method-step__copy > p:last-child {
	max-width: 43rem;
	color: var(--sl-text-muted);
	font-size: 0.94rem;
	line-height: 1.6;
}

.sl-method-flow {
	position: relative;
	margin-top: 1.25rem;
	padding: 1.5rem 0.5rem;
	border: 1px solid var(--sl-method-line);
	border-radius: 1.1rem;
	background: color-mix(in srgb, var(--sl-surface) 76%, transparent);
	box-shadow: var(--sl-shadow);
}

.sl-method-flow ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(5.5rem, 1fr));
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.sl-method-flow li {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 0.55rem;
	min-width: 5rem;
	padding-inline: 0.35rem;
	color: var(--sl-text-muted);
	font-size: 0.68rem;
	text-align: center;
	scroll-snap-align: center;
}

.sl-method-flow li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 1.65rem;
	left: calc(50% + 1.9rem);
	width: calc(100% - 3.8rem);
	border-top: 2px dotted color-mix(in srgb, var(--sl-method-red) 70%, transparent);
}

.sl-method-flow__icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 3.35rem;
	aspect-ratio: 1;
	border: 1px solid color-mix(in srgb, var(--sl-method-red) 60%, var(--sl-border));
	border-radius: 50%;
	background: var(--sl-surface);
	color: var(--sl-method-red);
}
.sl-method-flow__icon svg { width: 1.9rem; height: 1.9rem; }

.sl-method-profile {
	position: relative;
	display: grid;
	gap: 1.5rem;
	margin-top: 1.5rem;
	padding: clamp(1.35rem, 5vw, 2.5rem);
	border: 1px solid var(--sl-method-line);
	border-radius: 1.1rem;
	background: color-mix(in srgb, var(--sl-surface) 88%, transparent);
	box-shadow: var(--sl-shadow);
}

.sl-method-profile__visual {
	display: grid;
	place-items: center;
	min-height: 11rem;
	color: color-mix(in srgb, var(--sl-text) 72%, transparent);
}
.sl-method-profile__visual svg {
	width: min(14rem, 72vw);
	height: auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sl-method-profile__visual .sl-method-profile__accent { stroke: var(--sl-method-red); }
.sl-method-profile__content { align-self: center; }
.sl-method-profile__content h2 { margin-bottom: 1.25rem; }
.sl-method-profile__content ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}
.sl-method-profile__content li {
	position: relative;
	padding-left: 1.75rem;
	color: var(--sl-text-muted);
	font-size: 0.94rem;
}
.sl-method-profile__content li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0.05rem;
	display: grid;
	place-items: center;
	width: 1.1rem;
	height: 1.1rem;
	border: 1px solid var(--sl-method-red);
	border-radius: 50%;
	color: var(--sl-method-red);
	font-size: 0.68rem;
	font-weight: 900;
}

.sl-method-cta {
	position: relative;
	display: grid;
	min-height: 32rem;
	place-items: center;
	padding: 5rem 0;
	color: #fff;
	text-align: center;
	background:
		linear-gradient(180deg, rgb(3 10 15 / 74%), rgb(3 10 15 / 48%) 45%, rgb(3 10 15 / 85%)),
		var(--sl-method-cta-image, url("../images/methodology-cta.webp")) center / cover;
}
.sl-method-cta__inner { position: relative; }
.sl-method-cta h2 {
	margin: 0 0 0.7rem;
	font-size: clamp(2.6rem, 11vw, 4.25rem);
	line-height: 1;
}
.sl-method-cta__inner > p:not(.sl-method-kicker) {
	max-width: 39rem;
	margin: 0 auto 1.4rem;
	color: rgb(255 255 255 / 82%);
	font-size: 1rem;
}
.sl-method-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	min-width: min(100%, 17rem);
	padding: 0.8rem 1.35rem;
	border-radius: 0.35rem;
	background: var(--sl-method-red);
	box-shadow: 0 12px 35px rgb(0 0 0 / 26%);
	color: #fff;
	font-weight: 750;
	text-decoration: none;
	transition: transform 160ms ease, background-color 160ms ease;
}
.sl-method-cta__button:hover {
	transform: translateY(-2px);
	background: #ff3440;
	color: #fff;
}
.sl-method-cta__button svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sl-method-cta__email {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: fit-content;
	margin: 0.85rem auto 0;
	color: rgb(255 255 255 / 82%);
	font-size: 0.85rem;
	text-decoration: none;
}
.sl-method-cta__email:hover { color: #fff; }
.sl-method-cta__email svg {
	width: 1.1rem;
	height: 1.1rem;
	fill: none;
	stroke: var(--sl-method-red);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (min-width: 560px) {
	.sl-method-profile__content ul { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
	.sl-method-hero {
		min-height: 590px;
		align-items: center;
	}
	.sl-method-hero__inner { padding-block: 6rem; }
	.sl-method-main { padding-block: 5.5rem; }
	.sl-method-sectionhead { margin-bottom: 3.5rem; }
	.sl-method-step {
		grid-template-columns: minmax(0, 0.72fr) 5.6rem minmax(0, 2fr);
		gap: 1.8rem;
		min-height: 10rem;
	}
	.sl-method-step::after {
		content: attr(data-step);
	}
	.sl-method-step__rail { grid-column: 2; }
	.sl-method-step__copy { grid-column: 3; padding-top: 0.3rem; }
	.sl-method-step:not(:last-child)::before { left: calc(26.5% + 2.75rem); top: 4.8rem; }
	.sl-method-icon { width: 5.6rem; }
	.sl-method-icon svg { width: 2.85rem; height: 2.85rem; }
	.sl-method-step__number { width: 1.65rem; height: 1.65rem; }
	.sl-method-profile {
		grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 1.4fr);
		gap: 2.5rem;
	}
	.sl-method-flow { padding: 1.7rem 1.25rem; }
	.sl-method-flow ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.sl-method-flow li { font-size: 0.76rem; }
}

@media (min-width: 1040px) {
	.sl-method-hero__inner { padding-inline: 1.5rem; }
	.sl-method-timeline,
	.sl-method-sectionhead { margin-inline: auto; max-width: 52rem; }
	.sl-method-step {
		grid-template-columns: 5.6rem minmax(0, 1fr);
		gap: 2.1rem;
	}
	.sl-method-step__rail { grid-column: 1; }
	.sl-method-step__copy { grid-column: 2; }
	.sl-method-step:not(:last-child)::before { left: 2.75rem; }
	.sl-method-profile { grid-template-columns: 0.7fr 1.3fr; }
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .sl-method-main {
		background:
			radial-gradient(circle at 8% 22%, rgb(226 35 46 / 8%), transparent 28rem),
			linear-gradient(135deg, #071017, #0a131a);
	}
}

:root[data-theme="dark"] .sl-method-main {
	background:
		radial-gradient(circle at 8% 22%, rgb(226 35 46 / 8%), transparent 28rem),
		linear-gradient(135deg, #071017, #0a131a);
}

@media (prefers-reduced-motion: no-preference) {
	.sl-method-step,
	.sl-method-flow,
	.sl-method-profile {
		animation: sl-method-rise 560ms both;
	}
	.sl-method-step:nth-child(2) { animation-delay: 80ms; }
	.sl-method-step:nth-child(3) { animation-delay: 160ms; }
	.sl-method-step:nth-child(4) { animation-delay: 240ms; }
	.sl-method-step:nth-child(5) { animation-delay: 320ms; }
	@keyframes sl-method-rise {
		from { opacity: 0; transform: translateY(14px); }
		to { opacity: 1; transform: translateY(0); }
	}
}
