/*
 * Softliro — section components.
 *
 * The pieces the Elementor widgets and the section template parts render.
 * Loaded only when one of them is on the page.
 */

/* ----------------------------------------------------------------- Hero */

.sl-hero__grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 56px;
	align-items: center;
	padding-block: calc(var(--sl-section) * 0.9) calc(var(--sl-section) * 0.7);
}

.sl-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	padding: 6px 10px;
}

.sl-hero__heading {
	margin: 28px 0 0;
	font-size: var(--sl-h1);
	line-height: 1.02;
	max-width: 15ch;
}

.sl-hero__lead {
	margin: 26px 0 0;
	max-width: 52ch;
	color: var(--sl-text-soft);
}

.sl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

.sl-hero__status {
	margin-top: 28px;
}

.sl-hero__figure {
	position: relative;
}

.sl-hero__plate {
	position: relative;
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	padding: 12%;
	background: var(--sl-surface-2);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	overflow: hidden;
}

.sl-hero__image {
	width: 100%;
	border-radius: var(--sl-radius);
}

.sl-hero__caption {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 18px;
	margin-top: 14px;
	font-family: var(--sl-font-mono);
	font-size: 10px;
	letter-spacing: var(--sl-label-tracking);
	text-transform: uppercase;
	color: var(--sl-muted);
}

.sl-hero__caption-meta {
	color: var(--sl-text);
}

/* --------------------------------------------------------------- CTA */

.sl-cta__inner {
	position: relative;
	overflow: hidden;
	padding: 80px 60px;
	background: var(--sl-surface);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
}

.sl-cta--flat .sl-cta__inner {
	background: none;
	border: 0;
	border-top: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: 0;
	padding-inline: 0;
}

.sl-cta__stroke {
	position: absolute;
	right: -40px;
	bottom: -40px;
	width: 460px;
	color: var(--sl-hairline);
	pointer-events: none;
}

.sl-cta__body {
	position: relative;
	max-width: 60ch;
}

.sl-cta__eyebrow {
	color: var(--sl-signal);
}

.sl-cta__heading {
	margin: 20px 0 18px;
	font-size: var(--sl-h1);
	max-width: 16ch;
}

.sl-cta__lead {
	margin: 0;
	max-width: 52ch;
	color: var(--sl-text-soft);
}

.sl-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

/* ------------------------------------------------------------- Services */

.sl-services {
	display: grid;
	grid-template-columns: repeat(var(--sl-services-columns, 2), minmax(0, 1fr));
	gap: var(--sl-border-w);
	background: var(--sl-hairline);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	overflow: hidden;
}

.sl-service {
	display: flex;
	flex-direction: column;
	min-height: 280px;
	padding: 38px 34px 34px;
	background: var(--sl-surface);
	color: var(--sl-text);
	transition: background-color var(--sl-duration) var(--sl-ease);
}

a.sl-service:hover,
a.sl-service:focus-visible {
	background: var(--sl-surface-2);
	color: var(--sl-text);
}

.sl-service__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.sl-service__code {
	font-size: 10px;
	text-transform: none;
}

.sl-service__code--signal {
	color: var(--sl-signal);
}

.sl-service__title {
	margin: 44px 0 10px;
	font-family: var(--sl-font-display);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.sl-service__desc {
	margin: 0;
	color: var(--sl-text-soft);
	max-width: 42ch;
}

.sl-service__cta {
	margin-top: auto;
	padding-top: 24px;
	color: var(--sl-link);
}

/*
 * The featured tile behaves differently per ground, because the mockups do.
 * On Ink it is a violet-tinted plate. On Bone it inverts to Ink outright — a
 * stronger move that has to carry its text with it, which is why this is a
 * scheme-scoped block rather than one shared rule.
 */
.sl-service--featured {
	background: color-mix(in srgb, var(--sl-primary) 12%, var(--sl-surface));
}

a.sl-service--featured:hover {
	background: color-mix(in srgb, var(--sl-primary) 20%, var(--sl-surface));
}

.sl-service--featured .sl-service__cta {
	color: var(--sl-signal);
}

.sl-scheme-light .sl-service--featured {
	background: var(--sl-text);
	color: var(--sl-bg);
}

.sl-scheme-light a.sl-service--featured:hover {
	background: color-mix(in srgb, var(--sl-text) 93%, var(--sl-bg));
}

.sl-scheme-light .sl-service--featured .sl-service__desc {
	color: rgba(var(--sl-bg-rgb), 0.72);
}

.sl-scheme-light .sl-service--featured .sl-icon {
	color: var(--sl-bg);
}

/*
 * Inside an inverted band every component already reads the flipped tokens, so
 * the featured tile must not invert a second time — it is on Ink either way.
 */
.sl-scheme-light .sl-invert .sl-service--featured {
	background: color-mix(in srgb, var(--sl-primary) 12%, var(--sl-surface));
	color: var(--sl-text);
}

/* ----------------------------------------------------------- Statistics */

.sl-stats {
	display: grid;
	grid-template-columns: repeat(var(--sl-stats-columns, 4), minmax(0, 1fr));
}

.sl-stats--ruled {
	border-block: var(--sl-border-w) solid var(--sl-hairline);
}

.sl-stat {
	padding: 26px 24px;
}

.sl-stats--ruled .sl-stat + .sl-stat {
	border-left: var(--sl-border-w) solid var(--sl-hairline);
}

.sl-stats--ruled .sl-stat:first-child {
	padding-left: 0;
}

.sl-stats--ruled .sl-stat:last-child {
	padding-right: 0;
}

.sl-stat__value {
	font-family: var(--sl-font-display);
	font-weight: 700;
	font-size: 36px;
	letter-spacing: -0.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.sl-stat__label {
	margin-top: 8px;
	font-size: 10px;
}

.sl-stat__desc {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--sl-text-soft);
}

/* -------------------------------------------------------------- Process */

.sl-process {
	position: relative;
}

.sl-process__thread {
	width: 100%;
	height: 84px;
	margin-bottom: 8px;
}

.sl-process__list {
	display: grid;
	grid-template-columns: repeat(var(--sl-process-steps, 7), minmax(0, 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

.sl-process__index {
	font-size: 10px;
}

.sl-process__title {
	margin: 14px 0 6px;
	font-family: var(--sl-font-display);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.02em;
}

.sl-process__desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--sl-text-soft);
}

.sl-process__step--terminal .sl-process__index {
	color: var(--sl-signal);
}

.sl-process--vertical .sl-process__list {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.sl-process--vertical .sl-process__step {
	position: relative;
	padding: 0 0 32px 32px;
	border-left: 2px solid var(--sl-hairline-strong);
}

.sl-process--vertical .sl-process__step:last-child {
	border-left-color: transparent;
	padding-bottom: 0;
}

.sl-process--vertical .sl-process__step::before {
	content: "";
	position: absolute;
	left: -6px;
	top: 4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sl-bg);
	border: 2px solid var(--sl-hairline-strong);
}

.sl-process--vertical .sl-process__step--terminal::before {
	background: var(--sl-signal);
	border-color: var(--sl-signal);
}

/* -------------------------------------------------------------- Marquee */

.sl-marquee {
	overflow: hidden;
	padding-block: 22px;
}

.sl-marquee--ruled {
	border-block: var(--sl-border-w) solid var(--sl-hairline);
}

.sl-marquee__track {
	display: flex;
	width: max-content;
	animation: sl-marquee 34s linear infinite;
}

.sl-marquee:hover .sl-marquee__track,
.sl-marquee:focus-within .sl-marquee__track {
	animation-play-state: paused;
}

.sl-marquee__group {
	display: flex;
	align-items: center;
	gap: 56px;
	padding-right: 56px;
	font-family: var(--sl-font-mono);
	font-size: 12px;
	letter-spacing: var(--sl-label-tracking);
	text-transform: uppercase;
	color: var(--sl-muted);
}

.sl-marquee__logo {
	height: 26px;
	width: auto;
	opacity: 0.65;
	filter: grayscale(1);
}

@keyframes sl-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sl-marquee__track {
		animation: none;
		flex-wrap: wrap;
	}

	.sl-marquee {
		overflow-x: auto;
	}
}

/* --------------------------------------------------------- System panel */

.sl-panel {
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	background: var(--sl-surface-2);
	padding: 28px;
}

.sl-panel__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.sl-panel__rows {
	display: grid;
	gap: var(--sl-border-w);
	background: var(--sl-hairline);
	border-radius: var(--sl-radius);
	overflow: hidden;
	margin-top: 22px;
}

.sl-panel__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 16px 18px;
	background: var(--sl-surface);
}

.sl-panel__name {
	font-family: var(--sl-font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--sl-text-soft);
}

.sl-panel__value {
	font-family: var(--sl-font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.sl-panel__note {
	margin: 20px 0 0;
	font-size: 16px;
	color: var(--sl-text-soft);
}

.sl-panel .sl-link-arrow {
	margin-top: 14px;
}

/* ------------------------------------------------------------------ FAQ */

.sl-faq {
	border-top: var(--sl-border-w) solid var(--sl-hairline-strong);
}

.sl-faq__item {
	border-bottom: var(--sl-border-w) solid var(--sl-hairline-strong);
}

.sl-faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 24px 0;
	cursor: pointer;
	font-family: var(--sl-font-ui);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
	list-style: none;
}

.sl-faq__question::-webkit-details-marker {
	display: none;
}

.sl-faq__sign {
	position: relative;
	flex: none;
	width: 14px;
	height: 14px;
}

.sl-faq__sign::before,
.sl-faq__sign::after {
	content: "";
	position: absolute;
	background: var(--sl-link);
	border-radius: 2px;
	transition: transform var(--sl-duration) var(--sl-ease);
}

.sl-faq__sign::before {
	inset: 6px 0 auto;
	height: 2px;
}

.sl-faq__sign::after {
	inset: 0 6px auto;
	width: 2px;
	height: 14px;
}

.sl-faq__item[open] .sl-faq__sign::after {
	transform: scaleY(0);
}

.sl-faq__answer {
	padding: 0 60px 26px 0;
	color: var(--sl-text-soft);
	max-width: 68ch;
}

/* ---------------------------------------------------------- First run */

.sl-firstrun {
	max-width: 60ch;
}

.sl-firstrun__title {
	font-size: var(--sl-h2);
	margin: 20px 0 18px;
}

.sl-firstrun__text {
	color: var(--sl-text-soft);
	margin-bottom: 32px;
}

.sl-firstrun__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sl-firstrun__stroke {
	width: 260px;
	margin-top: 64px;
	color: var(--sl-hairline-strong);
}

/* --------------------------------------------------- Scroll reveal, draw */

.sl-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity 520ms var(--sl-ease),
		transform 520ms var(--sl-ease);
}

.sl-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.sl-stroke--draw path {
	stroke-dasharray: var(--sl-stroke-length, 1200);
	stroke-dashoffset: var(--sl-stroke-length, 1200);
}

.sl-stroke--draw.is-visible path {
	animation: sl-draw 2.4s var(--sl-ease) forwards;
}

@keyframes sl-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sl-reveal {
		opacity: 1;
		transform: none;
	}

	.sl-stroke--draw path {
		stroke-dasharray: none;
		stroke-dashoffset: 0;
	}
}

/* -------------------------------------------------------- Breakpoints */

@media (max-width: 1100px) {
	.sl-process__thread {
		display: none;
	}

	.sl-process--horizontal .sl-process__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 32px 28px;
	}
}

@media (max-width: 1000px) {
	.sl-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.sl-hero__heading {
		max-width: 18ch;
	}
}

@media (max-width: 820px) {
	.sl-services {
		grid-template-columns: minmax(0, 1fr);
	}

	.sl-cta__inner {
		padding: 48px 28px;
	}

	.sl-cta__stroke {
		display: none;
	}

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

@media (max-width: 700px) {
	.sl-process--horizontal .sl-process__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sl-faq__answer {
		padding-right: 0;
	}
}

@media (max-width: 480px) {
	.sl-stats,
	.sl-process--horizontal .sl-process__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.sl-stats--ruled .sl-stat + .sl-stat {
		border-left: 0;
		border-top: var(--sl-border-w) solid var(--sl-hairline);
	}

	.sl-stats--ruled .sl-stat {
		padding-inline: 0;
	}
}

/* ------------------------------------------------------ Inverted bands */

/*
 * .sl-invert re-declares the palette tokens for its subtree; the values are
 * generated in inc/tokens.php so `:root` and the inverted block cannot drift.
 * Everything here is layout, not colour.
 */
.sl-invert {
	border-radius: var(--sl-radius);
}

.sl-invert ::selection {
	background: var(--sl-primary);
	color: #fff;
}

/* ------------------------------------------------------------------ Team */

/*
 * An editorial roster, not a row of avatar cards: a hairline over each person,
 * the name in the display face, the role as a specification line.
 */
.sl-team {
	display: grid;
	grid-template-columns: repeat(var(--sl-team-columns, 3), minmax(0, 1fr));
	gap: calc(var(--sl-gap) * 1.5) var(--sl-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.sl-team__member {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.sl-team__photo {
	overflow: hidden;
	border-radius: var(--sl-radius);
	background: var(--sl-surface);
}

.sl-team__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	transition:
		filter 400ms var(--sl-ease),
		transform 600ms var(--sl-ease);
}

.sl-team--portrait .sl-team__photo {
	aspect-ratio: 4 / 5;
}

.sl-team--square .sl-team__photo {
	aspect-ratio: 1 / 1;
}

.sl-team__member:hover .sl-team__photo img {
	filter: grayscale(0);
	transform: scale(1.02);
}

.sl-team__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 16px;
	border-top: 2px solid var(--sl-hairline-strong);
}

.sl-team--none .sl-team__body {
	padding-top: 20px;
}

.sl-team__name {
	margin: 0;
	font-family: var(--sl-font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.sl-team__link {
	color: var(--sl-text);
}

.sl-team__link:hover {
	color: var(--sl-link);
}

/* The whole member becomes the hit area, without nesting interactive elements. */
.sl-team__member {
	position: relative;
}

.sl-team__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.sl-team__bio {
	margin: 6px 0 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--sl-text-soft);
}

.sl-team__cta {
	margin-top: 10px;
	color: var(--sl-link);
}

@media (max-width: 900px) {
	.sl-team {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.sl-team {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------------- Projects */

/*
 * A lead project spanning the grid, then the rest in columns — the shape the
 * mockup uses for selected work. The lead is a two-up: media beside body.
 */
.sl-projects {
	display: grid;
	grid-template-columns: repeat(var(--sl-projects-columns, 2), minmax(0, 1fr));
	gap: var(--sl-gap);
}

.sl-project {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	color: var(--sl-text);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	overflow: hidden;
	background: var(--sl-surface);
	transition: border-color var(--sl-duration) var(--sl-ease);
}

.sl-project:hover,
.sl-project:focus-visible {
	border-color: var(--sl-hairline-strong);
	color: var(--sl-text);
}

.sl-project--lead {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: stretch;
}

.sl-project__media {
	position: relative;
	overflow: hidden;
	background: var(--sl-bg);
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sl-project--lead .sl-project__media {
	flex: 1 1 55%;
	aspect-ratio: auto;
	min-height: 380px;
}

.sl-project__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--sl-ease);
}

.sl-project:hover .sl-project__image {
	transform: scale(1.02);
}

/*
 * No featured image is a legitimate state, not an error — show the title on the
 * technical hatch rather than a broken-image box.
 */
.sl-project__placeholder {
	padding: 24px;
	text-align: center;
	color: var(--sl-muted);
	background-image: repeating-linear-gradient(
		135deg,
		var(--sl-wash) 0 1px,
		transparent 1px 11px
	);
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sl-project__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
}

.sl-project--lead .sl-project__body {
	flex: 1 1 45%;
	justify-content: center;
	padding: 44px 40px;
}

.sl-project__title {
	margin: 0;
	font-family: var(--sl-font-display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.sl-project--lead .sl-project__title {
	font-weight: 300;
	font-size: clamp(28px, 3vw, 38px);
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.sl-project__excerpt {
	margin: 0;
	font-size: 16px;
	color: var(--sl-text-soft);
	max-width: 46ch;
}

.sl-project__sector {
	color: var(--sl-signal);
}

/*
 * Reference code, metric and stack. All three are optional meta on the
 * project, so every rule here has to look deliberate when the field is empty —
 * hence the flex containers rather than a fixed grid.
 */

.sl-project__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.sl-project__ref {
	color: var(--sl-text-faint);
	flex: none;
}

.sl-project__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-top: auto;
	padding-top: 20px;
	border-top: var(--sl-border-w) solid var(--sl-hairline);
}

.sl-project__metric-value {
	font-family: var(--sl-font-display);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.sl-project__metric-label {
	display: block;
	margin-top: 4px;
	color: var(--sl-muted);
}

/* The lead card carries up to three metrics as hairline-joined tiles. */
.sl-project__metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: var(--sl-border-w);
	background: var(--sl-hairline);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	overflow: hidden;
	flex: 1 1 auto;
}

.sl-project__metrics .sl-project__metric-item {
	background: var(--sl-bg);
	padding: 18px;
}

.sl-project--lead .sl-project__footer {
	display: block;
}

.sl-project--lead .sl-project__stack {
	margin-top: 18px;
	justify-content: flex-start;
}

.sl-project__stack {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	flex: 0 1 auto;
}

.sl-project__tag {
	border: var(--sl-border-w) solid var(--sl-hairline-strong);
	border-radius: var(--sl-radius);
	padding: 5px 8px;
	font-family: var(--sl-font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sl-muted);
}

.sl-project__cta {
	margin-top: 8px;
	color: var(--sl-link);
}

/* The card is one link, so the whole tile is the hit area already. */
.sl-project::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* An editor-only note where a query returns nothing. */
.sl-widget-placeholder {
	padding: 28px;
	border: var(--sl-border-w) dashed var(--sl-hairline-strong);
	border-radius: var(--sl-radius);
	color: var(--sl-muted);
	font-family: var(--sl-font-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-align: center;
}

@media (max-width: 860px) {
	.sl-project--lead {
		flex-direction: column;
	}

	.sl-project--lead .sl-project__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.sl-project--lead .sl-project__body {
		padding: 28px;
	}
}

@media (max-width: 640px) {
	.sl-projects {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Metric and tags stop competing for one row once the card is narrow. */
	.sl-project__footer {
		display: block;
	}

	.sl-project__stack {
		margin-top: 16px;
		justify-content: flex-start;
	}
}

/* ------------------------------------------------- Projects archive */

/* Denser than a curated section: three up, and no lead treatment. */
.sl-projects--archive {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: calc(var(--sl-gap) * 1.5);
}

.sl-projects--archive .sl-project__title {
    font-size: 20px;
}

@media (max-width: 1024px) {
	.sl-projects--archive {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.sl-projects--archive {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------- Single project */

/*
 * The case study layout. Reuses the panel, the metric tiles and the stack
 * chips from the project card, so a project looks like itself wherever it
 * appears. Only the page-level composition is new.
 */

.sl-case__header {
	padding-block: calc(var(--sl-section) * 0.7) 0;
}

.sl-case__intro--split {
	display: grid;
	grid-template-columns: 1.55fr 0.95fr;
	gap: 56px;
	align-items: end;
}

.sl-label.sl-case__eyebrow {
	display: block;
	margin-bottom: 16px;
	/* The sector, year and reference: the one Signal Lime moment on the page. */
	color: var(--sl-signal);
}

.sl-case__title {
	margin: 0;
	font-size: var(--sl-h1);
	/* Wider than the blog measure: a project title carries the client name too. */
	max-width: 22ch;
}

.sl-case__lead {
	margin: 24px 0 0;
	max-width: 58ch;
	font-size: 21px;
	line-height: 1.45;
	color: var(--sl-text-soft);
}

.sl-case__media {
	position: relative;
	display: grid;
	place-items: center;
	margin: 48px 0 0;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	background: var(--sl-bg);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
}

/* When results sit directly beneath, the two read as one object. */
.sl-case__media--joined {
	border-bottom: 0;
	border-radius: var(--sl-radius) var(--sl-radius) 0 0;
}

.sl-case__image {
	width: 100%;
	border-radius: var(--sl-radius);
}


/* The tile row is the card component, widened for the page. */






.sl-case__body {
	padding-block: var(--sl-section);
}

.sl-case__more {
	border-top: var(--sl-border-w) solid var(--sl-hairline);
}

@media (max-width: 1000px) {
	.sl-case__intro--split {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}
}

/*
 * Sector filter. Real links to term archives — every filter state is a URL that
 * can be shared and indexed, which an AJAX filter throws away.
 */
.sl-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 4px;
}

.sl-filter__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	font-family: var(--sl-font-mono);
	font-size: 11px;
	letter-spacing: var(--sl-label-tracking);
	text-transform: uppercase;
	color: var(--sl-muted);
	transition:
		border-color var(--sl-duration) var(--sl-ease),
		color var(--sl-duration) var(--sl-ease);
}

.sl-filter__item:hover {
	border-color: var(--sl-hairline-strong);
	color: var(--sl-text);
}

.sl-filter__item.is-current {
	border-color: var(--sl-primary);
	color: var(--sl-text);
}

.sl-filter__count {
	font-size: 10px;
	color: var(--sl-text-faint);
}

.sl-filter__item.is-current .sl-filter__count {
	color: var(--sl-primary);
}

/* ------------------------------------------- Case study narrative */

/*
 * The pieces the editor writes inside a case study. These are styled from the
 * markup core blocks already produce, so an author uses the ordinary Quote and
 * Group blocks and gets the brand's treatment — no bespoke block types, and
 * nothing breaks if the theme is switched away.
 */

.sl-case__content > blockquote,
.sl-entry-content > blockquote {
	margin: 32px 0;
	padding: 26px 28px;
	border: 0;
	border-left: 3px solid var(--sl-primary);
	border-radius: 0 var(--sl-radius) var(--sl-radius) 0;
	background: var(--sl-surface);
	font-family: var(--sl-font-display);
	font-weight: 300;
	font-size: 24px;
	line-height: 1.28;
	letter-spacing: -0.025em;
}

.sl-case__content > blockquote p,
.sl-entry-content > blockquote p {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
}

/* A named attribution reads as a specification line, not as prose. */
.sl-case__content > blockquote cite,
.sl-case__content > blockquote footer,
.sl-entry-content > blockquote cite,
.sl-entry-content > blockquote footer {
	display: block;
	margin-top: 18px;
	font-family: var(--sl-font-mono);
	font-size: 10px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: var(--sl-label-tracking);
	text-transform: uppercase;
	color: var(--sl-muted);
}

/*
 * The phase list: a hairline-joined column of stages. Built from ordinary Group
 * blocks so the pattern is editable in place.
 */
.sl-phases {
	display: grid;
	gap: var(--sl-border-w);
	margin: 28px 0;
	background: var(--sl-hairline);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	overflow: hidden;
}

.sl-phase {
	background: var(--sl-surface);
	padding: 22px 24px;
}

.sl-phase__when {
	margin: 0;
	font-family: var(--sl-font-mono);
	font-size: 10px;
	letter-spacing: var(--sl-label-tracking);
	text-transform: uppercase;
	color: var(--sl-muted);
}

.sl-phase__title {
	margin: 8px 0 6px;
	font-family: var(--sl-font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.sl-phase__desc {
	margin: 0;
	font-size: 16px;
	color: var(--sl-text-soft);
}

/* The closing phase is the handover — the one that earns the accent. */
.sl-phase--terminal {
	background: color-mix(in srgb, var(--sl-primary) 12%, var(--sl-surface));
}

.sl-scheme-light .sl-phase--terminal {
	background: color-mix(in srgb, var(--sl-primary) 8%, var(--sl-surface));
}

.sl-phase--terminal .sl-phase__when {
	color: var(--sl-signal);
}

.sl-scheme-light .sl-phase--terminal .sl-phase__when {
	color: var(--sl-primary);
}

/* A client quote, boxed rather than ruled — the closing note of the narrative. */
.sl-quote-card {
	margin: 32px 0 0;
	padding: 32px;
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	background: var(--sl-surface);
}

.sl-quote-card blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--sl-font-display);
	font-weight: 300;
	font-size: 26px;
	line-height: 1.25;
	letter-spacing: -0.03em;
}

.sl-quote-card blockquote p {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
}

.sl-quote-card figcaption,
.sl-quote-card cite {
	display: block;
	margin-top: 26px;
	font-family: var(--sl-font-ui);
	font-style: normal;
	font-size: 16px;
	font-weight: 500;
	color: var(--sl-text);
}

.sl-quote-card figcaption em,
.sl-quote-card cite em {
	display: block;
	margin-top: 2px;
	font-family: var(--sl-font-mono);
	font-style: normal;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: var(--sl-label-tracking);
	text-transform: uppercase;
	color: var(--sl-muted);
}

/* ------------------------------------------ Case study — media frame */

.sl-case__hatch {
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		135deg,
		var(--sl-wash) 0 1px,
		transparent 1px 11px
	);
}

/*
 * The stroke is a placeholder mark, not the subject. Without a width it takes
 * the SVG's intrinsic ratio and grows to fill the frame.
 */
.sl-case__stroke {
	position: relative;
	width: 42%;
	max-width: 340px;
	height: auto;
	color: var(--sl-hairline-strong);
}

.sl-case__media-note {
	position: absolute;
	left: 22px;
	bottom: 18px;
	color: var(--sl-muted);
}

.sl-case__media .sl-case__image {
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

/* ---------------------------------------------- Case study — results */

.sl-case__results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--sl-border-w);
	background: var(--sl-hairline);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-top: 0;
	border-radius: 0 0 var(--sl-radius) var(--sl-radius);
	overflow: hidden;
}

.sl-case__result {
	background: var(--sl-surface);
	padding: 26px 24px;
}

.sl-case__result-value {
	font-family: var(--sl-font-display);
	font-weight: 700;
	font-size: 34px;
	letter-spacing: -0.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.sl-case__result-label {
	display: block;
	margin-top: 8px;
}

/* ------------------------------------------------- Case study — body */

.sl-case__grid--railed {
	display: grid;
	grid-template-columns: 0.34fr 0.66fr;
	gap: 72px;
	align-items: start;
}

.sl-case__content {
	max-width: 720px;
}

.sl-case__rail {
	position: sticky;
	top: calc(var(--sl-header-height, 76px) + 34px);
}

.sl-case__rail-title {
	display: block;
	padding-bottom: 12px;
	border-bottom: var(--sl-border-w) solid var(--sl-hairline-strong);
}

.sl-case__toc {
	display: flex;
	flex-direction: column;
}

.sl-case__toc-link {
	display: flex;
	gap: 10px;
	padding: 11px 0;
	border-bottom: var(--sl-border-w) solid var(--sl-wash);
	color: var(--sl-text);
	font-size: 16px;
	line-height: 1.35;
}

.sl-case__toc-link:hover,
.sl-case__toc-link:focus-visible {
	color: var(--sl-link);
}

.sl-case__toc-index {
	flex: none;
	font-family: var(--sl-font-mono);
	font-size: 11px;
	letter-spacing: var(--sl-label-tracking);
	color: var(--sl-muted);
	padding-top: 3px;
}

.sl-case__stack {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 32px;
}

.sl-case__chip {
	padding: 7px 9px;
	text-align: center;
	border: var(--sl-border-w) solid var(--sl-hairline-strong);
	border-radius: var(--sl-radius);
	font-family: var(--sl-font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sl-muted);
}

@media (max-width: 1080px) {
	.sl-case__grid--railed {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.sl-case__rail {
		position: static;
	}

	.sl-case__stack {
		grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	}
}

@media (max-width: 1000px) {
	.sl-case__intro--split {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.sl-case__media {
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 640px) {
	.sl-case__results {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------ Numbered grid */

/*
 * Not cards. One border around the block and a single pixel of rule between
 * tiles, so six commitments read as one specification rather than six things.
 */
.sl-grid-items {
	display: grid;
	grid-template-columns: repeat(var(--sl-grid-columns, 2), minmax(0, 1fr));
	gap: var(--sl-border-w);
	background: var(--sl-hairline);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	overflow: hidden;
}

.sl-grid-item {
	background: var(--sl-surface);
	padding: 30px 26px 34px;
}

.sl-grid-item__index {
	display: block;
	font-size: 10px;
}

.sl-grid-item__title {
	margin: 16px 0 8px;
	font-family: var(--sl-font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.sl-grid-item__desc {
	margin: 0;
	font-size: 16px;
	color: var(--sl-text-soft);
}

@media (max-width: 700px) {
	.sl-grid-items {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------- Testimonials */

.sl-quotes {
	display: grid;
	grid-template-columns: repeat(var(--sl-quotes-columns, 2), minmax(0, 1fr));
	gap: var(--sl-border-w);
	background: var(--sl-hairline);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	overflow: hidden;
}

.sl-quote {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 40px 36px;
	background: var(--sl-surface);
}

.sl-quote__text {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--sl-font-display);
	font-weight: 300;
	font-size: 26px;
	line-height: 1.25;
	letter-spacing: -0.03em;
}

.sl-quote__by {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 28px;
}

.sl-quote__photo {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: var(--sl-radius);
	background: var(--sl-surface-2);
	border: var(--sl-border-w) solid var(--sl-hairline);
}

.sl-quote__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sl-quote__mark {
	color: var(--sl-muted);
}

.sl-quote__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sl-quote__name {
	font-weight: 500;
	font-size: 16px;
}

.sl-quote__role {
	display: block;
	font-size: 10px;
}

@media (max-width: 820px) {
	.sl-quotes {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ----------------------------------------------------------- Spec list */

/*
 * A flat specification: the discipline on the left, what it is built with on
 * the right, separated by rules. No border, no background — the panel widget
 * is the one with chrome.
 */
.sl-specs {
	margin: 0;
}

.sl-specs--ruled {
	border-top: var(--sl-border-w) solid var(--sl-hairline);
}

.sl-specs__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 20px;
	padding: 18px 0;
	border-bottom: var(--sl-border-w) solid var(--sl-hairline);
}

.sl-specs__label {
	margin: 0;
	font-weight: 500;
}

.sl-specs__value {
	margin: 0;
	text-align: right;
	font-family: var(--sl-font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sl-muted);
}

@media (max-width: 480px) {
	.sl-specs__row {
		flex-direction: column;
		gap: 6px;
	}

	.sl-specs__value {
		text-align: left;
	}
}

/* Grid tiles can carry a mono footer line and an accent state. */
.sl-grid-item__meta {
	display: block;
	margin-top: 14px;
	font-size: 10px;
}

.sl-grid-item--featured {
	background: color-mix(in srgb, var(--sl-primary) 12%, var(--sl-surface));
}

.sl-scheme-light .sl-grid-item--featured {
	background: color-mix(in srgb, var(--sl-primary) 8%, var(--sl-surface));
}

.sl-grid-item--featured .sl-grid-item__index {
	color: var(--sl-signal);
}

.sl-scheme-light .sl-grid-item--featured .sl-grid-item__index {
	color: var(--sl-primary);
}

/* ------------------------------------------- Services — detail layout */

/*
 * The services page card, as against the homepage tile. Separate cards with
 * their own border rather than a hairline-joined block, because each one is a
 * destination with a price rather than one cell of a specification.
 */
.sl-services--detail {
	display: grid;
	grid-template-columns: repeat(var(--sl-services-columns, 3), minmax(0, 1fr));
	gap: var(--sl-gap);
	background: none;
	border: 0;
	border-radius: 0;
	overflow: visible;
}

.sl-services--detail .sl-service {
	min-height: 0;
	padding: 30px;
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	background: var(--sl-surface);
	transition:
		border-color var(--sl-duration) var(--sl-ease),
		background-color var(--sl-duration) var(--sl-ease),
		transform var(--sl-duration) var(--sl-ease);
}

a.sl-services--detail .sl-service:hover,
.sl-services--detail a.sl-service:hover,
.sl-services--detail a.sl-service:focus-visible {
	border-color: var(--sl-hairline-strong);
	background: var(--sl-surface-2);
	transform: translateY(-4px);
}

.sl-services--detail .sl-service__top {
	align-items: baseline;
}

.sl-service__ref {
	color: var(--sl-signal);
}

.sl-service__timeline {
	color: var(--sl-muted);
}

.sl-services--detail .sl-service__title {
	margin: 20px 0 12px;
	font-size: 26px;
}

.sl-services--detail .sl-service__desc {
	margin: 0 0 22px;
	font-size: 16px;
	max-width: none;
}

.sl-service__list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sl-service__list-item {
	display: flex;
	gap: 10px;
	align-items: baseline;
	padding-bottom: 8px;
	border-bottom: var(--sl-border-w) solid var(--sl-wash);
	font-size: 16px;
	color: var(--sl-text);
}

.sl-service__dash {
	flex: none;
	color: var(--sl-primary);
}

.sl-service__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: auto;
	padding-top: 18px;
	border-top: var(--sl-border-w) solid var(--sl-hairline);
}

.sl-service__price {
	color: var(--sl-muted);
}

.sl-service__more {
	white-space: nowrap;
	font-size: 15px;
	font-weight: 500;
	color: var(--sl-signal);
}

.sl-service__more::after {
	content: " \2192";
}

/* A ruled label row: a section marker with a count or note opposite it. */
.sl-rule-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	padding-bottom: 12px;
	border-bottom: var(--sl-border-w) solid var(--sl-hairline);
}

@media (max-width: 1180px) {
	.sl-services--detail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.sl-services--detail {
		grid-template-columns: minmax(0, 1fr);
	}
}
