:root {
	--move-why-bg: var(--move-color-bg, #faf7f0);
	--move-why-text: var(--move-color-text, #475c76);
	--move-why-accent: var(--move-color-accent, #689fdf);
	/* text/inverse/body — dark band card copy, distinct from the light
	   variant's text/body and from footer's text/inverse/label. */
	--move-why-card-description-dark: var(--move-color-text-inverse, #e3e7ec);
	/* Light-variant card shell: Home's feature cards, white with a light 1px
	   border, square corners. Zero radius is deliberate — unlike the shared
	   .move-card shell, these don't use --move-radius. */
	--move-why-card-bg-light: #ffffff;
	--move-why-card-border-light: #eae9e6;

	/* Type, measured off both approved uses, larger than the sizes this
	 * shipped with: Home's statement is 43px (not 18px), card titles 40px
	 * (not 16px), What We Do's dark heading 40px with a 14px tagline.
	 * Mobile-first — large steps are the desktop value, in the @container
	 * query at the bottom of this file.
	 */
	--move-why-font-eyebrow: var(--move-font-size-sm, 0.875rem);          /* 14px — Tagline/tagline-14 */
	--move-why-font-intro: var(--move-font-size-xl, 1.5rem);              /* 24px, mobile */
	--move-why-font-intro-lg: 2.6875rem;                                  /* 43px — a literal: Figma's own statement size, between the 40px and 48px steps */
	--move-why-font-intro-dark-lg: var(--move-font-size-4xl, 2.5rem);     /* 40px — the dark band's heading */
	--move-why-font-card-title: var(--move-font-size-xl, 1.5rem);         /* 24px, mobile */
	--move-why-font-card-title-lg: var(--move-font-size-4xl, 2.5rem);     /* 40px */
	--move-why-font-card-description: var(--move-font-size-base, 1rem);   /* 16px */
}

.move-why-section {
	container-type: inline-size;
	container-name: move-why-section;
	width: 100%;
	background: var(--move-why-bg);
	color: var(--move-why-text);
	font-family: var(--move-font-base);
	font-size: 1rem;
	font-weight: 400;
	/* Recolours the shared .move-button (tokens.css) scoped to this block,
	   not :root — a :root custom property would leak into every button. */
	--move-button-bg: var(--move-color-dark, #0f2a4a);
	--move-button-text: var(--move-color-text-inverse, #f1f4f7);
	/* font-size/base, Figma's button label size — not --move-why-font-card-title,
	   which this used to borrow and is now 40px. */
	--move-button-font-size: var(--move-font-size-base, 1rem);
}

.move-why-section__container {
	max-width: var(--move-container-max, 1312px);
	margin-inline: auto;
	padding: var(--move-section-padding, 6rem) var(--move-container-gutter, 2rem);
	/* 96px gap (light) / 48px (dark); members' own margins are zeroed below
	   so this is the only thing setting the rhythm. */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--move-section-padding, 6rem);
}
.move-why-section--dark .move-why-section__container {
	gap: var(--move-space-lg, 3rem);
}
.move-why-section__container > * {
	width: 100%;
	margin: 0;
}

/* Dark variant: "Divulgação científica" icon-card use (bordered cards, real
 * icon, navy band), vs. the light variant's plain arrow-icon cards. Same
 * markup; only palette and card border/badge treatment change.
 */
.move-why-section--dark {
	background: var(--move-color-dark, #0f2a4a);
	color: var(--move-color-text-inverse, #e3e7ec);
}
.move-why-section--dark .move-why-section__cards {
	gap: var(--move-space-32, 2rem);
}
.move-why-section--dark .move-why-section__card-description {
	/* text/inverse/body, 14px tracked — not the light card's 16px untracked
	   text/body. */
	color: var(--move-why-card-description-dark);
	font-size: var(--move-font-size-sm, 0.875rem);
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
}
.move-why-section--dark .move-why-section__card-title {
	color: var(--move-color-text-inverse-title, #ffffff);
	font-weight: var(--move-font-weight-regular, 400);
	letter-spacing: var(--move-letter-spacing-tighter, -0.02em);
	/* Positive and deliberate: emphasis runs at +0.48px against the roman's
	   -0.48px, consistently across all four cards — the only positive
	   emphasis tracking in the file. */
	--move-em-tracking: 0.02em;
}
/* Border and badge fill are brand-mid-emphasis (#315179), a real palette
   colour, not the translucent white this shipped with. */
.move-why-section--dark .move-why-section__card {
	gap: var(--move-space-sm, 1rem);
	/* Explicitly transparent: without cancelling the base rule's white shell,
	   the dark band's white titles would be invisible on it. */
	background: none;
	border: var(--move-border-width, 1px) solid #315179;
	border-radius: var(--move-radius, 0.75rem);
	padding: var(--move-space-md, 1.5rem);
}
.move-why-section--dark .move-why-section__card-icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #315179;
	color: #ffffff;
}
.move-why-section--dark .move-why-section__card-icon svg {
	width: 1.25rem;
	height: 1.25rem;
}
/* `:nth-child(n)` is load-bearing, not decoration: without it, this selector
 * ties the light variant's `> li:nth-child(1)` rules on specificity (0-3-1)
 * and loses on source order — the dark band's badges wore the Home cards'
 * brown/grey/blue. Matching the pseudo-class puts this at 0-4-1 to win
 * outright.
 */
.move-why-section--dark .move-why-section__cards > li:nth-child(n) .move-why-section__card-icon {
	color: #ffffff;
}
.move-why-section--dark a.move-why-section__card:hover .move-why-section__card-title,
.move-why-section--dark a.move-why-section__card:focus-visible .move-why-section__card-title {
	color: var(--move-why-accent);
}

.move-why-section__eyebrow {
	color: var(--move-why-accent);
	text-align: center;
	text-transform: uppercase;
	/* Tagline/tagline-14: 14px SemiBold, +15% tracking, accent. */
	letter-spacing: var(--move-letter-spacing-looser, 0.15em);
	font-size: var(--move-why-font-eyebrow);
	font-weight: var(--move-font-weight-semibold, 600);
	line-height: 1;
}

/* Not an "intro" in either approved use: Home's centred display statement,
 * What We Do's dark-band section heading. One treatment carries both with
 * only a size/colour step between them.
 */
.move-why-section__intro {
	max-width: 59rem; /* 946px, Figma's measured wrap width. */
	margin-inline: auto;
	text-align: center;
	color: var(--move-color-dark-alt, #061b33);
	font-size: var(--move-why-font-intro);
	font-weight: var(--move-font-weight-light, 300);
	/* Mobile keeps the proportional step; desktop (below) swaps in the
	   absolute -1px Figma draws on its 43px line — unjustified at the 24px
	   mobile size, so it's not applied at the base. */
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	line-height: var(--move-line-snug, 1.3);
	/* Strongest emphasis pairing: Bold at desktop 48px against the 43px Light
	   roman. Size step is mobile-first, set with the roman's below. */
	--move-em-weight: var(--move-font-weight-bold, 700);
	/* Middle treatment: some phrases run 48px in the roman face, not the
	 * Rosario Bold italic — <strong> is a size lift at Light weight, not a
	 * weight lift. Size step goes in the desktop container below too.
	 */
	--move-strong-weight: var(--move-font-weight-light, 300);
	--move-strong-tracking: -1px;
}
.move-why-section--dark .move-why-section__intro {
	color: var(--move-color-text-inverse-title, #ffffff);
	font-weight: var(--move-font-weight-regular, 400);
	letter-spacing: var(--move-letter-spacing-tightest, -0.04em);
	line-height: var(--move-line-tight, 1.2);
	/* Medium, not the light variant's Bold: Figma pairs this 40px navy
	   heading with Medium italic, reserving Bold for Home's statement. */
	--move-em-weight: var(--move-font-weight-medium, 500);
}
.move-why-section__intro p:first-child {
	margin-top: 0;
}
.move-why-section__intro p:last-child {
	margin-bottom: 0;
}

.move-why-section__cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	/* 36px, a literal Figma sets on this row alone — not an espacing/gap
	   step. Dark band's four-up grid uses the real gap/32 token below. */
	gap: 2.25rem;
	grid-template-columns: 1fr;
}

.move-why-section__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	/* gap/32 icon-to-text on a light card, gap/16 on a dark one (overridden
	   below). */
	gap: var(--move-space-32, 2rem);
	text-decoration: none;
	color: inherit;
	width: 100%;
	text-align: left;
	/* Renders as a <button> when it has no link, and buttons inherit neither
	   family nor size from the block root. */
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	/* Light-variant card shell (--move-why-card-* tokens above); skipped for
	   a background-photo card (already full-bleed) and overridden by the
	   dark-variant rule below. */
	background: var(--move-why-card-bg-light);
	border: var(--move-border-width, 1px) solid var(--move-why-card-border-light);
	border-radius: 0;
	padding: var(--move-space-md, 1.5rem);
}

/* Light variant: a bare 32px accent mark, not a filled badge — the filled
 * square this shipped with was a prototype leftover.
 */
.move-why-section__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	background: none;
	color: var(--move-why-accent);
}
.move-why-section__card-icon svg {
	width: 100%;
	height: 100%;
}
/* Small disc inside the 32px slot, matching Figma's dot rather than filling
   the slot edge to edge. The slot itself is the dot's backing plate — Figma's
   own exported instance (Home's three "Card Diferencial" icons) draws a
   32x32 #F8FAFD circle under the dot, not a bare mark on the card background. */
.move-why-section__card-icon--dot {
	background: #f8fafd;
	border-radius: 50%;
}
.move-why-section__card-icon--dot svg {
	width: 0.625rem;  /* 10px */
	height: 0.625rem;
}
/* The three Home cards' marks are the hero animation's own flow-line colours,
 * keyed off position rather than a per-card field, to stay in step with the
 * graphic above by construction. Counted on the <li>, not the card class
 * (which sits on the <a>/<button> and is always its parent's first child).
 * Values measured off Figma's own exported instance SVGs (Home's three
 * "Card Diferencial" components), not the named style — card 2 and 3 were
 * previously grey/navy placeholders that never matched the design.
 */
.move-why-section__cards > li:nth-child(1) .move-why-section__card-icon { color: var(--move-why-accent); }
.move-why-section__cards > li:nth-child(2) .move-why-section__card-icon { color: #c6d9f2; }
.move-why-section__cards > li:nth-child(3) .move-why-section__card-icon { color: #7898c0; }

.move-why-section__card-title {
	color: var(--move-color-dark, #0f2a4a);
	font-weight: var(--move-font-weight-light, 300);
	font-size: var(--move-why-font-card-title);
	/* Same mobile-first split as the statement above: -1px is a desktop
	   value, applied in the container query. */
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	line-height: var(--move-line-snug, 1.3);
	/* Lightest emphasis pairing: Medium, at the roman's own size (tokens.css). */
	--move-em-weight: var(--move-font-weight-medium, 500);
}
.move-why-section__card-title p {
	margin: 0;
}

.move-why-section__card-description {
	color: var(--move-color-text, #475c76);
	font-size: var(--move-why-font-card-description);
	font-weight: var(--move-font-weight-light, 300);
	line-height: var(--move-line-normal, 1.4);
}

/* Optional per-card background photo. A scrim (not a lighter overlay) keeps
 * text contrast regardless of what the editor uploads — spec leaves the
 * final visual "dependendo do layout", so this is a safe default.
 */
.move-why-section__card--has-image {
	position: relative;
	color: var(--move-hero-text-inverse, #f5f3ee);
	padding: var(--move-space-md, 1.5rem);
	/* Mobile-first: an editor-supplied mobile crop wins below the desktop
	   step, falling back to the shared image otherwise. */
	background-image:
		linear-gradient(rgba(38, 38, 36, 0.72), rgba(38, 38, 36, 0.72)),
		var(--move-why-card-bg-mobile, var(--move-why-card-bg));
	background-size: cover;
	background-position: center;
}
.move-why-section__card--has-image .move-why-section__card-description {
	color: var(--move-color-text-muted-inverse, #c9c4b8);
}
.move-why-section__card--has-image .move-why-section__card-icon {
	background: rgba(245, 243, 238, 0.16);
	color: var(--move-why-accent);
}

/* Box model/colour/focus ring from shared .move-button (recoloured above);
   this adds only layout — full-width mobile, shrink-to-fit from 1024px. */
.move-why-section__button {
	width: 100%;
}
.move-why-section__button:hover {
	filter: brightness(1.15);
}

a.move-why-section__card:hover .move-why-section__card-title,
a.move-why-section__card:focus-visible .move-why-section__card-title {
	color: var(--move-why-accent);
}
a.move-why-section__card:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}

@container move-why-section (min-width: 768px) {
	/* The mobile-only override (if any) stops applying from here up. */
	.move-why-section__card--has-image {
		background-image:
			linear-gradient(rgba(38, 38, 36, 0.72), rgba(38, 38, 36, 0.72)),
			var(--move-why-card-bg);
	}
	.move-why-section__intro {
		font-size: var(--move-why-font-intro-lg);
		/* Absolute -1px: Figma's letter-spacing/tight *variable* is a pixel
		   value here, not the -0.01em percentage step (tokens.css). */
		letter-spacing: -1px;
		/* 48px against the 43px roman — the design's widest emphasis step. */
		--move-em-size: 3rem; /* 48px */
		--move-strong-size: 3rem;
	}
	.move-why-section--dark .move-why-section__intro {
		font-size: var(--move-why-font-intro-dark-lg);
		/* Dark band's roman is 40px, not 43px, so emphasis keeps the roman's
		   own size rather than the light variant's lift. */
		--move-em-size: inherit;
	}
	.move-why-section__card-title {
		font-size: var(--move-why-font-card-title-lg);
		/* -1px again: at 40px the em step would be only -0.4px. */
		letter-spacing: -1px;
	}
	.move-why-section--dark .move-why-section__card-title {
		/* Dark band's cards are four-up, so titles stay at the base step —
		   only the light variant's three-up cards take the 40px. Was
		   dropping to 20px on desktop, below its own mobile size. */
		font-size: var(--move-font-size-xl, 1.5rem);
	}
}

@container move-why-section (min-width: 1024px) {
	.move-why-section__cards {
		grid-template-columns: repeat(3, 1fr);
	}
	.move-why-section--dark .move-why-section__cards {
		grid-template-columns: repeat(4, 1fr);
	}
	.move-why-section__button {
		width: fit-content;
		/* Container is a centred flex column, so `align-self` centres this —
		   `margin-inline: auto` did nothing here, which left the button
		   sitting hard left. */
		align-self: center;
	}
}
