/* ==========================================================================
   Who We Work With — Styles
   ========================================================================== */

.wwww-section {
	--wwww-accent: #3B7A42;
	--wwww-bg: #F7F7F5;
	--wwww-card-bg: #FFFFFF;
	--wwww-preview-bg: #FFFFFF;
	--wwww-image-width: 45%;
	--wwww-preview-width: 26%;
	--wwww-image-ratio: 4 / 3.6;
	--wwww-min-height: 420px;
	--wwww-radius: 20px;
	--wwww-ink: #111315;
	--wwww-muted: #6B7075;

	position: relative;
	background: var(--wwww-bg);
	padding: 90px 40px 70px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	overflow: hidden;
}

.wwww-section *,
.wwww-section *::before,
.wwww-section *::after {
	box-sizing: border-box;
}

.wwww-empty {
	opacity: 0.6;
	font-style: italic;
	text-align: center;
}

/* Faint technical/blueprint grid texture in the corners. */
.wwww-grid-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(17, 19, 21, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(17, 19, 21, 0.05) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: radial-gradient(ellipse 480px 320px at 8% 0%, black 20%, transparent 70%), radial-gradient(ellipse 480px 320px at 92% 0%, black 20%, transparent 70%);
	mask-image: radial-gradient(ellipse 480px 320px at 8% 0%, black 20%, transparent 70%), radial-gradient(ellipse 480px 320px at 92% 0%, black 20%, transparent 70%);
}

/* --------------------------------------------------------------------
   Header
   -------------------------------------------------------------------- */
.wwww-header {
	position: relative;
	z-index: 1;
	max-width: 780px;
	margin: 0 auto 56px;
	text-align: center;
}

.wwww-eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wwww-accent);
	margin-bottom: 14px;
}

.wwww-heading {
	margin: 0 0 16px;
	font-size: clamp(28px, 3.6vw, 42px);
	line-height: 1.2;
	font-weight: 800;
	color: var(--wwww-ink);
	letter-spacing: -0.01em;
}

.wwww-subtitle {
	margin: 0 auto;
	max-width: 620px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wwww-muted);
}

/* --------------------------------------------------------------------
   Stage: sliding filmstrip track (no scroll-jacking — height comes
   naturally from the image's aspect ratio, not a fixed value).
   -------------------------------------------------------------------- */
.wwww-stage {
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
}

/* The viewport masks everything outside the current "pair". */
.wwww-cards-viewport {
	width: 100%;
	overflow: hidden;
}

/* The track holds every pair side by side; sliding it left (via JS
   transform) is what advances from one card to the next. */
.wwww-cards-track {
	display: flex;
	align-items: flex-start;
	width: 100%;
	will-change: transform;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.wwww-pair {
	flex: 0 0 100%;
	max-width: 100%;
	display: flex;
	align-items: stretch;
	gap: 22px;
}

/* Primary unit: image + active card, one seamless shadow/radius.
   Grid (not flex) so the image's aspect-ratio reliably establishes
   the row height, with the text card stretching to match it —
   flexbox's aspect-ratio + stretch interaction is inconsistent
   across browsers for this exact case, grid is not. */
.wwww-primary {
	display: grid;
	grid-template-columns: var(--wwww-image-width) 1fr;
	align-items: stretch;
	flex: 1 1 auto;
	min-width: 0;
	min-height: var(--wwww-min-height);
	background: var(--wwww-card-bg);
	border-radius: var(--wwww-radius);
	box-shadow: 0 30px 70px -25px rgba(17, 19, 21, 0.28);
	overflow: hidden;
}

.wwww-image-frame {
	position: relative;
	aspect-ratio: var(--wwww-image-ratio);
	overflow: hidden;
	height: 100%;
}

.wwww-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wwww-primary > .wwww-card {
	min-width: 0;
}

/* --------------------------------------------------------------------
   Card — shared, rendered inside both the primary and preview slots
   -------------------------------------------------------------------- */
.wwww-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 52px;
	overflow-y: auto;
}

.wwww-card__number-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 2px;
}

.wwww-card__number {
	font-size: 22px;
	font-weight: 800;
	color: var(--wwww-accent);
	line-height: 1;
}

.wwww-card__number-line {
	display: block;
	width: 34px;
	height: 2px;
	background: var(--wwww-accent);
	border-radius: 2px;
}

.wwww-card__title {
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--wwww-ink);
}

.wwww-card__desc {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--wwww-muted);
}

.wwww-card__desc p {
	margin: 0 0 0.7em;
}

.wwww-card__checklist {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 20px;
}

.wwww-card__checklist li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wwww-ink);
}

.wwww-check {
	flex-shrink: 0;
	color: var(--wwww-accent);
}

.wwww-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	margin-top: 16px;
	padding: 13px 22px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--wwww-ink);
	background: transparent;
	border: 1.5px solid var(--wwww-accent);
	border-radius: 999px;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.wwww-button:hover {
	background: var(--wwww-accent);
	color: #fff;
	transform: translateY(-2px);
}

.wwww-button__icon {
	display: inline-flex;
	color: var(--wwww-accent);
	transition: color 0.25s ease, transform 0.25s ease;
}

.wwww-button:hover .wwww-button__icon {
	color: #fff;
	transform: translateX(3px);
}

/* --------------------------------------------------------------------
   Preview card — same markup, restyled: circular icon-only button,
   single-column checklist, smaller footprint. Clicking it advances
   the slider to make this card active.
   -------------------------------------------------------------------- */
.wwww-preview {
	flex: 0 0 var(--wwww-preview-width);
	max-width: var(--wwww-preview-width);
	background: var(--wwww-preview-bg);
	border-radius: var(--wwww-radius);
	box-shadow: 0 20px 50px -20px rgba(17, 19, 21, 0.2);
	overflow: hidden;
	cursor: pointer;
}

.wwww-preview .wwww-card {
	padding: 44px 36px;
}

.wwww-preview .wwww-card__title {
	font-size: 21px;
}

.wwww-preview .wwww-card__checklist {
	grid-template-columns: 1fr;
}

.wwww-preview .wwww-button {
	width: 46px;
	height: 46px;
	padding: 0;
	justify-content: center;
	border-radius: 50%;
}

.wwww-preview .wwww-button__text {
	display: none;
}

/* --------------------------------------------------------------------
   Footer: progress rail + scroll hint
   -------------------------------------------------------------------- */
.wwww-footer {
	position: relative;
	z-index: 1;
	max-width: 1400px;
	margin: 44px auto 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.wwww-progress {
	position: relative;
	width: min(560px, 60%);
}

.wwww-progress__track {
	position: relative;
	height: 2px;
	background: rgba(17, 19, 21, 0.12);
	border-radius: 2px;
}

.wwww-progress__fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0%;
	background: var(--wwww-accent);
	border-radius: 2px;
	transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wwww-progress__dot {
	position: absolute;
	top: 50%;
	left: 0%;
	width: 12px;
	height: 12px;
	background: #fff;
	border: 2px solid var(--wwww-accent);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wwww-progress__numbers {
	display: flex;
	justify-content: space-between;
	margin-top: 14px;
}

.wwww-progress__num {
	font-size: 15px;
	font-weight: 700;
	color: rgba(17, 19, 21, 0.28);
	cursor: pointer;
	transition: color 0.3s ease;
}

.wwww-progress__num.is-active {
	color: var(--wwww-accent);
}

.wwww-scroll-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wwww-muted);
	white-space: nowrap;
	transition: opacity 0.4s ease;
}

.wwww-scroll-hint__dot {
	animation: wwww-scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes wwww-scroll-bounce {
	0%, 100% { transform: translateY(0); opacity: 1; }
	50% { transform: translateY(5px); opacity: 0.4; }
}

.wwww-section.is-scrolled .wwww-scroll-hint {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.wwww-cards-track,
	.wwww-progress__fill,
	.wwww-progress__dot {
		transition: none !important;
	}
	.wwww-scroll-hint__dot {
		animation: none !important;
	}
}

/* ==========================================================================
   Responsive — below this breakpoint the sliding track mechanic is
   disabled entirely (wheel/scroll navigation too); the section
   becomes a simple stacked, tappable layout.
   ========================================================================== */
@media (max-width: 900px) {

	.wwww-section {
		padding: 56px 0 44px;
	}

	.wwww-header {
		padding-left: 20px;
		padding-right: 20px;
	}

	.wwww-cards-viewport {
		overflow: hidden;
	}

	.wwww-cards-track {
		width: 100%;
		transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.wwww-pair {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.wwww-primary {
		grid-template-columns: 1fr;
		min-height: 0;
		background: transparent;
		box-shadow: none;
		border-radius: 0;
		overflow: visible;
	}

	.wwww-image-frame {
		aspect-ratio: 16 / 10;
		width: 100%;
		border-radius: 0;
	}

	.wwww-card {
		padding: 28px 20px;
	}

	.wwww-card__checklist {
		grid-template-columns: 1fr;
	}

	.wwww-preview {
		display: none; /* Only the active card shows on mobile — swipe or progress numbers navigate instead of a peeking panel. */
	}

	.wwww-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-top: 28px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.wwww-progress {
		width: 100%;
	}

	.wwww-scroll-hint {
		display: none;
	}
}

@media (max-width: 520px) {
	.wwww-heading {
		font-size: 26px;
	}

	.wwww-card__title {
		font-size: 21px;
	}
}

.wwww-cards-viewport {
	touch-action: pan-y;
}
