/* ============================================================
   About page - Hebrew
   Loaded after checker-new.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 story beside
   its sticky title, three facts, one dark sentence, four principles, the people, the services as
   links and a dark closing card. Every rule is scoped under .ab (the page <main>).
   ============================================================ */

/* ---------- Shared ---------- */

/* The frame lines run above every panel, so a photo or a white cell never hides one */
.ab .acn-sec::before {
	z-index: 3;
}

/* A section right after a dark block tucks under its rounded foot */
.ab-tuck {
	margin-top: calc(-1 * clamp(20px, 3vw, 32px));
	padding-top: calc(var(--acn-gap) + clamp(20px, 3vw, 32px));
}

.ab .ab-btn--line {
	border: 1px solid var(--acn-line);
	background: #ffffff;
	color: var(--acn-ink);
}

.ab .ab-btn--line:hover {
	background: #ececf1;
	color: var(--acn-ink);
}

.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 team's faces
   ============================================================ */

/* 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);
}

/* The page name after a short purple line */
.ab .ab-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
	color: var(--acn-accent);
	font-size: 0.9375rem;
	font-weight: 500;
}

.ab .ab-eyebrow::before {
	content: "";
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: var(--acn-accent);
}

.ab .ab-hero__title {
	max-width: 15em;
	color: var(--acn-ink);
	font-size: clamp(2.5rem, 1.55rem + 3.1vw, 4.5rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.ab .ab-hero__title span {
	display: block;
	color: var(--acn-muted);
	font-weight: 400;
}

/* The lead on the start side, the buttons at the end of the same row */
.ab-hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px 48px;
	margin-top: clamp(32px, 4vw, 48px);
}

.ab .ab-hero__lead {
	max-width: 36em;
	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's faces: one row of small portraits, the caption beside them */
.ab .ab-team-fig {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	margin-block: 0;
	padding-block: clamp(24px, 3vw, 36px);
}

.ab-faces {
	display: grid;
	flex: 0 1 auto;
	grid-template-columns: repeat(8, minmax(0, 104px));
	gap: 10px;
}

.ab .ab-faces__cap {
	flex: 0 0 auto;
	max-width: 12em;
	color: var(--acn-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.ab .ab-faces__cell {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 14px;
	background: var(--acn-soft);
	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: 1023px) {
	.ab .ab-team-fig {
		flex-direction: column;
		align-items: flex-start;
	}

	.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));
	}
}

@media (prefers-reduced-motion: reduce) {
	.ab .ab-faces__cell {
		transition: none;
	}
}

/* ============================================================
   2. Why we are here: the title stays while the story reads
   ============================================================ */

.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-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;
}

/* Three facts in cells divided by the frame's own lines */
.ab-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-inline: 0;
}

.ab .ab-facts li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: clamp(24px, 3vw, 36px) var(--acn-pad);
	border-inline-start: 1px solid var(--acn-line);
}

.ab .ab-facts li:first-child {
	border-inline-start: 0;
}

.ab .ab-facts__big {
	color: var(--acn-accent);
	font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.ab .ab-facts__text {
	color: var(--acn-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* ============================================================
   3. Dark: one sentence that says how we see every finding
   ============================================================ */

.ab .ab-quote {
	padding-block: clamp(96px, 11vw, 160px);
}

.ab .ab-quote__fig {
	position: relative;
	max-width: 980px;
	margin: 0 auto;
	text-align: center;
}

.ab .ab-quote__mark {
	display: block;
	height: 0.55em;
	margin-bottom: 8px;
	color: var(--acn-accent-light);
	font-size: clamp(5rem, 4rem + 4vw, 8rem);
	font-weight: 600;
	line-height: 1;
}

.ab .ab-quote__text {
	margin: 0;
}

.ab .ab-quote__text p {
	color: #ffffff;
	font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.ab .ab-quote__text span {
	display: block;
	color: var(--acn-accent-light);
}

.ab .ab-quote__note {
	max-width: 34em;
	margin: 28px auto 0;
	color: var(--acn-on-dark-muted);
	font-size: 1.0625rem;
	line-height: 1.7;
}

/* ============================================================
   4. What guides us: four principles in a ruled grid
   ============================================================ */

.ab-values__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding-inline: 0;
	list-style: none;
}

.ab .ab-value {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: clamp(18px, 2.4vw, 32px);
	padding: clamp(28px, 3.6vw, 48px) var(--acn-pad);
	background: #ffffff;
}

.ab .ab-value:nth-child(even) {
	border-inline-start: 1px solid var(--acn-line);
}

.ab .ab-value:nth-child(n + 3) {
	border-top: 1px solid var(--acn-line);
}

.ab .ab-value__num {
	grid-row: 1 / span 2;
	color: var(--acn-accent);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.5;
}

.ab .ab-value__title {
	margin-bottom: 10px;
	color: var(--acn-ink);
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	font-weight: 500;
	line-height: 1.3;
}

.ab .ab-value__text {
	max-width: 32em;
	color: var(--acn-muted);
	font-size: 1rem;
	line-height: 1.7;
}

/* ============================================================
   5b. Out of the office: the text beside a gallery that runs to the frame line
   ============================================================ */

.ab .ab-out {
	padding-block: clamp(32px, 4vw, 56px);
}

.ab-out__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	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);
}

/* The photo runs from the text to the frame line */
.ab .ab-out__photo {
	position: relative;
	min-height: clamp(380px, 38vw, 540px);
	margin: 0;
	overflow: hidden;
	border-inline-start: 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: 55% 40%;
}

/* ============================================================
   6. What we do: the services, as links in a ruled grid
   ============================================================ */

.ab-do__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-inline: 0;
	list-style: none;
}

.ab .ab-do__grid li {
	display: flex;
	border-inline-start: 1px solid var(--acn-line);
	background: #ffffff;
}

.ab .ab-do__grid li:nth-child(3n + 1) {
	border-inline-start: 0;
}

.ab .ab-do__grid li:nth-child(n + 4) {
	border-top: 1px solid var(--acn-line);
}

.ab .ab-do__link {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: clamp(24px, 3vw, 36px) var(--acn-pad);
	padding-inline-end: calc(var(--acn-pad) + 28px);
	color: var(--acn-ink);
	text-decoration: none;
	transition: background 0.25s ease;
}

.ab .ab-do__link:hover {
	background: #faf7fe;
	color: var(--acn-ink);
}

.ab .ab-do__link:focus-visible {
	outline: 2px solid var(--acn-accent);
	outline-offset: -4px;
}

.ab .ab-do__title {
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.4;
}

.ab .ab-do__text {
	color: var(--acn-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.ab .ab-do__arrow {
	position: absolute;
	inset-inline-end: var(--acn-pad);
	top: clamp(26px, 3vw, 38px);
	display: grid;
	place-items: center;
	color: var(--acn-accent);
	transition: transform 0.25s var(--acn-ease);
}

.ab .ab-do__link:hover .ab-do__arrow {
	transform: translateX(-4px);
}

/* ============================================================
   7. Closing: a dark card, an invitation to talk
   ============================================================ */

.ab .ab-final {
	padding-top: clamp(48px, 6vw, 80px);
}

.ab-final__card {
	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);
	border-radius: 14px;
	background: var(--acn-dark);
	color: #ffffff;
}

.ab .ab-final__title {
	max-width: 18em;
	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__title span {
	display: block;
	margin-top: 10px;
	color: var(--acn-on-dark-muted);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	font-weight: 400;
	line-height: 1.6;
}

.ab-final__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ab .ab-final__card :focus-visible {
	outline-color: #ffffff;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 991px) {
	.ab-story__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ab-do__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ab .ab-do__grid li:nth-child(3n + 1) {
		border-inline-start: 1px solid var(--acn-line);
	}

	.ab .ab-do__grid li:nth-child(odd) {
		border-inline-start: 0;
	}

	.ab .ab-do__grid li:nth-child(n + 3) {
		border-top: 1px solid var(--acn-line);
	}

	.ab-out__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ab .ab-out__photo {
		min-height: 0;
		aspect-ratio: 3 / 2;
		border-inline-start: 0;
		border-top: 1px solid var(--acn-line);
	}
}

@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-facts,
	.ab-values__grid,
	.ab-do__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ab .ab-facts li,
	.ab .ab-facts li:first-child {
		flex-direction: row;
		align-items: baseline;
		gap: 16px;
		padding-block: 20px;
		border-inline-start: 0;
	}

	.ab .ab-facts li + li {
		border-top: 1px solid var(--acn-line);
	}

	.ab .ab-facts__big {
		min-width: 3.4em;
	}

	.ab .ab-value,
	.ab .ab-value:nth-child(even),
	.ab .ab-do__grid li,
	.ab .ab-do__grid li:nth-child(odd),
	.ab .ab-do__grid li:nth-child(3n + 1) {
		border-inline-start: 0;
	}

	.ab .ab-value + .ab-value,
	.ab .ab-do__grid li + li {
		border-top: 1px solid var(--acn-line);
	}

	.ab .ab-quote__note {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ab .ab-do__arrow,
	.ab .ab-faces__cell img {
		transition: none;
	}

	.ab .ab-faces__cell:hover img {
		transform: none;
	}
}
