/*
 * Ayala Barak – main stylesheet.
 *
 * Built on the Yair Nitzani system (Paris Society proportions): small type,
 * generous whitespace, 1px lines, slow image zooms. Black and white, with
 * one warm accent (#ddd2ce) used for fills, lines and the menu overlay –
 * never for text on white (too light to read).
 */

/* ---------- Fonts ---------- */

@font-face {
	font-family: "Cooperative";
	src: url("../fonts/cooperative-regular.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

/* Google Sans, self-hosted (SIL Open Font License): Hebrew and Latin subsets only. */
@font-face {
	font-family: "Google Sans";
	src: url("../fonts/google-sans-hebrew-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: "Google Sans";
	src: url("../fonts/google-sans-latin-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Google Sans";
	src: url("../fonts/google-sans-hebrew-500.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: "Google Sans";
	src: url("../fonts/google-sans-latin-500.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Google Sans";
	src: url("../fonts/google-sans-hebrew-700.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: "Google Sans";
	src: url("../fonts/google-sans-latin-700.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
	--black: #000;
	--white: #fff;
	--accent: #ddd2ce;
	--accent-soft: #f4f0ee;  /* image placeholders, quiet backgrounds */
	--hover: #8c817d;        /* text hover on white: a deeper tone of the accent */
	--text: #676767;
	--text-on-dark: #c8c8c8;
	--line: #e3e3e3;         /* dividers */
	--control: #c8c8c8;      /* outlines of chips, fields, round buttons */

	--font-body: "Google Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--font-display: "Cooperative", var(--font-body);

	--pad-x: 80px;
	--pad-section: 120px;
	--gap: 40px;
	--grid-gap: 24px;
	--header-pad: 32px 60px;
	--header-h: 140px;       /* rendered height of the header row (logo 76px + padding) */
	--bar-h: 72px;           /* the black bar once scrolled */

	--ease: ease;
	--ease-drawer: cubic-bezier(.83, 0, .17, 1);
	--ease-burger: cubic-bezier(.63, .29, .17, 1.345);
}

@media (max-width: 1199px) {
	:root { --pad-x: 48px; --pad-section: 96px; --grid-gap: 16px; }
}

@media (max-width: 767px) {
	:root { --pad-x: 20px; --pad-section: 64px; --gap: 24px; --grid-gap: 10px; --header-pad: 14px 20px; --header-h: 80px; --bar-h: 60px; }
}

/* ---------- Reset ---------- */

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

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 28px;
	letter-spacing: .01em;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

body.ab-menu-open, body.ab-lock { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--black); }

/* Phone numbers are marked dir="ltr" so the digits read right; on the Hebrew
   site they still line up on the right like the text around them. */
[dir="ltr"] { unicode-bidi: isolate; }
:root[dir="rtl"] [dir="ltr"] { text-align: right; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.ab-skip { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 300; padding: 8px 16px; background: var(--white); color: var(--black); transform: translateY(-300%); }
.ab-skip:focus { transform: none; }

:focus-visible { outline: 1px solid var(--black); outline-offset: 4px; }

/* ---------- Type ---------- */

.ab-title, .ab-h1, .ab-h2 {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--black);
	letter-spacing: 0;
	text-wrap: balance;
}

.ab-title { font-size: 45px; line-height: 56px; }
.ab-h1 { font-size: 56px; line-height: 64px; }
.ab-h2 { font-size: 28px; line-height: 40px; }

@media (max-width: 1199px) {
	.ab-title { font-size: 36px; line-height: 46px; }
	.ab-h1 { font-size: 44px; line-height: 52px; }
}

@media (max-width: 767px) {
	.ab-title { font-size: 30px; line-height: 40px; }
	.ab-h1 { font-size: 36px; line-height: 44px; }
	.ab-h2 { font-size: 22px; line-height: 32px; }
}

.ab-eyebrow { display: block; font-size: 13px; line-height: 22px; letter-spacing: .04em; color: var(--text); }
.ab-center { text-align: center; }

.ab-content > * + * { margin-top: 1.2em; }
.ab-content h2, .ab-content h3 { font-family: var(--font-body); font-weight: 500; color: var(--black); letter-spacing: 0; margin-top: 2em; font-size: 18px; line-height: 28px; }
.ab-content h2 + *, .ab-content h3 + * { margin-top: .5em; }
.ab-content a:not(.ab-btn) { color: var(--black); border-bottom: 1px solid currentColor; transition: border-color .25s var(--ease); }
.ab-content a:not(.ab-btn):hover { border-color: transparent; }
.ab-content ul, .ab-content ol { padding-inline-start: 1.2em; }

/* ---------- Layout ---------- */

.ab-main { padding-top: var(--header-h); }

.ab-container { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: var(--pad-x); }
.ab-narrow { max-width: calc(760px + var(--pad-x) * 2); }
.ab-section { padding-block: var(--pad-section); }
.ab-section__heading { margin-bottom: 48px; }
@media (max-width: 767px) { .ab-section__heading { margin-bottom: 32px; } }

/* Full-bleed image filling its (positioned) parent. */
.ab-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ---------- Buttons ---------- */

/* Outlined button; the accent fill rises from the bottom on hover. */
.ab-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	padding: 9px 32px; overflow: hidden; cursor: pointer;
	border: 1px solid var(--black); border-radius: 5px; background: transparent;
	color: var(--black); font-family: var(--font-body); font-size: 13px; font-weight: 500;
	line-height: 22px; letter-spacing: .04em;
	transition: color .25s var(--ease), border-color .25s var(--ease);
	transform: translateZ(0);
}
.ab-btn::before {
	content: ""; position: absolute; inset: 0; background: var(--accent);
	transform: translateY(100%); transition: transform .25s var(--ease);
}
.ab-btn > span { position: relative; }
.ab-btn:active { transform: scale(.98); }

@media (hover: hover) {
	.ab-btn:hover { color: var(--black); border-color: var(--accent); }
	.ab-btn:hover::before { transform: translateY(0); }
}

* + .ab-btn { margin-top: 40px; }

/* Quiet text link with an arrow that slides on hover. */
.ab-text-btn {
	position: relative; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer;
	color: var(--black); font-size: 13px; font-weight: 500; line-height: 22px; letter-spacing: .04em;
	transition: color .25s var(--ease);
}
.ab-text-btn .ab-icon--arrow { width: 16px; height: 10px; margin-inline-start: 12px; transition: margin .25s var(--ease); }
.ab-text-btn--line { padding-bottom: 3px; }
.ab-text-btn--line::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 1px; height: 1px;
	background: currentColor; transform-origin: right center;
	transition: transform .3s cubic-bezier(.75, 0, .2, 1);
}

@media (hover: hover) {
	.ab-text-btn:hover { color: var(--hover); }
	.ab-text-btn:hover .ab-icon--arrow { margin-inline-start: 18px; }
	.ab-text-btn--line:hover::after { transform: scaleX(0); transform-origin: left center; }
}

.ab-round-btn {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--control); border-radius: 50%; background: transparent; color: var(--black); cursor: pointer;
	transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
}
.ab-round-btn .ab-icon { width: 16px; height: 10px; }
.ab-round-btn--prev .ab-icon { transform: scaleX(-1); }
.ab-round-btn:disabled { opacity: .3; cursor: default; }
.ab-round-btn--light { border-color: rgba(255, 255, 255, .5); color: var(--white); }
@media (hover: hover) {
	.ab-round-btn:not(:disabled):hover { border-color: var(--black); }
	.ab-round-btn--light:not(:disabled):hover { border-color: var(--white); background: var(--white); color: var(--black); }
}

/* ---------- Header ---------- */

.ab-header { position: absolute; inset-inline: 0; top: 0; z-index: 20; color: var(--black); }

.ab-header__inner {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	padding: var(--header-pad);
}

.ab-header__side { display: flex; align-items: center; gap: 28px; }
.ab-header__side--menu { justify-content: flex-end; gap: 30px; }

.ab-header__link { font-size: 13px; font-weight: 500; line-height: 22px; letter-spacing: .04em; transition: color .25s var(--ease); }
.ab-header__cta { display: inline-flex; align-items: center; }
.ab-header__cta .ab-icon--arrow { width: 14px; height: 9px; margin-inline-start: 10px; transition: margin .25s var(--ease); }

.ab-logo { display: block; line-height: 0; transition: opacity .25s var(--ease); }
.ab-logo__svg { display: block; width: auto; height: 76px; overflow: visible; transition: height .35s var(--ease); } /* the rings' strokes reach past the drawing's frame */

.ab-header .ab-socials { gap: 16px; }

@media (hover: hover) {
	.ab-header__link:hover, .ab-header .ab-socials__link:hover { color: var(--hover); opacity: 1; }
	.ab-header__cta:hover .ab-icon--arrow { margin-inline-start: 16px; }
	.ab-logo:hover { opacity: .7; }
}

/* Hamburger: three 1px lines that step in on hover. */
.ab-burger {
	display: flex; padding: 12px; margin: -12px; border: 0; background: none; cursor: pointer;
}
.ab-burger__lines { position: relative; display: block; width: 22px; height: 12px; }
.ab-burger__lines > span {
	position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
	transition: all .25s var(--ease-burger);
}
.ab-burger__lines > span:nth-child(1) { top: 0; }
.ab-burger__lines > span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.ab-burger__lines > span:nth-child(3) { bottom: 0; }

@media (hover: hover) {
	.ab-burger:hover .ab-burger__lines > span:nth-child(2) { right: 6px; }
	.ab-burger:hover .ab-burger__lines > span:nth-child(3) { right: 12px; }
}

@media (max-width: 991px) {
	.ab-header__side--contact > :not(.ab-socials) { display: none; }
	.ab-header__cta { display: none; }
	.ab-logo__svg { height: 64px; }
}

@media (max-width: 767px) {
	.ab-header__side--menu { gap: 22px; }
	.ab-header .ab-socials { gap: 14px; }
	.ab-logo__svg { height: 52px; }
}

/* Slim black bar once the page is scrolled (classes set in main.js). */
.ab-header.is-fixed { position: fixed; background: var(--black); color: var(--white); transform: translateY(-100%); }
.ab-header.is-fixed .ab-header__inner { padding-block: 12px; }
.ab-header.is-fixed .ab-logo__svg { height: 48px; }
.ab-header.is-ready { transition: transform .35s var(--ease); }
.ab-header.is-shown { transform: translateY(0); }
@media (hover: hover) {
	.ab-header.is-fixed .ab-header__link:hover, .ab-header.is-fixed .ab-socials__link:hover { color: var(--accent); }
}
@media (max-width: 767px) {
	.ab-header.is-fixed .ab-header__inner { padding-block: 9px; }
	.ab-header.is-fixed .ab-logo__svg { height: 40px; }
}

/* ---------- Drawer menu ---------- */

.ab-overlay {
	position: fixed; inset: 0; z-index: 90; background: rgba(221, 210, 206, .8);
	opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}

.ab-drawer {
	position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
	display: flex; flex-direction: column; justify-content: space-between;
	width: 100%; max-width: 440px; padding: 60px; overflow-y: auto;
	background: var(--black); color: var(--white);
	transform: translateX(-100%); visibility: hidden;
	transition: transform .75s var(--ease-drawer), visibility 0s linear .75s;
}

.ab-drawer__close {
	position: relative; width: 20px; height: 20px; padding: 0; margin: -10px 0 0 -10px; box-sizing: content-box;
	border: 10px solid transparent; background: none; cursor: pointer; align-self: flex-start;
}
.ab-drawer__close::before, .ab-drawer__close::after {
	content: ""; position: absolute; top: 50%; left: 0; width: 20px; height: 1px; background: var(--white);
	transition: background .25s var(--ease);
}
.ab-drawer__close::before { transform: rotate(45deg); }
.ab-drawer__close::after { transform: rotate(-45deg); }
.ab-drawer__close:hover::before, .ab-drawer__close:hover::after { background: var(--accent); }

.ab-drawer__nav { padding-block: 48px; }
.ab-drawer__home { display: inline-block; margin-bottom: 28px; line-height: 0; transition: opacity .25s var(--ease); }
.ab-drawer__home .ab-logo__svg { height: 84px; }
.ab-drawer__home:hover { opacity: .7; }
.ab-drawer__list { list-style: none; }
.ab-drawer__list a {
	display: inline-block; padding: 5px 0;
	font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 36px;
	transition: opacity .25s var(--ease), color .25s var(--ease);
}
.ab-drawer__list .current-menu-item > a { color: var(--accent); }

@media (hover: hover) and (min-width: 1200px) {
	.ab-drawer__list:hover a { opacity: .25; }
	.ab-drawer__list a:hover { opacity: 1; }
}

.ab-drawer__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--text-on-dark); font-size: 14px; }
.ab-drawer__foot a { transition: color .25s var(--ease); }
.ab-drawer__foot a:hover { color: var(--white); }
.ab-drawer__foot .ab-socials { margin-top: 20px; }

/* Items rise in one after another as the drawer opens. */
.ab-drawer__home, .ab-drawer__list li, .ab-drawer__foot { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }

.ab-menu-open .ab-overlay { opacity: 1; visibility: visible; }
.ab-menu-open .ab-drawer { transform: translateX(0); visibility: visible; transition: transform .75s var(--ease-drawer), visibility 0s; }
.ab-menu-open .ab-drawer__home, .ab-menu-open .ab-drawer__list li, .ab-menu-open .ab-drawer__foot { opacity: 1; transform: none; }
.ab-menu-open .ab-drawer__home { transition-delay: .3s; }
.ab-menu-open .ab-drawer__list li:nth-child(1) { transition-delay: .35s; }
.ab-menu-open .ab-drawer__list li:nth-child(2) { transition-delay: .4s; }
.ab-menu-open .ab-drawer__list li:nth-child(3) { transition-delay: .45s; }
.ab-menu-open .ab-drawer__list li:nth-child(4) { transition-delay: .5s; }
.ab-menu-open .ab-drawer__list li:nth-child(5) { transition-delay: .55s; }
.ab-menu-open .ab-drawer__list li:nth-child(6) { transition-delay: .6s; }
.ab-menu-open .ab-drawer__list li:nth-child(7) { transition-delay: .65s; }
.ab-menu-open .ab-drawer__list li:nth-child(n+8) { transition-delay: .7s; }
.ab-menu-open .ab-drawer__foot { transition-delay: .75s; }

@media (max-width: 767px) {
	.ab-drawer { max-width: none; padding: 24px; }
	.ab-drawer__nav { padding-block: 32px; }
}

/* ---------- Socials ---------- */

.ab-socials { display: flex; align-items: center; gap: 20px; list-style: none; }
.ab-socials li { display: flex; }
.ab-socials__link { display: flex; transition: opacity .25s var(--ease), color .25s var(--ease); }
.ab-socials .ab-icon { width: 15px; height: 15px; fill: currentColor; }
.ab-socials__link:hover { opacity: .7; }

/* ---------- Talent browser ---------- */

.ab-talent { padding-bottom: var(--pad-section); }

.ab-talent__intro { padding-block: 40px 56px; text-align: center; }
.ab-talent__intro .ab-eyebrow { margin-bottom: 12px; }
.ab-talent__lead { max-width: 640px; margin: 16px auto 0; color: var(--text); font-size: 15px; line-height: 26px; text-wrap: pretty; }
@media (max-width: 767px) { .ab-talent__intro { padding-block: 24px 32px; } }

/* Search, categories and the count. Sticks under the black bar while scrolling. */
.ab-talent__bar {
	position: sticky; top: var(--sticky-top, 0px); z-index: 10;
	/* Desktop: search on the right, categories centred, the count on the left. */
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px 32px;
	margin-bottom: 8px; padding-block: 16px; background: var(--white);
	transition: top .35s var(--ease);
}
@media (min-width: 992px) {
	.ab-talent__bar .ab-search { justify-self: start; width: 100%; max-width: 300px; }
	.ab-talent__bar .ab-chips { justify-self: center; }
	.ab-talent__count { justify-self: end; }
}
.ab-header-shown { --sticky-top: var(--bar-h); }

.ab-search { position: relative; display: flex; align-items: center; flex: 0 1 300px; }
.ab-search > .ab-icon--search { position: absolute; inset-inline-start: 0; width: 16px; height: 16px; color: var(--black); pointer-events: none; }
.ab-search input {
	width: 100%; height: 40px; padding: 0; padding-inline: 28px 28px; border: 0; border-bottom: 1px solid var(--control); border-radius: 0;
	background: transparent; color: var(--black); font: inherit; font-size: 16px; outline: 0; transition: border-color .25s var(--ease);
	-webkit-appearance: none; appearance: none;
}
.ab-search input::placeholder { color: var(--text); opacity: 1; }
.ab-search input:focus { border-color: var(--black); }
.ab-search input::-webkit-search-cancel-button { display: none; }
.ab-search__clear {
	position: absolute; inset-inline-end: -8px; display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--black); cursor: pointer;
}
.ab-search__clear .ab-icon { width: 10px; height: 10px; }
.ab-search__clear[hidden] { display: none; }

.ab-chips { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.ab-chip {
	display: inline-block; padding: 6px 16px; border: 1px solid var(--control); border-radius: 5px; white-space: nowrap; cursor: pointer;
	color: var(--black); font-size: 13px; font-weight: 500; line-height: 22px; letter-spacing: .02em;
	transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.ab-chip:active { transform: scale(.97); }
.ab-chip[aria-current="true"] { border-color: var(--accent); background: var(--accent); color: var(--black); }
@media (hover: hover) {
	.ab-chip:not([aria-current="true"]):hover { border-color: var(--black); }
}

.ab-talent__count { flex: none; font-size: 13px; color: var(--text); white-space: nowrap; }

@media (max-width: 991px) {
	.ab-talent__bar { display: flex; flex-wrap: wrap; }
	.ab-talent__bar .ab-search { max-width: none; }
	.ab-search { flex-basis: 100%; }
	.ab-talent__count { display: none; }
	/* Chips scroll sideways, bleeding to the screen edges. */
	.ab-chips {
		flex-basis: 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
		margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scroll-padding-inline: var(--pad-x);
	}
	.ab-chips::-webkit-scrollbar { display: none; }
	/* A soft white fade on whichever side has more chips to scroll to (set in main.js). */
	.ab-chips { --fade: 104px; }
	/* Hebrew: the row scrolls towards the left, so "more ahead" fades the left edge. */
	.ab-chips.has-more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade)); mask-image: linear-gradient(to right, transparent, #000 var(--fade)); }
	.ab-chips.has-more-start { -webkit-mask-image: linear-gradient(to left, transparent, #000 var(--fade)); mask-image: linear-gradient(to left, transparent, #000 var(--fade)); }
	.ab-chips.has-more-start.has-more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
	:root:not([dir="rtl"]) .ab-chips.has-more-end { -webkit-mask-image: linear-gradient(to left, transparent, #000 var(--fade)); mask-image: linear-gradient(to left, transparent, #000 var(--fade)); }
	:root:not([dir="rtl"]) .ab-chips.has-more-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade)); mask-image: linear-gradient(to right, transparent, #000 var(--fade)); }
}
@media (max-width: 767px) {
	.ab-talent__bar { gap: 12px; padding-block: 12px; margin-bottom: 8px; }
	.ab-chip { padding: 5px 14px; }
}

/* The grid. */
.ab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); list-style: none; }
@media (min-width: 1600px) { .ab-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1199px) { .ab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ab-card[hidden] { display: none; }
.ab-card.is-entering { animation: ab-card-in .55s var(--ease) both; }
@keyframes ab-card-in { from { opacity: 0; transform: translateY(12px); } }

.ab-card__link { position: relative; display: block; overflow: hidden; background: var(--accent-soft); }
.ab-card__media { position: relative; display: block; aspect-ratio: 3 / 4; }
.ab-card__media .ab-cover-img { object-position: 50% 20%; transition: transform .65s var(--ease); }

/* Soft gradient so the white name reads on any photo. */
.ab-card__link::after {
	content: ""; position: absolute; inset: 40% 0 0; pointer-events: none;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
	transition: opacity .65s var(--ease);
}
.ab-card__text {
	position: absolute; z-index: 1; inset-inline: 0; bottom: 0; display: flex; flex-direction: column;
	padding: 24px 26px; color: var(--white);
}
.ab-card__name { font-family: var(--font-display); font-size: 29px; line-height: 34px; text-wrap: balance; }
.ab-card__meta { margin-top: 3px; font-size: 14px; line-height: 20px; letter-spacing: .03em; opacity: .85; }

@media (hover: hover) {
	.ab-card__link:hover .ab-cover-img { transform: scale(1.06); }
}

@media (max-width: 1199px) {
	.ab-card__name { font-size: 25px; line-height: 30px; }
}
@media (max-width: 767px) {
	.ab-card__text { padding: 14px 14px; }
	.ab-card__name { font-size: 20px; line-height: 25px; }
	.ab-card__meta { display: none; }
}

.ab-empty { padding-block: 80px; text-align: center; color: var(--black); }
.ab-empty .ab-text-btn { margin-top: 16px; }

/* ---------- Actor page ---------- */

/* Top: name, links and résumé on the right, the portrait on the left. */
.ab-profile__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 100px; align-items: start; padding-top: 24px; }
.ab-profile__text { padding-top: 48px; }
.ab-profile__head .ab-eyebrow { margin-bottom: 8px; }
.ab-profile__term { transition: color .25s var(--ease); }
.ab-profile__term:hover { color: var(--black); }

/* The portrait stays in view while a long résumé scrolls past. */
.ab-profile__portrait { position: sticky; top: calc(var(--bar-h) + 24px); aspect-ratio: 3 / 4; max-height: calc(100vh - var(--bar-h) - 48px); overflow: hidden; background: var(--accent-soft); }
.ab-profile__portrait .ab-cover-img { object-position: 50% 20%; }

.ab-profile__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; list-style: none; }
.ab-profile__links a { display: inline-flex; align-items: center; gap: 10px; color: var(--black); font-size: 13px; font-weight: 500; letter-spacing: .04em; transition: color .25s var(--ease); }
.ab-profile__links .ab-icon { width: 15px; height: 15px; fill: currentColor; }
.ab-profile__links .ab-icon--link { fill: none; }
@media (hover: hover) { .ab-profile__links a:hover { color: var(--hover); } }

/* Details by category (languages, platforms, plays…): label and value on thin lines. */
/* Details by category: a quiet panel, each item a small tag. */
.ab-details { margin: 40px 0 0; padding: 8px 28px; background: var(--accent-soft); }
.ab-details__row { padding: 20px 0; }
.ab-details__row + .ab-details__row { border-top: 1px solid var(--accent); }
.ab-details dt { margin-bottom: 12px; font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: .04em; color: var(--text); }
.ab-details dd { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ab-details__item { padding: 6px 14px; border-radius: 5px; background: var(--white); color: var(--black); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.ab-details__meta { color: var(--text); }
.ab-details__meta::before { content: "· "; }
@media (max-width: 600px) { .ab-details { padding: 4px 20px; } }

/* Résumé: each heading is a small label over a thin line, entries below. */
.ab-resume { margin-top: 48px; color: var(--black); overflow-wrap: anywhere; }
.ab-resume > * + * { margin-top: 6px; }
.ab-resume h2, .ab-resume h3, .ab-resume h4 {
	margin-top: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
	font-family: var(--font-body); font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: .04em; color: var(--text);
}
.ab-resume > :first-child { margin-top: 0; }
.ab-resume h2 + *, .ab-resume h3 + *, .ab-resume h4 + * { margin-top: 14px; }
.ab-resume p { font-size: 15px; line-height: 26px; }
.ab-resume strong, .ab-resume b { font-weight: 500; }
.ab-resume h2 strong, .ab-resume h2 b { font-weight: inherit; }
.ab-resume img { display: none; } /* stray pasted images */

/* Tables pasted into résumés (languages, citizenship…): plain rows like the rest. */
.ab-resume table { width: 100% !important; max-width: 100%; table-layout: fixed; height: auto !important; margin-top: 32px; border-collapse: collapse; border: 0; font-size: 15px; line-height: 24px; }
.ab-resume td, .ab-resume th { width: auto !important; height: auto !important; padding: 10px 0; padding-inline-end: 24px; border: 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.ab-resume tr:first-child td, .ab-resume th { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--text); }
.ab-resume td:last-child, .ab-resume th:last-child { padding-inline-end: 0; }
.ab-resume tr:last-child td { border-bottom: 0; } /* the divider above the button follows right after */

.ab-profile__actions { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.ab-profile__actions .ab-btn { margin: 0; }

/* Phone / tablet: long résumés start folded, with a fade and a "read more". */
.ab-resume__more { display: none; }
@media (max-width: 991px) {
	.ab-js .ab-resume-wrap.is-long .ab-resume { position: relative; max-height: 380px; overflow: hidden; transition: max-height .6s var(--ease); }
	.ab-js .ab-resume-wrap.is-long .ab-resume::after {
		content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 120px; pointer-events: none;
		background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white)); transition: opacity .4s var(--ease);
	}
	.ab-js .ab-resume-wrap.is-open .ab-resume::after { opacity: 0; }
	.ab-js .ab-resume-wrap.is-long .ab-resume__more { display: inline-flex; margin-top: 20px; }
}

@media (max-width: 991px) {
	.ab-profile__intro { grid-template-columns: minmax(0, 1fr); padding-top: 0; } /* never wider than the screen, whatever the résumé holds */
	.ab-profile__portrait { position: relative; top: auto; order: -1; aspect-ratio: auto; height: min(56vh, 110vw); max-height: none; margin-inline: calc(var(--pad-x) * -1); }
	.ab-profile__text { padding-top: 32px; }
	.ab-resume { margin-top: 32px; }
}

/* ---------- Carousels (photos, videos, content) ---------- */

.ab-rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); margin-bottom: 40px; }
.ab-rail__nav { display: flex; gap: 8px; }
.ab-rail.is-static .ab-rail__nav, .ab-rail.is-static .ab-rail__progress { display: none; }

.ab-rail__track {
	/* Mandatory snap: on touch the strip settles on an item as part of the swipe
	   itself (one smooth motion), instead of drifting and then jumping. */
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-x);
	-webkit-overflow-scrolling: touch;
	padding-inline: var(--pad-x); scrollbar-width: none; cursor: grab; outline-offset: -1px;
}
.ab-rail__track::-webkit-scrollbar { display: none; }
.ab-rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.ab-rail__track.is-dragging a { pointer-events: none; }
.ab-rail.is-static .ab-rail__track { cursor: auto; }
.ab-rail__list { display: flex; gap: var(--grid-gap); width: max-content; list-style: none; }
.ab-rail__list > * { flex: none; scroll-snap-align: start; scroll-snap-stop: normal; }
.ab-rail__list img { -webkit-user-drag: none; }

.ab-rail__progress { position: relative; height: 1px; margin-top: 40px; background: var(--line); }
.ab-rail__progress span { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 0; background: var(--black); transition: width .15s linear; }

@media (max-width: 767px) {
	.ab-rail__head { margin-bottom: 24px; }
	.ab-rail__nav { display: none; }
	.ab-rail__progress { margin-top: 24px; }
}

/* Photos: one height, each at its own proportions – a large editorial strip. */
.ab-photos { padding-bottom: 0; }
.ab-photo { --h: clamp(360px, min(calc((100vw - var(--pad-x)) / 2.4 / .75), 82vh), 820px); position: relative; height: var(--h); width: calc(var(--h) * var(--ratio, .75)); overflow: hidden; background: var(--accent-soft); }
.ab-photo a { display: block; height: 100%; cursor: zoom-in; }
.ab-photo .ab-cover-img { transition: transform .65s var(--ease); }
@media (hover: hover) { .ab-photo a:hover .ab-cover-img { transform: scale(1.04); } }
@media (max-width: 767px) {
	.ab-photo { --h: calc(78vw / .75); max-width: 82vw; }
}

/* Videos and content: 16:9 tiles. */
.ab-videos, .ab-works { padding-bottom: 0; }
/* Videos on the actor page: a plain grid, three across. */
.ab-videos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--grid-gap); list-style: none; }
@media (max-width: 991px) { .ab-videos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ab-videos__grid { grid-template-columns: 1fr; gap: 28px; } }
/* Video tiles inside a carousel ("content they created"). */
.ab-rail .ab-video { width: calc((100vw - var(--pad-x)) / 2.4 - var(--grid-gap)); }
@media (max-width: 1199px) { .ab-rail .ab-video { width: calc((100vw - var(--pad-x)) / 1.6 - var(--grid-gap)); } }
.ab-video__facade {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden;
	background: var(--black); cursor: pointer;
}
.ab-video__facade .ab-cover-img { transition: transform .65s var(--ease); }
/* Instagram and TikTok: upright. */
.ab-video--vertical .ab-video__facade { aspect-ratio: 9 / 16; }
.ab-video__play {
	position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; color: var(--white);
	transform: translate(-50%, -50%); transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.ab-video__play .ab-icon { width: 22px; height: 22px; margin-inline-end: -2px; fill: currentColor; }
@media (hover: hover) {
	.ab-video__facade:hover .ab-cover-img { transform: scale(1.04); }
	.ab-video__facade:hover .ab-video__play { border-color: var(--accent); background: var(--accent); color: var(--black); transform: translate(-50%, -50%) scale(1.05); }
}
.ab-video__facade.is-playing { cursor: auto; }
.ab-video__facade.is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ab-video__title { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--black); }
@media (max-width: 767px) { .ab-rail .ab-video { width: 82vw; } }

/* Content links that can't play here: a quiet card. */
.ab-work { width: calc((100vw - var(--pad-x)) / 3.4 - var(--grid-gap)); }
@media (max-width: 1199px) { .ab-work { width: calc((100vw - var(--pad-x)) / 2.4 - var(--grid-gap)); } }
.ab-work__link {
	display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	aspect-ratio: 16 / 9; padding: 28px; background: var(--accent-soft); color: var(--black);
	transition: background-color .35s var(--ease);
}
.ab-work__host { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.ab-work__host .ab-icon { width: 15px; height: 15px; fill: currentColor; }
.ab-work__title { font-family: var(--font-display); font-size: 26px; line-height: 32px; text-wrap: balance; }
.ab-work .ab-text-btn { align-self: flex-start; }
@media (hover: hover) { .ab-work__link:hover { background: var(--accent); } }
@media (max-width: 767px) { .ab-work { width: 75vw; } }

/* Previous / all / next. */
.ab-profile__pager {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: var(--gap);
	position: relative; margin-top: var(--pad-section); padding-block: 48px var(--pad-section);
}
/* The line spans the content only, like the grid above it. */
.ab-profile__pager::before { content: ""; position: absolute; top: 0; inset-inline: var(--pad-x); height: 1px; background: var(--line); }
.ab-pager__item { display: flex; flex-direction: column; gap: 2px; }
.ab-pager__item--next { justify-self: end; text-align: left; }
.ab-pager__label { font-size: 13px; color: var(--text); }
.ab-pager__name { font-family: var(--font-display); font-size: 24px; line-height: 32px; color: var(--black); transition: color .25s var(--ease); }
.ab-pager__item:hover .ab-pager__name { color: var(--hover); }
@media (max-width: 767px) {
	.ab-profile__pager { grid-template-columns: 1fr 1fr; padding-block: 32px var(--pad-section); }
	.ab-pager__all { grid-row: 2; grid-column: 1 / -1; justify-self: center; margin-top: 16px; }
	.ab-pager__name { font-size: 18px; line-height: 26px; }
}

/* Lightbox. */
.ab-lightbox {
	width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(0, 0, 0, .94); color: var(--white);
}
.ab-lightbox::backdrop { background: transparent; }
.ab-lightbox[open] { display: flex; align-items: center; justify-content: center; animation: ab-fade .3s var(--ease); }
@keyframes ab-fade { from { opacity: 0; } }
.ab-lightbox__figure { max-width: calc(100vw - 200px); }
.ab-lightbox__figure img { max-width: 100%; max-height: calc(100dvh - 80px); width: auto; height: auto; object-fit: contain; }
.ab-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.ab-lightbox__nav--prev { right: 32px; }
.ab-lightbox__nav--next { left: 32px; }
.ab-lightbox__close { position: absolute; top: 24px; left: 24px; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.ab-lightbox__close::before, .ab-lightbox__close::after { content: ""; position: absolute; top: 50%; left: 10px; width: 20px; height: 1px; background: var(--white); }
.ab-lightbox__close::before { transform: rotate(45deg); }
.ab-lightbox__close::after { transform: rotate(-45deg); }
@media (max-width: 767px) {
	.ab-lightbox__figure { max-width: 100vw; }
	.ab-lightbox__nav { display: none; }
}

/* ---------- Plain pages, 404 ---------- */

.ab-page__head { margin-bottom: 48px; text-align: center; }

.ab-404 { display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); padding-block: 64px 96px; }
.ab-404__code { font-family: var(--font-display); font-size: 160px; line-height: 1; color: var(--black); }
.ab-404 .ab-title { margin-top: 16px; }
.ab-404__text { margin-top: 16px; }
.ab-404__photo { position: relative; width: min(720px, 100%); margin: 56px auto 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--accent-soft); }
@media (max-width: 767px) { .ab-404__code { font-size: 110px; } }

/* ---------- About ---------- */

/* Text beside one photo; on desktop the whole section fits the screen under the header. */
.ab-about__intro {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 100px; align-items: center;
	/* At least one screen tall; a longer text grows the section rather than spilling out of it. */
	min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding-block: 24px 48px;
}
.ab-about__text { max-width: 600px; }
/* Breathing room between the text and the footer (the photo still fills the first screen). */
@media (min-width: 992px) { .ab-about { padding-bottom: 72px; } }
.ab-about__text .ab-content { margin-top: 28px; color: var(--black); }
.ab-about__text .ab-content h2 { margin-top: 0; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--text); }
.ab-about__text .ab-content p { font-size: 18px; line-height: 32px; }
@media (max-width: 767px) { .ab-about__text .ab-content p { font-size: 17px; line-height: 30px; } }
.ab-about__text .ab-content p:has(> br:only-child) { display: none; }
.ab-about__text .ab-btn { margin-top: 36px; }
.ab-about__media { position: relative; height: max(480px, calc(100svh - var(--header-h) - 72px)); aspect-ratio: 2 / 3; max-width: 42vw; overflow: hidden; background: var(--accent-soft); }
.ab-about__text .ab-content > * + * { margin-top: .85em; }

@media (max-width: 991px) {
	.ab-about__intro { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 0 var(--pad-section); }
	.ab-about__media { order: -1; height: auto; max-width: none; aspect-ratio: 4 / 3; margin: 0 calc(var(--pad-x) * -1) 32px; }
	.ab-about__text { max-width: none; }
}

/* ---------- Contact ---------- */

.ab-contact-page .ab-page__head p { max-width: 560px; margin: 16px auto 0; }
.ab-contact-page { padding-top: 40px; }
.ab-contact-page .ab-page__head { margin-bottom: 40px; }

/* The details in one row under the intro line. */
.ab-contact__info { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 64px; margin: 0; padding: 28px 0; border-block: 1px solid var(--line); text-align: center; }
.ab-contact__info > div { display: grid; gap: 6px; justify-items: center; }
.ab-contact__info dt { font-size: 13px; color: var(--text); }
.ab-contact__info dd { margin: 0; color: var(--black); }
.ab-contact__info a { transition: color .25s var(--ease); }
.ab-contact__info a:hover { color: var(--hover); }
.ab-contact__info .ab-socials { color: var(--black); }

/* The form beside a photo of the office. */
.ab-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 100px; align-items: start; margin-top: 80px; }
.ab-contact__form { max-width: 560px; }
.ab-contact__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--accent-soft); }

@media (max-width: 991px) {
	.ab-contact { grid-template-columns: minmax(0, 1fr); gap: 64px; margin-top: 56px; }
	.ab-contact__form { max-width: none; }
	.ab-contact__photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
	.ab-contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
}

.ab-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.ab-field { display: flex; flex-direction: column; margin: 0 0 32px; }
.ab-field--wide { grid-column: 1 / -1; }
.ab-field label { font-size: 13px; line-height: 20px; color: var(--text); }
.ab-field input, .ab-field textarea {
	width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--control); border-radius: 0;
	background: transparent; color: var(--black); font: inherit; font-size: 16px; outline: 0;
	transition: border-color .25s var(--ease); -webkit-appearance: none; appearance: none;
}
.ab-field input[dir="ltr"] { text-align: right; }
:root:not([dir="rtl"]) .ab-field input[dir="ltr"] { text-align: left; }
.ab-field textarea { resize: vertical; min-height: 120px; }
.ab-field input:focus, .ab-field textarea:focus { border-color: var(--black); }
.ab-field .ab-btn { align-self: flex-start; margin-top: 8px; }
/* reCAPTCHA: Google's floating badge stays hidden (the owner's choice, 2026-11-09). */
.grecaptcha-badge { visibility: hidden !important; }
.ab-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ab-consent label { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 20px; color: var(--text); cursor: pointer; }
/* A real box, not the fields' underline: 1px outline, black fill with a white tick when checked. */
.ab-field.ab-consent input[type="checkbox"] {
	-webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; padding: 0;
	border: 1px solid var(--control); border-radius: 3px; background: var(--white) center / 12px 12px no-repeat; cursor: pointer;
	transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.ab-field.ab-consent input[type="checkbox"]:hover { border-color: var(--black); }
.ab-field.ab-consent input[type="checkbox"]:checked {
	border-color: var(--black); background-color: var(--black);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E");
}
.ab-field.ab-consent input[type="checkbox"]:focus-visible { outline: 1px solid var(--black); outline-offset: 3px; }
.ab-consent a { color: var(--black); border-bottom: 1px solid currentColor; }
.ab-notice { margin-bottom: 32px; padding: 14px 20px; background: var(--accent-soft); color: var(--black); }
.ab-notice--error { background: none; border: 1px solid #b3261e; }
@media (max-width: 600px) { .ab-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.ab-footer { background: var(--white); }
.ab-footer__top { display: flex; justify-content: space-between; gap: 80px; padding: var(--pad-section) var(--pad-x); background: var(--accent-soft); }
.ab-footer__contact { max-width: 520px; }
.ab-footer__contact .ab-title { margin-bottom: 20px; }
.ab-footer__contact .ab-socials { margin-top: 48px; color: var(--black); }
.ab-footer__nav { display: flex; gap: 100px; }
.ab-footer__nav ul { list-style: none; }
.ab-footer__nav li + li { padding-top: 16px; }
.ab-footer__nav a, .ab-footer__nav span { display: block; font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: .04em; color: var(--black); }
.ab-footer__nav span { font-weight: 400; color: var(--text); }
.ab-footer__nav a { transition: color .25s var(--ease); }
.ab-footer__nav a:hover { color: var(--hover); }
.ab-footer__bottom {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
	padding: 32px var(--pad-x); border-top: 1px solid var(--line); font-size: 13px;
}
.ab-footer__credit { justify-self: end; transition: color .25s var(--ease); }
.ab-footer__legal { display: flex; gap: 12px; }
.ab-footer__legal a { transition: color .25s var(--ease); }
.ab-footer__legal a:hover { color: var(--black); }
.ab-footer__credit:hover { color: var(--black); }

@media (max-width: 991px) {
	.ab-footer__top { flex-direction: column; }
	.ab-footer__nav { gap: 60px; }
}
@media (max-width: 767px) {
	.ab-footer__top { padding-block: var(--pad-section) 56px; gap: 56px; }
	/* Two short columns side by side instead of one long list. */
	.ab-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
	.ab-footer__nav li + li { padding-top: 14px; }
	.ab-footer__contact .ab-socials { margin-top: 32px; }
	.ab-footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
	.ab-footer__credit { justify-self: center; }
}

/* ---------- WhatsApp button ---------- */

/* Bottom left in both languages, in the site's accent, under the menu and lightbox. */
.ab-whatsapp {
	position: fixed; z-index: 80; left: 12px; bottom: 16px;
	display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--accent); color: var(--black); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .35);
	transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.ab-whatsapp .ab-icon { width: 26px; height: 26px; fill: currentColor; }
.ab-whatsapp:active { transform: scale(.94); }
@media (hover: hover) { .ab-whatsapp:hover { transform: translateY(-2px); background: var(--black); color: var(--accent); } }
.ab-menu-open .ab-whatsapp, .ab-lock .ab-whatsapp { opacity: 0; pointer-events: none; }
@media (max-width: 767px) {
	.ab-whatsapp { left: 16px; bottom: 16px; width: 52px; height: 52px; }
	.ab-whatsapp .ab-icon { width: 24px; height: 24px; }
}

/* ---------- Accessibility toolbar ---------- */

.ab-a11y { position: fixed; z-index: 81; right: 12px; bottom: 16px; }
.ab-a11y__toggle {
	display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border-radius: 50%; cursor: pointer;
	background: var(--white); color: var(--black); border: 1px solid var(--line); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .25);
	transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.ab-a11y__toggle .ab-icon { width: 28px; height: 28px; fill: currentColor; }
.ab-a11y__toggle:active { transform: scale(.94); }
@media (hover: hover) { .ab-a11y__toggle:hover { transform: translateY(-2px); background: var(--black); color: var(--white); } }
.ab-a11y__toggle[aria-expanded="true"] { background: var(--black); color: var(--white); }
.ab-menu-open .ab-a11y, .ab-lock .ab-a11y { opacity: 0; pointer-events: none; }

.ab-a11y__panel {
	position: absolute; right: 0; bottom: 68px; width: 280px; max-height: calc(100dvh - 120px); overflow-y: auto;
	padding: 20px 20px 16px; background: var(--white); color: var(--black); border: 1px solid var(--line);
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .3); transform-origin: bottom right;
	animation: ab-a11y-in .25s var(--ease);
}
@keyframes ab-a11y-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.ab-a11y__title { font-family: var(--font-display); font-size: 24px; line-height: 32px; margin: 0 0 8px; }
.ab-a11y__list { list-style: none; margin: 0; padding: 0; }
.ab-a11y__list li + li { border-top: 1px solid var(--line); }
.ab-a11y__option {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
	padding: 12px 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 15px; line-height: 22px; color: var(--black); text-align: start;
}
.ab-a11y__switch {
	position: relative; flex: none; width: 36px; height: 20px; border-radius: 10px; border: 1px solid var(--control);
	transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.ab-a11y__switch::after {
	content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 12px; height: 12px; border-radius: 50%;
	background: var(--control); transition: inset-inline-start .2s var(--ease), background-color .2s var(--ease);
}
.ab-a11y__option[aria-pressed="true"] .ab-a11y__switch { background: var(--black); border-color: var(--black); }
.ab-a11y__option[aria-pressed="true"] .ab-a11y__switch::after { inset-inline-start: 19px; background: var(--white); }
.ab-a11y__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 767px) {
	.ab-a11y { right: 16px; bottom: 16px; }
	.ab-a11y__toggle { width: 52px; height: 52px; }
	.ab-a11y__toggle .ab-icon { width: 26px; height: 26px; }
	.ab-a11y__panel { bottom: 64px; width: min(280px, calc(100vw - 32px)); }
}

/* The options themselves (classes on <html>, set before the page paints). */
.ab-a11y-text .ab-main, .ab-a11y-text .ab-footer { zoom: 1.2; }
.ab-a11y-contrast { --text: #000; --hover: #000; --line: #000; --control: #000; --text-on-dark: #fff; --accent: #fff; --accent-soft: #fff; }
.ab-a11y-contrast .ab-a11y__toggle { background: #000; color: #fff; outline: 2px solid #fff; }
.ab-a11y-links a:not(.ab-btn):not(.ab-card__link):not(.ab-a11y__toggle) { text-decoration: underline !important; text-underline-offset: 3px; }
.ab-a11y-links :focus-visible { outline: 3px solid #000 !important; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.ab-a11y-font { --font-display: Arial, "Helvetica Neue", sans-serif; --font-body: Arial, "Helvetica Neue", sans-serif; }
.ab-a11y-font body, .ab-a11y-font button, .ab-a11y-font input, .ab-a11y-font textarea { font-family: Arial, "Helvetica Neue", sans-serif; }
.ab-a11y-motion *, .ab-a11y-motion *::before, .ab-a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.ab-a11y-motion [data-ab-reveal] > * { opacity: 1 !important; transform: none !important; }

/* ---------- Scroll reveal ---------- */

.ab-js [data-ab-reveal] > * { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.ab-js [data-ab-reveal] > :nth-child(2) { transition-delay: .2s; }
.ab-js [data-ab-reveal] > :nth-child(3) { transition-delay: .4s; }
.ab-js [data-ab-reveal] > :nth-child(n+4) { transition-delay: .6s; }
.ab-js [data-ab-reveal].is-shown > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.ab-rail__track { scroll-behavior: auto; }
}

/* ---------- English (left-to-right) ---------- */

/* Arrows point to the reading direction's end: right in English. */
:root:not([dir="rtl"]) .ab-icon--arrow { transform: scaleX(-1); }
:root:not([dir="rtl"]) .ab-round-btn--prev .ab-icon { transform: none; }
:root:not([dir="rtl"]) .ab-lightbox__nav--prev { right: auto; left: 32px; }
:root:not([dir="rtl"]) .ab-lightbox__nav--next { left: auto; right: 32px; }
:root:not([dir="rtl"]) .ab-pager__item--next { text-align: right; }
:root:not([dir="rtl"]) .ab-text-btn--line::after { transform-origin: left center; }
