/* ============================================================
   About page (global, English)
   The left-to-right port of the Hebrew about page (he/css/about.css). Loaded after base.css: the same
   frame, frame lines, dashed bands, type, buttons and tokens (--acn-*), with the about page's own layout:
   a light hero over the team's faces, the mission beside its sticky title, four figures, one dark
   sentence, who we build for beside three photos, WordCamp, three steps, six free tools as links and a
   dark closing card. Every rule is scoped under .ab (the page <main>).
   ============================================================ */

/* ---------- Shared ---------- */

/* The purple accent word in a title */
.ab em {
	color: var(--acn-accent);
	font-style: normal;
}

.ab .ab-btn--outline {
	border: 1px solid rgba(255, 255, 255, 0.32);
	background: transparent;
	color: #ffffff;
}

.ab .ab-btn--outline:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

/* ============================================================
   1. Hero: the line, then the faces behind the fixes
   ============================================================ */

/* Under the fixed bar */
.ab .ab-hero {
	padding-top: calc(68px + clamp(48px, 7vw, 104px));
	padding-bottom: 0;
}

.ab-hero__head {
	padding-bottom: clamp(48px, 6vw, 80px);
}

.ab .ab-eyebrow {
	margin-bottom: 24px;
	color: var(--acn-accent);
	font-size: 0.9375rem;
	font-weight: 500;
}

.ab .ab-hero__title {
	max-width: 12em;
	color: var(--acn-ink);
	font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

/* The lead at the start of the row, the buttons at its end */
.ab-hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px 48px;
	margin-top: clamp(28px, 3.6vw, 44px);
}

.ab .ab-hero__lead {
	max-width: 34em;
	color: var(--acn-muted);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.7;
	text-wrap: pretty;
}

.ab-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* The team: the caption at the start, one row of portraits at the end */
.ab .ab-team {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	margin: 0 auto;
	padding-block: clamp(24px, 3vw, 36px);
}

.ab .ab-team__cap {
	flex: 0 1 17em;
	min-width: 0;
}

.ab .ab-team__title {
	color: var(--acn-ink);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.35;
}

.ab .ab-team__text {
	margin-top: 6px;
	color: var(--acn-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.ab-faces {
	display: grid;
	flex: 0 1 auto;
	grid-template-columns: repeat(8, minmax(0, 96px));
	gap: 10px;
}

.ab .ab-faces__cell {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 14px;
	background: #c9b2f1;
	transition: transform 0.4s var(--acn-ease);
}

.ab .ab-faces__cell img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

.ab .ab-faces__cell:hover {
	transform: translateY(-4px);
}

@media (max-width: 1199px) {
	.ab .ab-team {
		flex-direction: column;
		align-items: flex-start;
	}

	.ab .ab-team__cap {
		flex: none;
		max-width: 34em;
	}

	.ab-faces {
		width: 100%;
		grid-template-columns: repeat(8, minmax(0, 1fr));
		gap: 8px;
	}
}

@media (max-width: 599px) {
	.ab-faces {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ============================================================
   2. Our mission: the title stays while the story reads, then the figures
   ============================================================ */

.ab .ab-story {
	padding-bottom: 0;
}

.ab-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: start;
	gap: clamp(32px, 6vw, 96px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

@media (min-width: 992px) {
	.ab-story__head {
		position: sticky;
		top: 120px;
	}
}

.ab .ab-story__title {
	font-size: clamp(1.875rem, 1.35rem + 1.5vw, 2.625rem);
	line-height: 1.18;
}

.ab-story__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	color: var(--acn-muted);
	font-size: 1.0625rem;
	line-height: 1.8;
}

.ab .ab-story__lead {
	color: var(--acn-ink);
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	font-weight: 500;
	line-height: 1.55;
	text-wrap: pretty;
}

.ab .ab-story__sub {
	margin-top: 20px;
	color: var(--acn-muted);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.ab .ab-story__body strong {
	color: var(--acn-ink);
	font-weight: 500;
}

/* The figures: a title row, then four cells divided by the frame's own lines */
.ab .ab-stats {
	padding-inline: 0;
}

.ab .ab-stats__intro {
	padding: 18px var(--acn-pad);
	border-bottom: 1px solid var(--acn-line);
	color: var(--acn-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.ab .ab-stats__intro b {
	color: var(--acn-ink);
	font-weight: 500;
}

.ab-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ab .ab-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: clamp(24px, 3vw, 40px) clamp(20px, 2.6vw, 40px);
	border-left: 1px solid var(--acn-line);
}

.ab .ab-stat:first-child {
	border-left: 0;
	padding-left: var(--acn-pad);
}

.ab .ab-stat__n {
	margin-bottom: 6px;
	color: var(--acn-accent);
	font-size: clamp(2.25rem, 1.7rem + 1.6vw, 3.25rem);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.05;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.ab .ab-stat__label {
	color: var(--acn-ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
}

.ab .ab-stat__sub {
	color: var(--acn-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* ============================================================
   3. Dark: what drives us, in one sentence
   ============================================================ */

.ab .ab-drive {
	padding-block: clamp(96px, 11vw, 160px);
}

.ab .ab-drive__inner {
	max-width: 1000px;
	margin: 0 auto;
	text-align: center;
}

.ab .ab-drive__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
	color: var(--acn-accent-light);
	font-size: 0.9375rem;
	font-weight: 500;
}

.ab .ab-drive__kicker::before,
.ab .ab-drive__kicker::after {
	content: "";
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.ab .ab-drive__text {
	color: #ffffff;
	font-size: clamp(1.875rem, 1.15rem + 2.5vw, 3.25rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.ab .ab-drive__text span {
	color: var(--acn-accent-light);
}

.ab .ab-drive__note {
	max-width: 34em;
	margin: 28px auto 0;
	color: var(--acn-on-dark-muted);
	font-size: 1.125rem;
	line-height: 1.7;
}

/* ============================================================
   4. Who we build for: the text beside three photos that run to the frame line
   ============================================================ */

/* Tucked under the dark block; the WordCamp band follows on the same soft ground */
.ab .ab-people {
	padding-top: calc(clamp(40px, 5vw, 72px) + clamp(20px, 3vw, 32px));
	padding-bottom: 0;
}

.ab-people__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	padding-inline: 0;
}

.ab-people__body {
	align-self: center;
	padding: clamp(40px, 6vw, 88px) var(--acn-pad);
}

.ab .ab-people__text {
	max-width: 34em;
	margin-top: 20px;
	color: var(--acn-muted);
	font-size: 1.0625rem;
	line-height: 1.75;
	text-wrap: pretty;
}

.ab .ab-people__body .acn-h2 + .ab-people__text {
	margin-top: 26px;
}

/* One tall photo, two stacked beside it, divided by lines */
.ab-people__photos {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	grid-template-rows: 1fr 1fr;
	gap: 1px;
	min-height: clamp(440px, 42vw, 600px);
	border-left: 1px solid var(--acn-line);
	background: var(--acn-line);
}

.ab .ab-people__photo {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--acn-soft);
}

.ab .ab-people__photo--tall {
	grid-row: 1 / span 2;
}

.ab .ab-people__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--acn-ease);
}

.ab .ab-people__photo--tall img {
	object-position: 50% 30%;
}

.ab .ab-people__photo:hover img {
	transform: scale(1.03);
}

/* ============================================================
   5. Out of the office: the photo from the frame line to the text
   ============================================================ */

.ab .ab-out {
	padding-block: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 72px);
}

.ab-out__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	padding-inline: 0;
}

.ab-out__body {
	align-self: center;
	padding: clamp(40px, 6vw, 88px) var(--acn-pad);
}

.ab .ab-out__text {
	max-width: 34em;
	margin-top: 22px;
	color: var(--acn-muted);
	font-size: 1.0625rem;
	line-height: 1.75;
	text-wrap: pretty;
}

.ab .ab-out__place {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	padding: 8px 14px;
	border: 1px solid var(--acn-line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--acn-ink);
	font-size: 0.9375rem;
	font-weight: 500;
}

.ab .ab-out__place svg {
	color: var(--acn-accent);
}

.ab .ab-out__photo {
	position: relative;
	min-height: clamp(380px, 38vw, 540px);
	margin: 0;
	overflow: hidden;
	border-right: 1px solid var(--acn-line);
	background: var(--acn-soft);
}

.ab .ab-out__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 50% 35%;
}

/* ============================================================
   6. How it works: three steps in a ruled row
   ============================================================ */

.ab .ab-steps {
	padding-bottom: clamp(56px, 6vw, 88px);
}

.ab .ab-steps__title {
	font-size: clamp(1.875rem, 1.35rem + 1.5vw, 2.625rem);
	line-height: 1.15;
}

.ab-steps__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-inline: 0;
	counter-reset: none;
}

.ab .ab-step {
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 44px);
	border-left: 1px solid var(--acn-line);
	background: #ffffff;
}

.ab .ab-step:first-child {
	border-left: 0;
	padding-left: var(--acn-pad);
}

.ab .ab-step__top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: clamp(24px, 2.6vw, 36px);
}

.ab .ab-step__num {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f1eafc;
	color: var(--acn-accent);
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.ab .ab-step__tag {
	color: var(--acn-muted);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.ab .ab-step__title {
	margin-bottom: 12px;
	color: var(--acn-ink);
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	font-weight: 500;
	line-height: 1.3;
}

.ab .ab-step__text {
	color: var(--acn-muted);
	font-size: 1rem;
	line-height: 1.7;
}

/* ============================================================
   7. For the community: six free tools, as links in a ruled grid
   ============================================================ */

.ab .ab-tools {
	padding-bottom: clamp(56px, 6vw, 88px);
}

.ab-tools__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: end;
	gap: 24px clamp(32px, 6vw, 96px);
	margin-bottom: 56px;
}

.ab .ab-tools__head .acn-h2 {
	font-size: clamp(1.875rem, 1.35rem + 1.5vw, 2.625rem);
	line-height: 1.15;
}

.ab .ab-tools__intro {
	max-width: 34em;
	color: var(--acn-muted);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.ab-tools__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-inline: 0;
}

.ab .ab-tools__grid li {
	display: flex;
	border-left: 1px solid var(--acn-line);
	background: #ffffff;
}

.ab .ab-tools__grid li:nth-child(3n + 1) {
	border-left: 0;
}

.ab .ab-tools__grid li:nth-child(n + 4) {
	border-top: 1px solid var(--acn-line);
}

.ab .ab-tool {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 44px);
	color: var(--acn-ink);
	text-decoration: none;
	transition: background-color 0.25s ease;
}

.ab .ab-tools__grid li:nth-child(3n + 1) .ab-tool {
	padding-left: var(--acn-pad);
}

.ab .ab-tool:hover {
	background: #faf7fe;
	color: var(--acn-ink);
}

.ab .ab-tool:focus-visible {
	outline: 2px solid var(--acn-accent);
	outline-offset: -4px;
}

.ab .ab-tool__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 10px;
	border-radius: 12px;
	background: #f1eafc;
	color: var(--acn-accent);
}

.ab .ab-tool__title {
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.4;
}

.ab .ab-tool__text {
	color: var(--acn-muted);
	font-size: 0.9375rem;
	line-height: 1.65;
}

.ab .ab-tool__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 12px;
	color: var(--acn-accent);
	font-size: 0.9375rem;
	font-weight: 500;
}

.ab .ab-tool__go svg {
	transition: transform 0.25s var(--acn-ease);
}

.ab .ab-tool:hover .ab-tool__go svg {
	transform: translateX(4px);
}

/* ============================================================
   8. Closing: a dark card, an invitation to talk
   ============================================================ */

.ab .ab-final {
	padding-block: 0 clamp(48px, 6vw, 80px);
}

.ab-final__card {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px 48px;
	margin-block: clamp(20px, 3vw, 32px);
	padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
	overflow: hidden;
	border-radius: 14px;
	background: var(--acn-dark);
	color: #ffffff;
}

/* A soft purple glow in the far corner */
.ab-final__card::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 60%;
	height: 180%;
	background: radial-gradient(closest-side, rgba(142, 86, 220, 0.28), transparent);
	pointer-events: none;
}

.ab-final__copy,
.ab-final__actions {
	position: relative;
}

.ab-final__copy {
	flex: 1 1 28em;
	max-width: 40em;
}

.ab .ab-final__title {
	color: #ffffff;
	font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.ab .ab-final__lead {
	margin-top: 14px;
	color: var(--acn-on-dark-muted);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.6;
	text-wrap: pretty;
}

.ab-final__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ab .ab-final__card :focus-visible {
	outline-color: #ffffff;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1199px) {
	.ab-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ab .ab-stat:nth-child(odd) {
		border-left: 0;
		padding-left: var(--acn-pad);
	}

	.ab .ab-stat:nth-child(n + 3) {
		border-top: 1px solid var(--acn-line);
	}
}

@media (max-width: 991px) {
	.ab-story__grid,
	.ab-tools__head {
		grid-template-columns: minmax(0, 1fr);
	}

	.ab-people__grid,
	.ab-out__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ab-people__photos {
		min-height: 0;
		aspect-ratio: 16 / 11;
		border-left: 0;
		border-top: 1px solid var(--acn-line);
	}

	/* The photo after the text, as on every other two-column row */
	.ab .ab-out__photo {
		order: 2;
		min-height: 0;
		aspect-ratio: 3 / 2;
		border-right: 0;
		border-top: 1px solid var(--acn-line);
	}

	.ab-steps__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ab .ab-step,
	.ab .ab-step:first-child {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: 20px;
		padding-left: var(--acn-pad);
		border-left: 0;
	}

	.ab .ab-step + .ab-step {
		border-top: 1px solid var(--acn-line);
	}

	.ab .ab-step__top {
		display: contents;
	}

	.ab .ab-step__num {
		grid-row: 1 / span 3;
	}

	.ab .ab-step__tag {
		align-self: center;
		margin-bottom: 8px;
	}

	.ab .ab-step__title,
	.ab .ab-step__text {
		grid-column: 2;
	}

	.ab-tools__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ab .ab-tools__grid li,
	.ab .ab-tools__grid li:nth-child(3n + 1) {
		border-left: 1px solid var(--acn-line);
	}

	.ab .ab-tools__grid li:nth-child(odd) {
		border-left: 0;
	}

	.ab .ab-tools__grid li:nth-child(n + 3) {
		border-top: 1px solid var(--acn-line);
	}

	.ab .ab-tools__grid li .ab-tool,
	.ab .ab-tools__grid li:nth-child(3n + 1) .ab-tool {
		padding-left: clamp(24px, 3vw, 44px);
	}

	.ab .ab-tools__grid li:nth-child(odd) .ab-tool {
		padding-left: var(--acn-pad);
	}
}

@media (max-width: 767px) {
	.ab .ab-hero {
		padding-top: calc(68px + 40px);
	}

	.ab-hero__actions,
	.ab-final__actions {
		width: 100%;
	}

	.ab-hero__actions .acn-btn,
	.ab-final__actions .acn-btn {
		flex: 1 1 auto;
	}

	.ab-stats__grid,
	.ab-tools__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ab .ab-stat,
	.ab .ab-stat:first-child,
	.ab .ab-stat:nth-child(odd) {
		padding: 22px var(--acn-pad);
		border-left: 0;
	}

	.ab .ab-stat + .ab-stat {
		border-top: 1px solid var(--acn-line);
	}

	.ab-people__photos {
		aspect-ratio: 4 / 5;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: 1.5fr 1fr;
	}

	.ab .ab-people__photo--tall {
		grid-row: auto;
		grid-column: 1 / span 2;
	}

	.ab .ab-step,
	.ab .ab-step:first-child {
		column-gap: 16px;
	}

	.ab .ab-tools__grid li,
	.ab .ab-tools__grid li:nth-child(odd),
	.ab .ab-tools__grid li:nth-child(3n + 1) {
		border-left: 0;
	}

	.ab .ab-tools__grid li + li {
		border-top: 1px solid var(--acn-line);
	}

	.ab .ab-tools__grid li .ab-tool,
	.ab .ab-tools__grid li:nth-child(odd) .ab-tool,
	.ab .ab-tools__grid li:nth-child(3n + 1) .ab-tool {
		padding-left: var(--acn-pad);
		padding-right: var(--acn-pad);
	}

	.ab-tools__head {
		margin-bottom: 40px;
	}

	.ab .ab-drive__note {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ab .ab-faces__cell,
	.ab .ab-people__photo img,
	.ab .ab-tool__go svg {
		transition: none;
	}

	.ab .ab-faces__cell:hover,
	.ab .ab-people__photo:hover img {
		transform: none;
	}
}
