/* Home page. Loaded on the front page only.
   Built from the client's mockup (mockups/Main.dc.html). Pixel sizes there are rem here (1px = 0.0625rem),
   so everything scales with the fluid root size in type.css on large screens.
   Contents: shared bits, hero (mockup + split alternative), selector, modules, why, work,
   client marquee (kept from the creative rounds), testimonials, newsletter. */

/* ---------- Shared ---------- */
.over {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
}

.section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
}

.section-head__title {
	font-size: 2.25rem;
}

.section-head__title--narrow {
	max-inline-size: 35rem;
}

.modules__inner,
.work__inner,
.testi__inner {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

/* Text link with an arrow ("Learn more", "Read the case study", "View all projects") */
.more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-block-size: 2.75rem;
	margin-block-start: auto;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}

a.more:hover {
	color: var(--accent-deep);
}

.more .icon {
	flex: none;
	inline-size: 1rem;
	block-size: 1rem;
}

@media (max-width: 959px) {
	.section-head__title {
		font-size: 1.875rem;
	}
}

/* ---------- 1. Hero ---------- */
.hero {
	position: relative;
	isolation: isolate;
	background: var(--ink);
	color: var(--on-dark);
	overflow: hidden;
}

.hero .accent {
	color: var(--accent-tint);
}

.hero__title {
	font-size: 3.5rem;
	line-height: 1.08;
	color: var(--white);
}

.hero__lede {
	max-inline-size: 35rem;
	font-size: 1.1875rem;
	color: var(--on-dark);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.875rem;
}

.hero__actions .btn--ghost-light {
	padding-inline: 1.5rem;
}

.hero__actions .btn__icon {
	inline-size: 1.25rem;
	block-size: 1.25rem;
}

.hero__trust {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	padding-block-start: 0.625rem;
}

.hero__trust-line {
	font-size: 0.90625rem;
	color: var(--on-dark);
}

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.875rem;
}

.hero__stat {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--white);
}

.hero__stat:not(:last-child)::after {
	content: "";
	inline-size: 1px;
	block-size: 1.25rem;
	margin-inline-start: 0.375rem;
	background: rgba(255, 255, 255, 0.3);
}

.hero__stat-value {
	font-size: 1.25rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.hero__stat-label {
	color: var(--white);
}

/* Free-consultation card */
.consult-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 2.75rem 1.5rem 1.5rem;
	text-align: center;
	color: var(--ink);
	background: var(--white);
	border-radius: var(--r-panel);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.consult-card :focus-visible {
	outline-color: var(--accent);
}

.consult-card__badge {
	position: absolute;
	inset-block-start: -1.75rem;
	inset-inline-start: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 3.5rem;
	block-size: 3.5rem;
	margin-inline-start: -1.75rem;
	color: var(--white);
	background: var(--accent);
	border: 4px solid var(--white);
	border-radius: 50%;
}

.consult-card__badge .icon {
	inline-size: 1.5rem;
	block-size: 1.5rem;
}

.consult-card__title {
	font-size: 1.125rem;
	color: var(--ink);
}

.consult-card__time {
	padding-block: 0.375rem;
	font-size: 2.75rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--accent);
}

.consult-card__note {
	font-size: 0.9375rem;
	color: var(--muted);
}

.consult-card .consult-card__btn {
	align-self: stretch;
	margin-block-start: 0.625rem;
}

/* Mockup hero (default): photo behind the text, ink gradient left to right */
.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}

.hero__media .hero__img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(22, 18, 28, 0.96) 0%, rgba(22, 18, 28, 0.86) 40%, rgba(22, 18, 28, 0.45) 75%, rgba(22, 18, 28, 0.6) 100%);
}

.hero--classic .hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 18.75rem;
	gap: 3rem;
	align-items: center;
	padding-block: 5.5rem 8.5rem;
}

.hero--classic .hero__copy {
	display: flex;
	flex-direction: column;
	gap: 1.625rem;
	max-inline-size: 42.5rem;
}

.hero--classic .hero__actions .btn--lg {
	min-block-size: 3.375rem;
	font-size: 1rem;
}

@media (max-width: 959px) {
	.hero--classic .hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__title {
		font-size: 2.5rem;
	}

	.hero--classic .consult-card {
		max-inline-size: 26rem;
	}
}

@media (max-width: 639px) {
	.hero__title {
		font-size: 2.125rem;
	}

	.hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero--classic .consult-card {
		max-inline-size: none;
	}
}

/* ---------- 1b. Split hero (alternative): message left on ink, photo right on a plum slab ---------- */
.hero--split {
	display: flex;
	align-items: center;
	min-block-size: clamp(560px, calc(100dvh - 11rem), 900px);
	padding-block: 3.5rem 9.75rem;
}

.hero--split .hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 3.5rem;
}

.hero--split .hero__copy {
	display: grid;
	gap: 1.375rem;
	justify-items: start;
}

.hero--split .hero__title {
	max-inline-size: 11.5em;
	font-size: clamp(2.6rem, 5.5vw, 5.25rem);
	line-height: 1;
	letter-spacing: -0.035em;
}

.hero--split .hero__lede {
	max-inline-size: 50ch;
}

.hero--split .hero__trust {
	inline-size: 100%;
	max-inline-size: 35rem;
	gap: 1rem;
	margin-block-start: 0.875rem;
	padding-block-start: 1.375rem;
	border-block-start: 1px solid var(--line-on-dark);
}

.hero--split .hero__trust-line {
	color: var(--on-dark-muted);
}

.hero--split .hero__stats {
	gap: 0.75rem 0;
}

.hero--split .hero__stat {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.375rem;
	padding-inline-end: clamp(20px, 2.6vw, 40px);
	margin-inline-end: clamp(20px, 2.6vw, 40px);
	border-inline-end: 1px solid var(--line-on-dark);
}

.hero--split .hero__stat::after {
	display: none;
}

.hero--split .hero__stat:last-child {
	padding-inline-end: 0;
	margin-inline-end: 0;
	border-inline-end: 0;
}

.hero--split .hero__stat-value {
	font-size: clamp(2.25rem, 3.6vw, 3.25rem);
	letter-spacing: -0.035em;
	line-height: 1;
	color: var(--on-dark);
}

.hero--split .hero__stat:nth-child(2) .hero__stat-value {
	color: var(--accent-tint);
}

.hero--split .hero__stat-label {
	font-size: 0.9375rem;
	color: var(--on-dark-muted);
}

.hero__visual {
	position: relative;
	inline-size: 100%;
	max-inline-size: 40rem;
	margin-inline: auto;
	padding-block-end: 4.5rem;
}

.hero__slab {
	position: absolute;
	inset-block: 12% 0;
	inset-inline: 26% -50vw;
	background: var(--accent);
	border-start-start-radius: 28px;
	border-end-start-radius: 28px;
}

.hero__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 5 / 4;
	border-radius: 28px;
	background: var(--accent-deep);
	box-shadow: 0 40px 80px rgba(22, 18, 28, 0.45);
}

.hero__frame .hero__img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: 42% 40%;
}

.hero--split .consult-card {
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 16px;
	inline-size: min(19rem, calc(100% - 32px));
	padding: 2.75rem 1.375rem 1.375rem;
	box-shadow: 0 30px 70px rgba(22, 18, 28, 0.38);
}

@media (min-width: 640px) and (max-width: 1023px) {
	.hero--split .hero__title {
		font-size: clamp(2.6rem, 7.2vw, 4.25rem);
	}

	.hero__visual {
		max-inline-size: none;
	}

	.hero__frame {
		aspect-ratio: 16 / 9;
	}

	.hero--split .consult-card {
		inset-inline-start: 24px;
	}
}

@media (min-width: 1024px) {
	.hero--split .hero__inner {
		grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
		gap: clamp(40px, 5vw, 96px);
	}

	.hero__visual {
		max-inline-size: none;
		padding-block-end: 3.5rem;
	}

	.hero__frame {
		aspect-ratio: auto;
		block-size: clamp(380px, 56dvh, 34rem);
	}

	.hero--split .consult-card {
		inset-inline-start: -64px;
	}
}

@media (min-width: 1024px) and (max-height: 820px) {
	.hero--split {
		min-block-size: 0;
		padding-block: 2rem 7.5rem;
	}

	.hero--split .hero__title {
		font-size: clamp(2.6rem, 4.6vw, 4.25rem);
	}

	.hero--split .hero__copy {
		gap: 1rem;
	}

	.hero__frame {
		block-size: clamp(320px, 52dvh, 34rem);
	}
}

@media (max-width: 639px) {
	.hero--split {
		padding-block-end: 7.5rem;
	}

	.hero--split .hero__stats {
		display: grid;
		grid-template-columns: 1.45fr 0.9fr 1.1fr;
		gap: 0.625rem;
	}

	.hero--split .hero__stat {
		padding-inline-end: 0;
		margin-inline-end: 0;
		border-inline-end: 0;
	}

	.hero--split .hero__stat-label {
		font-size: 0.8125rem;
		overflow-wrap: anywhere;
	}

	.hero__visual {
		padding-block-end: 9.5rem;
	}

	.hero--split .consult-card {
		inset-inline: 16px;
		inline-size: auto;
	}
}

@media (max-width: 380px) {
	.hero--split .hero__title {
		font-size: 2.35rem;
	}

	.hero--split .hero__stat-value {
		font-size: 1.85rem;
	}
}

/* ---------- 2. Selector: white panel overlapping the hero by 64px ---------- */
.selector-wrap {
	position: relative;
	z-index: 2;
	margin-block-start: -4rem;
}

.selector {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1.25rem;
	padding: 1.75rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-raised);
}

.selector .field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1 1 12.5rem;
	min-inline-size: 0;
}

.selector .field__label {
	margin: 0;
	font-size: 0.875rem;
	color: var(--ink);
}

.selector .field__control {
	min-block-size: 3.25rem;
	padding-inline: 0.875rem 2.75rem;
	font-size: 0.9375rem;
	background-color: var(--white);
}

.selector__submit {
	flex: 0 0 auto;
	min-block-size: 3.25rem;
	padding-inline: 1.625rem;
}

@media (max-width: 639px) {
	.selector {
		padding: 1.25rem;
	}

	.selector__submit {
		flex: 1 1 100%;
	}
}

/* ---------- 3. Modules ---------- */
.modules {
	padding-block: var(--space-section);
}

.mods {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1rem;
}

.mod {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 1.625rem 1.125rem;
	text-align: center;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
}

.mod__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 3.5rem;
	block-size: 3.5rem;
	border-radius: var(--r-card);
	background: var(--tone-bg);
	color: var(--tone-fg);
}

.mod__icon .icon {
	inline-size: 1.625rem;
	block-size: 1.625rem;
}

.mod__title {
	font-size: 1rem;
	letter-spacing: -0.01em;
}

.mod__text {
	font-size: 0.84375rem;
	color: var(--muted);
}

.mod--c1 { --tone-bg: #E6F0FB; --tone-fg: #1D5FA8; }
.mod--c2 { --tone-bg: #E5F5EC; --tone-fg: #1F7A4D; }
.mod--c3 { --tone-bg: #FFF1E0; --tone-fg: #9A5B00; }
.mod--c4 { --tone-bg: #F1E9FB; --tone-fg: #6A3BB0; }
.mod--c5 { --tone-bg: #FDE8EC; --tone-fg: #B3263F; }
.mod--c6 { --tone-bg: #E2F4F3; --tone-fg: #0F6F6A; }

@media (max-width: 1100px) {
	.mods {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

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

/* ---------- 4. Why Magnolia ---------- */
.why {
	padding-block: 2rem;
	background: var(--surface);
}

.why__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	align-items: stretch;
}

.why__panel {
	position: relative;
	display: flex;
	align-items: center;
	min-block-size: 26.25rem;
	overflow: hidden;
	background: var(--ink);
	border-radius: var(--r-panel);
}

.why__panel .why__img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: 70% center;
}

.why__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(22, 18, 28, 0.95) 0%, rgba(22, 18, 28, 0.8) 50%, rgba(22, 18, 28, 0.2) 100%);
}

.why__panel :focus-visible {
	outline-color: var(--accent-tint);
}

.why__copy {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
	max-inline-size: 23.75rem;
	padding: 2.5rem;
}

.why__copy .over {
	color: var(--accent-tint);
}

.why__title {
	font-size: 2rem;
	color: var(--white);
}

.why__lede {
	font-size: 0.96875rem;
	color: var(--on-dark);
}

.why__copy .why__btn {
	align-self: flex-start;
}

.whys {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.reason {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	padding: 1.625rem;
	background: var(--white);
	border-radius: var(--r-card);
}

.reason__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 3rem;
	block-size: 3rem;
	border-radius: 0.75rem;
	background: var(--accent-wash);
	color: var(--accent);
}

.reason__icon .icon {
	inline-size: 1.5rem;
	block-size: 1.5rem;
}

.reason__title {
	font-size: 1.125rem;
}

.reason__text {
	font-size: 0.90625rem;
	color: var(--muted);
}

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

@media (max-width: 380px) {
	.reason {
		padding: 1.125rem;
	}
}

/* ---------- 5. Work ---------- */
.work {
	padding-block: var(--space-section);
}

.works {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.works__item {
	display: flex;
}

.wcard {
	display: flex;
	flex-direction: column;
	inline-size: 100%;
	overflow: hidden;
	color: var(--ink);
	text-decoration: none;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
}

.wcard:hover {
	color: var(--ink);
	border-color: #CFC6D2;
}

.wcard:hover .more {
	color: var(--accent-deep);
}

.wcard__photo {
	display: block;
	inline-size: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.wcard__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.625rem;
	padding: 1.5rem;
}

.wcard__logo {
	inline-size: auto;
	block-size: 2.125rem;
	max-inline-size: 8.75rem;
	object-fit: contain;
	align-self: flex-start;
}

.wcard__title {
	font-size: 1.1875rem;
}

.wcard__line {
	font-size: 0.90625rem;
	color: var(--muted);
}

.work__all {
	display: flex;
	justify-content: center;
	padding-block-start: 0.5rem;
}

.work__all .more {
	margin: 0;
}

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

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

/* ---------- 6. Client logo marquee (kept as built in the creative rounds) ---------- */
.logos {
	background: var(--surface);
}

.logos.section {
	padding-block: clamp(72px, 10vw, 9.5rem);
}

.logos__title {
	max-inline-size: 14ch;
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
}

.logos__lede {
	max-inline-size: 44ch;
	color: var(--muted);
}

.logos__industries {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.logos__industry {
	padding: 7px 14px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 999px;
}

.logos__link {
	margin-block-start: 6px;
}

.logos__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px clamp(40px, 6vw, 96px);
	align-items: end;
}

.logos__side {
	display: grid;
	gap: 18px;
	justify-items: start;
}

.lmq {
	position: relative;
	margin-block-start: clamp(40px, 5vw, 72px);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.lmq:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: -3px;
}

.lmq__track {
	display: flex;
	inline-size: max-content;
	animation: mag-lmq 40s linear infinite;
}

.lmq:hover .lmq__track,
.lmq:focus-within .lmq__track {
	animation-play-state: paused;
}

.lmq__group {
	display: flex;
	flex: none;
	gap: clamp(12px, 1.4vw, 20px);
	margin: 0;
	padding: 6px clamp(6px, 0.7vw, 10px);
	list-style: none;
}

.lmq__tile {
	display: grid;
	place-items: center;
	inline-size: clamp(180px, 15vw, 22rem);
	aspect-ratio: 3 / 2;
	padding: clamp(14px, 1.6vw, 24px);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 20px;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.lmq__tile img {
	inline-size: 100%;
	block-size: 100%;
	max-block-size: 6rem;
	object-fit: contain;
}

.lmq__tile:hover {
	border-color: rgba(122, 42, 99, 0.35);
	box-shadow: 0 18px 40px rgba(22, 18, 28, 0.1);
	transform: translateY(-4px);
}

@keyframes mag-lmq {
	to {
		transform: translateX(-50%);
	}
}

@media (min-width: 1024px) {
	.logos__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

@media (min-width: 1920px) {
	.logos__title {
		max-inline-size: 18ch;
	}
}

/* Reduced motion: no loop; the logos wrap as a static row. */
@media (prefers-reduced-motion: reduce) {
	.lmq {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.lmq__track {
		inline-size: auto;
		animation: none;
		justify-content: center;
	}

	.lmq__group {
		flex: 1 1 auto;
		flex-wrap: wrap;
		justify-content: center;
	}

	.lmq__group--clone {
		display: none;
	}

	.lmq__tile {
		transition: none;
	}
}

/* ---------- 7. Testimonials (sample layout, awaiting client quotes) ---------- */
.testi {
	padding-block: var(--space-section);
	background: var(--surface);
}

/* Two tinted bands meet here (marquee, then feedback): a hairline and less air between them. */
.logos + .testi {
	padding-block-start: 3.5rem;
	border-block-start: 1px solid var(--line);
}

.quotes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.quote {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
	margin: 0;
	padding: 1.75rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
}

.quote__badge {
	position: absolute;
	inset-block-start: 1.125rem;
	inset-inline-end: 1.125rem;
	padding: 0.25rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #9A5B00;
	background: #FFF1E0;
	border-radius: 999px;
}

.quote__mark {
	inline-size: 2.125rem;
	block-size: 2.125rem;
	color: var(--accent);
}

.quote__text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}

.quote__who {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin-block-start: auto;
}

.quote__avatar {
	flex: none;
	inline-size: 3rem;
	block-size: 3rem;
	border-radius: 50%;
	background: var(--accent-wash);
}

.quote__meta {
	display: flex;
	flex-direction: column;
}

.quote__name {
	font-size: 0.9375rem;
}

.quote__role {
	font-size: 0.875rem;
	color: var(--muted);
}

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

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

/* ---------- 8. Newsletter band ---------- */
.newsletter {
	padding-block: 3.25rem;
	color: var(--white);
	background: var(--accent);
}

.newsletter__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3rem;
	align-items: center;
}

.newsletter__copy {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.newsletter__badge {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 4.5rem;
	block-size: 4.5rem;
	color: var(--accent);
	background: var(--white);
	border-radius: 50%;
}

.newsletter__badge .icon {
	inline-size: 1.875rem;
	block-size: 1.875rem;
}

.newsletter__text {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.newsletter h2 {
	font-size: 1.5rem;
	color: var(--white);
}

.newsletter__text p {
	font-size: 0.9375rem;
	color: #F3E3EE;
}

.newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.newsletter__label {
	font-size: 0.875rem;
	font-weight: 600;
}

.newsletter__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.newsletter__input {
	flex: 1 1 15rem;
	min-inline-size: 0;
	min-block-size: 3.25rem;
	padding-inline: 1rem;
	color: var(--ink);
	background: var(--white);
	border: 0;
	border-radius: var(--r-btn);
}

.newsletter .newsletter__btn {
	min-block-size: 3.25rem;
	padding-inline: 1.75rem;
}

.newsletter :focus-visible {
	outline-color: var(--white);
}

.newsletter__note {
	font-size: 0.8125rem;
	color: #F3E3EE;
}

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

/* ---------- Hero eyebrow + supporting lede (SEO keyword line lives inside the H1) ---------- */
.hero__eyebrow {
	display: block;
	margin-block-end: 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-tint);
}

.hero__trust-line {
	font-style: italic;
}

@media (max-width: 639px) {
	.hero__eyebrow {
		font-size: 0.75rem;
		letter-spacing: 0.08em;
	}
}
.section-head__lede {
	max-inline-size: 42rem;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--muted);
}

/* Accent phrase starts its own line where it fits on one line (wide screens); smaller screens wrap naturally */
@media (min-width: 1200px) {
	.hero__title .accent {
		display: block;
	}
}

/* ---------- Hero, small phones: tighter rhythm, compact stats, no duplicate consultation card ---------- */
@media (max-width: 639px) {
	.hero--classic .hero__inner {
		gap: 2rem;
		padding-block: 2.25rem 6rem;
	}

	.hero--classic .hero__copy {
		gap: 1.25rem;
	}

	.hero__title {
		font-size: clamp(1.75rem, 8.6vw, 2.125rem);
		line-height: 1.1;
	}

	.hero__eyebrow {
		margin-block-end: 0.625rem;
	}

	.hero__lede {
		font-size: 1.0625rem;
		line-height: 1.55;
	}

	.hero__actions {
		gap: 0.625rem;
	}

	.hero--classic .hero__actions .btn--lg {
		min-block-size: 3.125rem;
	}

	.hero__trust {
		gap: 0.75rem;
		padding-block-start: 0;
	}

	.hero__trust-line {
		font-size: 0.8125rem;
	}

	.hero__stats {
		display: grid;
		grid-template-columns: repeat(3, auto);
		justify-content: start;
		column-gap: 0.875rem;
	}

	.hero__stat {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		font-size: 0.75rem;
		line-height: 1.3;
	}

	.hero__stat:not(:last-child)::after {
		display: none;
	}

	.hero__stat + .hero__stat {
		padding-inline-start: 0.875rem;
		border-inline-start: 1px solid rgba(255, 255, 255, 0.25);
	}

	.hero__stat-value {
		font-size: 1.125rem;
	}

	/* The primary button already books the consultation; the card only repeats it on a phone. */
	.hero--classic .consult-card {
		display: none;
	}
}
@media (max-width: 639px) {
	.hero__stat-label {
		white-space: nowrap;
	}
}

/* Hero stats, narrowest phones (320px class): tighter separators so three figures share one row */
@media (max-width: 359px) {
	.hero__stats {
		column-gap: 0.625rem;
	}

	.hero__stat + .hero__stat {
		padding-inline-start: 0.625rem;
	}
}
/* Hero without the selector overlap: bottom padding matches the top instead of leaving room for the panel */
.hero--classic .hero__inner {
	padding-block-end: 5.5rem;
}

@media (max-width: 639px) {
	.hero--classic .hero__inner {
		padding-block-end: 2.75rem;
	}
}
/* ---------- 2a. Trust strip under the hero: proof line + compact logo marquee ---------- */
.trust {
	padding-block: 2.25rem 2.5rem;
	background: var(--white);
	border-block-end: 1px solid var(--line);
}

.trust__label {
	margin-block-end: 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-align: center;
	color: var(--muted);
}

.trust .lmq {
	margin-block-start: 0;
}

.trust .lmq__tile {
	inline-size: clamp(130px, 10vw, 11rem);
	aspect-ratio: 5 / 3;
	padding: 0.625rem 1rem;
	border-radius: 14px;
}

.trust .lmq__tile img {
	max-block-size: 3.25rem;
}

.trust .lmq__tile:hover {
	transform: none;
	box-shadow: none;
}

/* ---------- 3a. Modules: closing button; single-column rows on phones ---------- */
.modules__more {
	display: flex;
	justify-content: center;
}

@media (max-width: 639px) {
	.trust {
		padding-block: 1.75rem 2rem;
	}

	.trust__label {
		margin-block-end: 1rem;
		font-size: 0.8125rem;
	}

	.trust .lmq__tile {
		inline-size: 112px;
	}

	.modules .section-head {
		align-items: flex-start;
		text-align: left;
	}

	.mods {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}

	.mod {
		display: grid;
		grid-template-columns: 3rem minmax(0, 1fr);
		column-gap: 1rem;
		row-gap: 0.25rem;
		align-items: start;
		padding: 1.125rem;
		text-align: left;
	}

	.mod__icon {
		grid-row: 1 / span 3;
		inline-size: 3rem;
		block-size: 3rem;
	}

	.mod__icon .icon {
		inline-size: 1.375rem;
		block-size: 1.375rem;
	}

	.mod__title,
	.mod__text,
	.mod .more {
		grid-column: 2;
	}

	.mod .more {
		min-block-size: 2.25rem;
		margin-block-start: 0.125rem;
	}

	.modules__more .btn {
		flex: 1;
		justify-content: center;
	}
}
/* ---------- 3b. Module cards on phones: whole card is the link, arrow on the right ---------- */
@media (max-width: 639px) {
	.mod {
		position: relative;
		grid-template-columns: 3rem minmax(0, 1fr) 1.25rem;
		align-items: center;
	}

	.mod__icon {
		grid-row: 1 / span 2;
	}

	.mod .more {
		grid-column: 3;
		grid-row: 1 / span 2;
		min-block-size: 0;
		margin: 0;
	}

	.mod .more span {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.mod .more::after {
		content: "";
		position: absolute;
		inset: 0;
		border-radius: inherit;
	}

	.mod:has(.more:focus-visible) {
		outline: 3px solid var(--accent);
		outline-offset: 2px;
	}
}
/* ---------- Fluid sizing pass: scale smoothly with the screen instead of jumping at breakpoints ---------- */
.hero--classic .hero__inner {
	padding-block: clamp(2.25rem, 0.5rem + 7vw, 5.5rem);
}

.hero__title {
	font-size: clamp(1.75rem, 1rem + 3.4vw, 3.5rem);
	text-wrap: balance;
}

/* "One Connected System." always starts its own line; the font scales so it fits from ~375px up. */
.hero__title .accent {
	display: block;
}

.hero__lede {
	font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.1875rem);
}

.section-head__title {
	font-size: var(--fs-h2);
	text-wrap: balance;
}

/* Below the two-column hero the consultation card only repeats the primary button. */
@media (max-width: 959px) {
	.hero--classic .consult-card {
		display: none;
	}
}
/* ---------- Hero on phones and tablets: consistent headline + readable text over the photo ---------- */
@media (max-width: 959px) {
	/* Sized from the screen width so "One Connected System." (about 11.4x the font size wide)
	   always fits on one line inside the 20px side margins, on every phone. */
	.hero__title {
		font-size: clamp(1.5rem, calc(8.3vw - 3.4px), 3.5rem);
	}

	/* Text spans the full width here, so the desktop left-to-right fade let the photo show
	   through behind the headline. An even overlay keeps the photo as texture only. */
	.hero__scrim {
		background: linear-gradient(180deg, rgba(22, 18, 28, 0.9) 0%, rgba(22, 18, 28, 0.84) 55%, rgba(22, 18, 28, 0.8) 100%);
	}
}
/* ---------- Proportional phone hero + trust strip ----------
   Designed at 375px; every size is (px at 375 / 3.75)vw so any phone shows the same composition,
   only larger or smaller. Floors keep text readable on tiny screens; caps stop growth past 480px. */
@media (max-width: 639px) {
	.hero--classic .hero__inner {
		padding-block: clamp(28px, 9.6vw, 46px) clamp(34px, 11.733vw, 56px);
	}

	.hero--classic .hero__copy {
		gap: clamp(16px, 5.333vw, 25.6px);
	}

	.hero__eyebrow {
		margin-block-end: clamp(8px, 2.667vw, 12.8px);
		font-size: clamp(0.625rem, 3.2vw, 0.96rem);
		letter-spacing: 0.08em;
	}

	.hero__title {
		font-size: clamp(1.375rem, 7.5vw, 2.25rem);
	}

	.hero__lede {
		font-size: clamp(0.9375rem, 4.533vw, 1.36rem);
	}

	.hero__actions {
		gap: clamp(8px, 2.667vw, 12.8px);
	}

	.hero--classic .hero__actions .btn--lg {
		min-block-size: clamp(44px, 13.333vw, 64px);
		padding-inline: clamp(16px, 5.333vw, 25.6px);
		font-size: clamp(0.9375rem, 4.267vw, 1.28rem);
	}

	.hero__actions .btn__icon {
		inline-size: clamp(18px, 5.333vw, 25.6px);
		block-size: clamp(18px, 5.333vw, 25.6px);
	}

	.hero__trust {
		gap: clamp(10px, 3.2vw, 15.4px);
	}

	.hero__trust-line {
		font-size: clamp(0.75rem, 3.467vw, 1.04rem);
	}

	.hero__stats {
		column-gap: clamp(10px, 3.733vw, 18px);
	}

	.hero__stat + .hero__stat {
		padding-inline-start: clamp(10px, 3.733vw, 18px);
	}

	.hero__stat {
		font-size: clamp(0.6875rem, 3.2vw, 0.96rem);
	}

	.hero__stat-value {
		font-size: clamp(1rem, 4.8vw, 1.44rem);
	}

	.trust {
		padding-block: clamp(22px, 7.467vw, 36px) clamp(26px, 8.533vw, 41px);
	}

	.trust__label {
		margin-block-end: clamp(12px, 4.267vw, 20.5px);
		font-size: clamp(0.75rem, 3.467vw, 1.04rem);
	}

	.trust .lmq__tile {
		inline-size: clamp(96px, 29.867vw, 143px);
		padding: clamp(8px, 2.667vw, 12.8px) clamp(12px, 4.267vw, 20.5px);
	}
}
/* ---------- 3c. Modules review: 3x2 readable cards from 640px, Kenya badges ---------- */
.mod__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--tone-fg);
	background: var(--tone-bg);
	border-radius: 999px;
}

.mod__badge .icon {
	flex: none;
	inline-size: 0.875rem;
	block-size: 0.875rem;
}

@media (min-width: 640px) {
	.mods {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.mod {
		align-items: flex-start;
		gap: 0.875rem;
		padding: clamp(1.375rem, 1rem + 1vw, 1.875rem);
		text-align: left;
	}

	.mod__title {
		font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem);
	}

	.mod__text {
		font-size: clamp(0.875rem, 0.82rem + 0.2vw, 1rem);
		line-height: 1.55;
	}
}

@media (max-width: 639px) {
	.mod__badge {
		grid-column: 2;
		justify-self: start;
		margin-block: 0.125rem;
		font-size: clamp(0.6875rem, 3.2vw, 0.8rem);
	}
}
/* ---------- 3d. Modules showcase (replaces the card grid) ---------- */
.mshow {
	--mshow-r: 18px;
}

.mshow__head {
	margin: 0;
	font: inherit;
}

.mshow__tab {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.875rem;
	inline-size: 100%;
	padding: 0.875rem 1rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	color: var(--ink);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 14px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mshow__tab:hover {
	background: var(--surface);
}

.mshow__icon {
	display: grid;
	place-items: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	color: var(--tone-fg);
	background: var(--tone-bg);
	border-radius: 10px;
}

.mshow__icon .icon {
	inline-size: 1.375rem;
	block-size: 1.375rem;
}

.mshow__chev {
	inline-size: 1.125rem;
	block-size: 1.125rem;
	color: var(--muted);
	transition: transform 0.25s ease, color 0.2s ease;
}

.mshow__panel {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mshow__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem 0.875rem;
}

.mshow__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.375rem, 1rem + 1vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.mshow__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.3rem 0.7rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tone-fg);
	background: var(--tone-bg);
	border-radius: 999px;
}

.mshow__badge .icon {
	flex: none;
	inline-size: 0.875rem;
	block-size: 0.875rem;
}

.mshow__line {
	margin: 0;
	font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
	line-height: 1.55;
	color: var(--ink);
}

.mshow__body {
	display: grid;
	gap: 1.5rem;
}

.mshow__copy {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.mshow__ticks {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mshow__ticks li {
	position: relative;
	padding-inline-start: 1.75rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ink);
}

.mshow__ticks li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.2em;
	inline-size: 1.125rem;
	block-size: 1.125rem;
	border-radius: 50%;
	background: var(--tone-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316121C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

.mshow__flow {
	display: grid;
	gap: 0.5rem;
}

.mshow__flow-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.mflow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mflow li {
	display: inline-flex;
	align-items: center;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tone-fg);
}

.mflow li:not(:last-child)::after {
	content: "→";
	margin-inline: 0.5rem;
	font-weight: 400;
	color: var(--muted);
}

.mshow__more {
	margin-block-start: 0;
	align-self: flex-start;
}

/* Illustration window */
.mprev {
	margin: 0;
	display: grid;
	gap: 0.5rem;
}

.mprev__win {
	display: grid;
	gap: 0.875rem;
	padding: 0.875rem 1rem 1rem;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(22, 18, 28, 0.08);
}

.mprev__bar {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding-block-end: 0.625rem;
	border-block-end: 1px solid var(--line);
}

.mprev__bar i {
	inline-size: 0.5rem;
	block-size: 0.5rem;
	border-radius: 50%;
	background: var(--line-strong);
}

.mprev__bar b {
	margin-inline-start: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--muted);
}

.mprev__cap {
	font-size: 0.75rem;
	color: var(--muted);
	text-align: right;
}

.mprev__ok {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	margin: 0;
	padding: 0.5rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--tone-fg);
	background: var(--tone-bg);
	border-radius: 8px;
}

.mprev__ok::before {
	content: "✓";
}

.mprev__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
}

.mprev__col {
	display: grid;
	align-content: start;
	gap: 0.375rem;
}

.mprev__col em {
	font-size: 0.6875rem;
	font-style: normal;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
}

.mprev__card {
	display: grid;
	gap: 0.125rem;
	padding: 0.45rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--surface);
	border-radius: 8px;
}

.mprev__card small {
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--muted);
}

.mprev__card.is-won {
	color: var(--tone-fg);
	background: var(--tone-bg);
}

.mprev__lines {
	display: grid;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mprev__lines li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-variant-numeric: tabular-nums;
}

.mprev__lines .is-total {
	padding-block-start: 0.4rem;
	font-weight: 700;
	border-block-start: 1px dashed var(--line-strong);
}

.mprev__bars {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mprev__bars li {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) 2.25rem;
	align-items: center;
	gap: 0.5rem;
	font-variant-numeric: tabular-nums;
}

.mprev__bars b {
	position: relative;
	block-size: 0.5rem;
	border-radius: 999px;
	background: var(--surface);
	overflow: hidden;
}

.mprev__bars b::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inline-size: var(--v);
	border-radius: inherit;
	background: var(--tone-fg);
}

.mprev__bars .is-low b::after {
	background: #B3263F;
}

.mprev__bars em {
	font-style: normal;
	font-weight: 600;
	text-align: right;
}

.mprev__steps {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.mprev__steps li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--muted);
	counter-increment: step;
}

.mprev__steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	flex: none;
	inline-size: 1.25rem;
	block-size: 1.25rem;
	font-size: 0.6875rem;
	font-weight: 700;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
}

.mprev__steps .is-done {
	color: var(--ink);
}

.mprev__steps .is-done::before {
	content: "✓";
	color: var(--white);
	background: var(--tone-fg);
	border-color: var(--tone-fg);
}

.mprev__steps .is-now {
	font-weight: 600;
	color: var(--tone-fg);
}

.mprev__steps .is-now::before {
	border-color: var(--tone-fg);
	box-shadow: 0 0 0 3px var(--tone-bg);
}

.mprev__chips {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mprev__chips li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.45rem 0.6rem;
	font-weight: 600;
	background: var(--surface);
	border-radius: 8px;
}

.mprev__chips li::after {
	content: "✓";
	color: var(--tone-fg);
}

/* Desktop: list on the left, the open module on the right. JS only (no-JS shows everything stacked). */
@media (min-width: 960px) {
	.mshow.is-ready {
		display: grid;
		grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
		grid-template-rows: repeat(6, auto) 1fr;
		column-gap: clamp(1.5rem, 3vw, 3rem);
		row-gap: 0.375rem;
		align-items: start;
	}

	.mshow.is-ready .mshow__item {
		display: contents;
	}

	.mshow.is-ready .mshow__head {
		grid-column: 1;
	}

	.mshow.is-ready .mshow__panel {
		grid-column: 2;
		grid-row: 1 / 8;
		padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
		background: var(--white);
		border: 1px solid var(--line);
		border-radius: var(--mshow-r);
		box-shadow: 0 24px 60px rgba(22, 18, 28, 0.06);
	}

	.mshow.is-ready .mshow__panel[hidden] {
		display: none;
	}

	.mshow.is-ready .mshow__tab[aria-expanded="true"] {
		background: var(--white);
		border-color: var(--line);
		box-shadow: inset 3px 0 0 var(--tone-fg), 0 10px 24px rgba(22, 18, 28, 0.06);
	}

	.mshow.is-ready .mshow__tab[aria-expanded="true"] .mshow__chev {
		color: var(--tone-fg);
		transform: translateX(3px);
	}

	.mshow__body {
		grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
		align-items: start;
	}
}

/* Phones and tablets: accordion cards */
@media (max-width: 959px) {
	.mshow {
		display: grid;
		gap: 0.625rem;
	}

	.mshow__item {
		background: var(--white);
		border: 1px solid var(--line);
		border-radius: 16px;
		overflow: hidden;
	}

	.mshow__item.is-open {
		box-shadow: inset 3px 0 0 var(--tone-fg), 0 12px 28px rgba(22, 18, 28, 0.06);
	}

	.mshow__tab {
		padding: clamp(0.75rem, 3.733vw, 1.1rem) clamp(0.875rem, 4.267vw, 1.25rem);
		font-size: clamp(0.9375rem, 4.267vw, 1.125rem);
		border-radius: 0;
	}

	.mshow__tab:hover {
		background: transparent;
	}

	.mshow__chev {
		transform: rotate(90deg);
	}

	.mshow__tab[aria-expanded="true"] .mshow__chev {
		color: var(--tone-fg);
		transform: rotate(-90deg);
	}

	.mshow__panel {
		padding: 0 clamp(0.875rem, 4.267vw, 1.25rem) clamp(1rem, 5.333vw, 1.5rem);
	}

	.mshow__panel[hidden] {
		display: none;
	}

	.mshow__title {
		display: none;
	}

	.mshow__top:not(:has(.mshow__badge)) {
		display: none;
	}
}

@media (min-width: 640px) and (max-width: 959px) {
	.mshow__body {
		grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem);
		align-items: start;
	}
}

/* Opening a module: the panel content arrives with a short slide toward the list (desktop) or drops into
   place under its row (accordion). CSS only; it replays whenever a panel loses [hidden]. */
@media (prefers-reduced-motion: no-preference) {
	.mshow.is-ready .mshow__panel:not([hidden]) > * {
		animation: mshow-in 0.55s var(--ease-out) both;
	}

	@media (min-width: 960px) {
		.mshow.is-ready .mshow__panel:not([hidden]) > * {
			animation-name: mshow-in-side;
		}
	}
}

@keyframes mshow-in {
	from {
		opacity: 0;
		transform: translateY(-12px);
	}
}

@keyframes mshow-in-side {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mshow__tab,
	.mshow__chev {
		transition: none;
	}
}

/* ---------- 3e. Showcase sizing fixes: never wider than the screen; roomier illustration on desktop ---------- */
.mshow__body {
	grid-template-columns: minmax(0, 1fr);
}

.mshow__body > *,
.mshow__copy,
.mprev,
.mprev__win {
	min-inline-size: 0;
}

.mprev__card small {
	white-space: nowrap;
}

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

@media (min-width: 640px) and (max-width: 959px) {
	.mshow__body {
		grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
	}
}

@media (min-width: 960px) {
	.mshow__body {
		grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
	}
}
/* ---------- 3f. Modules showcase, editorial restyle ----------
   One brand colour, typographic numbered list, hairlines instead of boxes and shadows. */
.mshow {
	--tone-fg: var(--accent);
	--tone-bg: color-mix(in srgb, var(--accent) 7%, var(--white));
}

.mshow__tab {
	grid-template-columns: 2.5rem minmax(0, 1fr);
	gap: 0;
	padding: 1.05rem 0 1.05rem 1.125rem;
	font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--muted);
	background: transparent;
	border: 0;
	border-block-end: 1px solid var(--line);
	border-radius: 0;
	box-shadow: none;
	position: relative;
	transition: color 0.2s ease;
}

.mshow__item:first-child .mshow__tab {
	border-block-start: 1px solid var(--line);
}

.mshow__tab::before {
	content: "";
	position: absolute;
	inset-block: -1px;
	inset-inline-start: 0;
	inline-size: 2px;
	background: var(--accent);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.3s var(--ease-out, ease);
}

.mshow__tab:hover {
	color: var(--ink);
	background: transparent;
}

.mshow__num {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	transition: color 0.2s ease;
}

.mshow__tab[aria-expanded="true"] {
	color: var(--ink);
}

.mshow__tab[aria-expanded="true"] .mshow__num {
	color: var(--accent);
}

.mshow__tab[aria-expanded="true"]::before {
	transform: scaleY(1);
}

/* Panel content */
.mshow__badge {
	gap: 0;
	padding: 0.25rem 0.625rem;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: var(--accent);
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
	border-radius: 999px;
}

.mshow__ticks li {
	padding-inline-start: 1.5rem;
}

.mshow__ticks li::before {
	inset-block-start: 0.3em;
	inline-size: 0.9rem;
	block-size: 0.9rem;
	border-radius: 0;
	background: var(--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mflow li {
	color: var(--ink);
	font-weight: 500;
}

.mflow li:not(:last-child)::after {
	color: var(--accent);
}

/* Illustration: plain label, no window chrome, no shadow */
.mprev__win {
	box-shadow: none;
	border-radius: 12px;
}

.mprev__bar {
	padding-block-end: 0.5rem;
}

.mprev__bar b {
	margin-inline-start: 0;
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mprev__ok {
	font-weight: 500;
	color: var(--ink);
	background: var(--tone-bg);
}

.mprev__ok::before {
	color: var(--accent);
	font-weight: 700;
}

.mprev__bars .is-low b::after {
	background: var(--ink);
}

/* Desktop: list left, flat tinted panel right */
@media (min-width: 960px) {
	.mshow.is-ready {
		row-gap: 0;
		column-gap: clamp(2rem, 4vw, 4rem);
	}

	.mshow.is-ready .mshow__panel {
		background: var(--surface);
		border: 0;
		border-radius: 16px;
		box-shadow: none;
	}

	.mshow.is-ready .mshow__tab[aria-expanded="true"] {
		background: transparent;
		border-color: var(--line);
		box-shadow: none;
	}
}

/* Phones and tablets: hairline accordion rows with a plus / minus */
@media (max-width: 959px) {
	.mshow {
		gap: 0;
	}

	.mshow__item {
		background: transparent;
		border: 0;
		border-radius: 0;
		overflow: visible;
	}

	.mshow__item.is-open {
		box-shadow: none;
	}

	.mshow__tab {
		grid-template-columns: clamp(2rem, 9vw, 2.5rem) minmax(0, 1fr) auto;
		padding: clamp(0.9rem, 4.267vw, 1.2rem) 0 clamp(0.9rem, 4.267vw, 1.2rem) clamp(0.75rem, 3.2vw, 1rem);
		font-size: clamp(1rem, 4.533vw, 1.25rem);
	}

	.mshow__tab::before {
		display: none;
	}

	.mshow__tab::after {
		content: "+";
		font-size: 1.375rem;
		font-weight: 400;
		line-height: 1;
		color: var(--muted);
		padding-inline-end: 0.25rem;
	}

	.mshow__tab[aria-expanded="true"]::after {
		content: "−";
		color: var(--accent);
	}

	.mshow__panel {
		padding: clamp(0.25rem, 1vw, 0.5rem) 0 clamp(1.25rem, 6vw, 1.75rem) clamp(0.75rem, 3.2vw, 1rem);
		border-block-end: 1px solid var(--line);
	}

	.mshow__item.is-open .mshow__tab {
		border-block-end-color: transparent;
	}
}

/* ---------- 4a. Why Magnolia, editorial restyle (matches the modules showcase) ----------
   No boxed cards or tinted icon tiles: each reason sits on a hairline with a short plum marker. */
.whys {
	gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.75rem);
	align-content: center;
	padding-block: clamp(0.5rem, 1.5vw, 1.5rem);
}

.reason {
	position: relative;
	gap: 0.5rem;
	padding: 1.25rem 0 0;
	background: transparent;
	border-block-start: 1px solid var(--line);
	border-radius: 0;
}

.reason::before {
	content: "";
	position: absolute;
	inset-block-start: -1px;
	inset-inline-start: 0;
	inline-size: 2.5rem;
	block-size: 2px;
	background: var(--accent);
}

.reason__icon {
	justify-content: flex-start;
	inline-size: auto;
	block-size: auto;
	margin-block-end: 0.25rem;
	background: transparent;
	border-radius: 0;
}

.reason__icon .icon {
	inline-size: 1.375rem;
	block-size: 1.375rem;
}

.reason__title {
	font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
	letter-spacing: -0.01em;
}

.reason__text {
	font-size: clamp(0.9rem, 0.86rem + 0.15vw, 0.96875rem);
	line-height: 1.55;
}

@media (max-width: 380px) {
	.reason {
		padding: 1.125rem 0 0;
	}
}

@media (max-width: 559px) {
	.whys {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}
}

/* ---------- 5a. Our work footer: industries line + "View all projects" (replaces the old industries section) ---------- */
.work__foot {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2.5rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid var(--line);
}

.work__foot::before {
	content: "";
	position: absolute;
	inset-block-start: -1px;
	inset-inline-start: 0;
	inline-size: 2.5rem;
	block-size: 2px;
	background: var(--accent);
}

.work__ind {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	margin: 0;
}

.work__ind-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.work__ind-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.work__ind-list li {
	font-size: clamp(0.9rem, 0.86rem + 0.15vw, 0.96875rem);
	font-weight: 500;
	color: var(--ink);
}

.work__ind-list li:not(:last-child)::after {
	content: "·";
	margin-inline: 0.55rem;
	color: var(--accent);
	font-weight: 700;
}

.work__foot .more {
	flex: none;
	margin: 0;
}

@media (max-width: 639px) {
	.work__foot {
		flex-direction: column;
		align-items: flex-start;
	}

	.work__ind {
		flex-direction: column;
		gap: 0.5rem;
	}
}

/* ---------- 8a. Newsletter on phones: stacked, full-width form, proportional like the hero (designed at 375px) ---------- */
@media (max-width: 639px) {
	.newsletter {
		padding-block: clamp(40px, 12.8vw, 62px);
	}

	.newsletter__grid {
		gap: clamp(24px, 7.467vw, 36px);
	}

	.newsletter__copy {
		flex-direction: column;
		align-items: flex-start;
		gap: clamp(12px, 4.267vw, 20px);
	}

	.newsletter__badge {
		inline-size: clamp(44px, 13.867vw, 66px);
		block-size: clamp(44px, 13.867vw, 66px);
	}

	.newsletter__badge .icon {
		inline-size: clamp(20px, 6.4vw, 30px);
		block-size: clamp(20px, 6.4vw, 30px);
	}

	.newsletter h2 {
		font-size: clamp(1.375rem, 6.4vw, 1.92rem);
		line-height: 1.15;
		text-wrap: balance;
	}

	.newsletter__text p {
		font-size: clamp(0.875rem, 4vw, 1.2rem);
	}

	.newsletter__label {
		font-size: clamp(0.8125rem, 3.733vw, 1.12rem);
	}

	.newsletter__row {
		flex-direction: column;
		gap: clamp(8px, 2.667vw, 12.8px);
	}

	.newsletter__input,
	.newsletter .newsletter__btn {
		flex: none;
		inline-size: 100%;
		min-block-size: clamp(48px, 13.333vw, 64px);
		font-size: clamp(0.9375rem, 4.267vw, 1.28rem);
	}

	.newsletter .newsletter__btn {
		justify-content: center;
	}

	.newsletter__note {
		font-size: clamp(0.75rem, 3.467vw, 1.04rem);
	}
}
/* ---------- 8b. Newsletter: email and button merged into one bar (all screens) ---------- */
.newsletter__row {
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.375rem;
	padding: 0.375rem;
	background: var(--white);
	border-radius: calc(var(--r-btn) + 0.375rem);
	box-shadow: 0 14px 34px rgba(22, 18, 28, 0.22);
	transition: box-shadow 0.2s ease;
}

.newsletter__row:focus-within {
	outline: 3px solid var(--white);
	outline-offset: 3px;
}

.newsletter__input {
	flex: 1 1 auto;
	inline-size: auto;
	min-inline-size: 0;
	min-block-size: 3rem;
	padding-inline: 0.875rem 0.5rem;
	background: transparent;
	border-radius: var(--r-btn);
}

.newsletter__input:focus,
.newsletter__input:focus-visible {
	outline: none;
}

.newsletter .newsletter__btn {
	flex: none;
	inline-size: auto;
	min-block-size: 3rem;
	padding-inline: 1.5rem;
}

@media (max-width: 639px) {
	.newsletter__row {
		flex-direction: row;
		gap: clamp(4px, 1.333vw, 6.4px);
		padding: clamp(4px, 1.333vw, 6.4px);
	}

	.newsletter__input,
	.newsletter .newsletter__btn {
		flex: 1 1 auto;
		inline-size: auto;
		min-block-size: clamp(42px, 12.267vw, 58px);
		font-size: clamp(0.875rem, 4vw, 1.2rem);
	}

	.newsletter__input {
		padding-inline: clamp(10px, 3.2vw, 15px) 4px;
	}

	.newsletter .newsletter__btn {
		flex: none;
		padding-inline: clamp(14px, 4.8vw, 23px);
	}
}
/* ---------- 8c. Home CTA card: shared design lives in base/components.css; Home sets it on the testimonials background ---------- */
section.home-cta {
	background: var(--surface);
}

.testi + section.home-cta {
	padding-block-start: 0;
}

.testi:has(+ .home-cta) {
	padding-block-end: clamp(2rem, 1.5rem + 2vw, 3rem);
}

/* ---------- 1c. Hero consultation card: three steps instead of repeating the button ---------- */
.consult-card {
	gap: 0.75rem;
	padding-block: 2.5rem 1.5rem;
}

.consult-card .consult-card__title {
	font-size: 1.1875rem;
	line-height: 1.25;
	text-wrap: balance;
}

.consult-card__steps {
	display: grid;
	align-self: stretch;
	gap: 0.625rem;
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: consult-step;
	text-align: left;
}

.consult-card__steps li {
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr);
	align-items: start;
	gap: 0.625rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--ink);
	counter-increment: consult-step;
}

.consult-card__steps li::before {
	content: counter(consult-step);
	display: grid;
	place-items: center;
	inline-size: 1.5rem;
	block-size: 1.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--accent);
	background: var(--accent-wash);
	border-radius: 50%;
}

.consult-card .consult-card__note {
	font-size: 0.8125rem;
}

.consult-card .consult-card__btn {
	margin-block-start: 0.25rem;
}

/* ---------- 1d. Wide screens: keep the copy and the card together (left edge stays aligned with the logo) ---------- */
@media (min-width: 1500px) {
	.hero--classic .hero__inner {
		grid-template-columns: minmax(0, 46rem) 20rem;
		justify-content: start;
		column-gap: clamp(4rem, 7vw, 8rem);
	}
}
/* ---------- Hero entrance (CSS only, starts on first paint, never waits for scripts) ----------
   The photo is fully visible from the first frame and only settles from a slight zoom (transform only),
   so it stays the page's fast LCP. The copy rises in reading order (headline, lede, actions, proof),
   then the consultation card; the whole sequence is done in about 1.4s. The headline starts at 0.01
   opacity rather than 0 so the browser paints it, and counts it as loaded, on the first frame. */
@media (prefers-reduced-motion: no-preference) {
	.hero .hero__img {
		animation: hero-settle 2.2s var(--ease-out) both;
	}

	.hero__title {
		animation: hero-rise-title 1s var(--ease-out) both;
	}

	.hero__lede,
	.hero__actions,
	.hero__trust {
		animation: hero-rise 0.9s var(--ease-out) both;
	}

	.hero__lede {
		animation-delay: 0.15s;
	}

	.hero__actions {
		animation-delay: 0.28s;
	}

	.hero__trust {
		animation-delay: 0.4s;
	}

	.hero .consult-card {
		animation: hero-card 1s var(--ease-out) 0.45s both;
	}
}

@media (prefers-reduced-motion: no-preference) and (max-width: 959px) {
	.hero .consult-card {
		animation-name: hero-rise;
	}
}

@keyframes hero-settle {
	from {
		transform: scale(1.08);
	}
}

@keyframes hero-rise-title {
	from {
		opacity: 0.01;
		transform: translateY(28px);
	}
}

@keyframes hero-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

@keyframes hero-card {
	from {
		opacity: 0;
		transform: translateX(32px);
	}
}
