/* ==========================================================================
   About (אודות) — Figma desktop 502:30713, mobile 535:30811
   ========================================================================== */

.page-about { --ab-shadow: 0 4px 30px rgba(26, 107, 67, .1); --ab-wide-pad: var(--gutter-header); }

/* Wider content box: 1720px @1920 (100px side margins) */
.ab-wide { position: relative; width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: var(--ab-wide-pad); }

/* ---------- Shared centred intro (title + text + "read more") ---------- */
.ab-intro { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ab-intro__title { font-size: clamp(34px, 2.71vw, 52px); font-weight: 500; line-height: 1.19; }
.ab-intro__title--h2 { font-size: clamp(30px, 2.19vw, 42px); max-width: 896px; }
.ab-intro__sub { display: block; font: inherit; }
.ab-intro__text { max-width: 897px; margin-top: 30px; font-size: clamp(17px, 1.04vw, 20px); line-height: 1.85; }
.ab-intro__text--quote { max-width: 679px; }
.ab-intro__text--narrow { max-width: 721px; margin-top: 34px; }
.ab-more {
	display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
	font-size: 16px; font-weight: 500; line-height: 19px; color: var(--c-navy);
	text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.ab-more img { width: 12.35px; height: 7.09px; transition: transform .4s var(--ease-out); }
.ab-more:hover img { transform: translateY(3px); }

/* ---------- Stage: big drifting word + media ---------- */
.ab-stage { position: relative; overflow-x: clip; }
.ab-bigword { top: var(--bw-top, 85px); }
.ab-bigword--soft .sv-bigword__text { opacity: .25; }
.page-about { --phone: clamp(355px, 32.3vw, 620px); --portrait: clamp(267px, 31.1vw, 597px); }
.ab-phone { position: relative; z-index: 1; width: var(--phone); margin-inline: auto; }
.ab-phone img { width: 100%; }

/* ---------- Hero ---------- */
.ab-hero { padding-top: 174px; }
.ab-stage--hero { margin-top: 52px; }

.ab-pillars {
	position: relative; z-index: 2;
	display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: center; gap: 17px;
	margin-top: calc(var(--phone) * -.318); /* 197px @1920: cards overlap the phone's lower third */
}
.ab-pillar {
	position: relative; min-height: 144px; padding: 25px 27px 20px;
	border-radius: var(--radius-card); background: var(--c-mint); box-shadow: var(--ab-shadow);
	text-align: right;
}
.ab-pillar__tex { position: absolute; left: -30px; top: -26px; width: 350px; max-width: none; height: auto; pointer-events: none; }
.ab-pillar__title, .ab-pillar__text { position: relative; }
.ab-pillar__title { font-size: 22px; font-weight: 500; line-height: 1.2; }
.ab-pillar__text { margin-top: 12px; max-width: 265px; font-size: 20px; line-height: 28px; }
/* Figma text-box widths (keep the designed line breaks) */
.ab-pillar:nth-child(1) .ab-pillar__text { max-width: 231px; }
.ab-pillar:nth-child(2) .ab-pillar__text { max-width: 258px; }

/* ---------- Founder ---------- */
.ab-founder { padding-top: 200px; }
.ab-founder .ab-intro__text { margin-top: 30px; }
.ab-stage--founder { margin-top: 36px; --bw-top: calc(var(--portrait) * .395); }
.ab-portrait { position: relative; z-index: 1; width: var(--portrait); margin-inline: auto; left: calc(var(--portrait) * -.1256); }
.ab-portrait img { width: 100%; }

/* Achievement cards — a selectable set (reuses the accordion: one .is-open = the green card) */
.ab-ach {
	position: relative; z-index: 2;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start;
	margin-top: calc(var(--portrait) * -.34); /* 203px @1920 */
}
.ab-ach__card {
	position: relative; isolation: isolate; min-height: 387px; padding: 30px clamp(10px, .83vw, 16px) 40px;
	border-radius: var(--radius-card); background: var(--c-mint); box-shadow: var(--ab-shadow);
	text-align: center; color: var(--c-navy);
	transition: color .45s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.ab-ach__card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--grad-green); opacity: 0; transition: opacity .45s var(--ease-out); }
.ab-ach__card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 24, 52, .1); }
.ab-ach__card.is-open { color: #fff; box-shadow: none; }
.ab-ach__card.is-open::before { opacity: 1; }
.ab-ach__head { font-size: inherit; font-weight: inherit; line-height: inherit; }
.ab-ach__trigger { justify-content: center; text-align: center; font-size: clamp(21px, 1.354vw, 26px); font-weight: 500; line-height: 1.2; }
.ab-ach__trigger::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); } /* whole card is the hit area */
.ab-ach__trigger:focus-visible { outline: none; }
.ab-ach__card:has(.ab-ach__trigger:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 3px; }
/* The list is always visible; only the highlight toggles */
.ab-ach .sv-acc__panel { grid-template-rows: 1fr; }
.ab-ach .sv-acc__inner { opacity: 1; }
.ab-ach__list { margin: 21px clamp(10px, 1.04vw, 20px) 0; font-size: clamp(17px, 1.04vw, 20px); line-height: 28px; }
.ab-ach__list li { padding-block: 16px; }
.ab-ach__list li:first-child { padding-top: 13px; }
.ab-ach__list li + li { border-top: 1px solid var(--c-line); transition: border-color .45s; }
.ab-ach__card.is-open .ab-ach__list li + li { border-top-color: var(--c-line-light); }
/* Round chevron that sits on the card's bottom edge (asset is a "<" rotated like in Figma) */
.ab-chev {
	position: absolute; left: 50%; bottom: 0; width: 35px; height: 35px; margin: 0 0 -17.5px -17.5px;
	pointer-events: none; transition: transform .45s var(--ease-out);
}
.ab-chev img { position: absolute; top: -3px; left: -10px; width: 55px; height: 55px; max-width: none; transform: rotate(-90deg); transform-origin: 27.5px 20.5px; }
.ab-ach__card:hover .ab-chev { transform: translateY(3px); }

/* ---------- MSB method ---------- */
.ab-msb { padding-top: clamp(200px, 15vw, 289px); }
.ab-layers {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
	margin-top: 123px;
}
.ab-layer {
	position: relative; min-height: 450px; margin-top: 20px; padding: 55px clamp(16px, 2.36vw, 45px) 40px;
	border-radius: var(--radius-card); background: var(--c-mint); box-shadow: var(--ab-shadow);
	text-align: center;
}
.ab-layer__badge {
	position: absolute; top: -20px; left: 50%; z-index: 2; transform: translateX(-50%);
	display: grid; place-items: center; width: 92px; height: 40px; border-radius: 50px;
	font-size: 20px; font-weight: 500; line-height: 1; color: #fff; white-space: nowrap;
}
.ab-layer--mind .ab-layer__badge { background: var(--c-forest); }
.ab-layer--spirit .ab-layer__badge { background: #4ea374; }
.ab-layer--body .ab-layer__badge { background: #249cb7; }
.ab-layer--combo .ab-layer__badge { background: #e9f4ef; color: var(--c-green); }
.ab-layer__title, .ab-layer__text { position: relative; z-index: 1; }
.ab-layer__title { font-size: clamp(21px, 1.354vw, 26px); font-weight: 500; line-height: 1.2; }
.ab-layer__text { max-width: 324px; margin: 13px auto 0; font-size: clamp(17px, 1.04vw, 20px); line-height: 1.85; }
.ab-layer__art { position: absolute; inset: auto 0 0; overflow: hidden; border-radius: 0 0 var(--radius-card) var(--radius-card); pointer-events: none; }
.ab-layer__art img { width: 100%; }
/* Figma fades each art layer into the card colour: done with a mask so it works on any card fill */
.ab-layer__art img, .ab-layer__combo-a { -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.ab-layer--spirit .ab-layer__art img, .ab-layer__combo-b { -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.ab-layer--mind .ab-layer__art img { opacity: .7; }

.ab-layer--combo { background: var(--grad-green); color: #fff; padding-top: 52px; padding-inline: clamp(12px, 1.93vw, 37px); }
.ab-layer--combo .ab-layer__text { max-width: 340px; margin-top: 0; }
.ab-layer__combo { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-card); pointer-events: none; }
.ab-layer__combo img { position: absolute; max-width: none; height: auto; }
/* Positions as % of the 415×450 card */
.ab-layer__combo-a { left: 0; bottom: 0; width: 73.98%; opacity: .3; }
.ab-layer__combo-b { right: 0; bottom: 0; width: 75.9%; opacity: .3; }
.ab-layer__combo-c { left: 24.1%; bottom: 0; width: 59.28%; opacity: .24; }

/* ---------- Story ---------- */
.ab-story { padding-top: 246px; }
.ab-stage--story { margin-top: 69px; }
.ab-stage--story::after { /* Figma "Rectangle 6809": mint fade over the phone's lower part */
	content: ""; position: absolute; z-index: 2; inset: 57.9% 0 0; pointer-events: none;
	background: linear-gradient(to bottom, rgba(249, 255, 255, 0), rgba(249, 255, 255, .66));
}

/* ---------- Values ---------- */
.ab-values { min-height: 100vh; min-height: 100svh; padding: 140px 0 60px; display: flex; flex-direction: column; justify-content: center; }
.ab-values { --vw-inner: calc(min(100vw, 1920px) - 2 * var(--ab-wide-pad)); }
/* ends exactly where the accordion column starts (896px @1920) and keeps the 933:796 ratio */
.ab-values__art {
	position: absolute; top: 50%; left: max(0px, (100vw - 1920px) / 2);
	width: min(calc(var(--ab-wide-pad) + var(--vw-inner) * .4628), calc((100svh - 80px) * 933 / 796));
	aspect-ratio: 933 / 796; translate: 0 -50%;
	pointer-events: none;
	/* soft edges via transparency (no painted colour), so the page background shows through */
	-webkit-mask-image: linear-gradient(to left, transparent, #000 24%), linear-gradient(to top, transparent, #000 22%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to left, transparent, #000 24%), linear-gradient(to top, transparent, #000 22%);
	mask-composite: intersect;
}
/* one image per value: the open accordion item sets data-active */
.ab-values__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out); }
.ab-values__art[data-active="0"] img[data-acc-index="0"],
.ab-values__art[data-active="1"] img[data-acc-index="1"],
.ab-values__art[data-active="2"] img[data-acc-index="2"],
.ab-values__art[data-active="3"] img[data-acc-index="3"],
.ab-values__art[data-active="4"] img[data-acc-index="4"] { opacity: 1; transform: none; }
.ab-values__tex {
	position: absolute; top: 0; left: max(0px, (100vw - 1920px) / 2); width: calc(var(--ab-wide-pad) + var(--vw-inner) * .4628); height: auto; max-width: none;
	opacity: .15; pointer-events: none;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 25%, #000 72%, transparent), linear-gradient(to bottom, #000 61%, transparent);
	-webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 25%, #000 72%, transparent), linear-gradient(to bottom, #000 61%, transparent); mask-composite: intersect;
}
/* (former ::after mint fade removed — it painted a lighter box over the background video) */
.ab-values__content { position: relative; z-index: 1; width: 53.72%; margin-inline-start: 0; }
.ab-values__title { font-size: clamp(34px, 2.71vw, 52px); font-weight: 500; line-height: 1.19; }
.ab-values__list { margin-top: 45px; border-top: 1px solid var(--c-line); }
.ab-values .sv-acc { padding-bottom: 41px; border-bottom: 1px solid var(--c-line); }
.ab-values .sv-acc__trigger { padding-top: 30px; font-size: clamp(20px, 1.25vw, 24px); font-weight: 500; line-height: 1.2; color: var(--c-navy); }
.ab-values .sv-acc:first-child .sv-acc__trigger { padding-top: 39px; }
.ab-values .sv-acc__trigger:hover .ab-values__name { color: var(--c-forest); }
.ab-values__name { transition: color .3s; }
.ab-values .sv-acc__icon::before, .ab-values .sv-acc__icon::after { background: var(--c-navy); transition-duration: .3s; transition-timing-function: ease-out; }
/* Prototype (417:32197): toggle 300ms ease-out */
.ab-values .sv-acc__panel { transition: grid-template-rows .3s ease-out; }
.ab-values .sv-acc__inner { transition: opacity .3s ease-out; }
.ab-values .sv-acc.is-open .sv-acc__inner { transition-delay: 0s; }
.ab-values .sv-acc__inner p { padding-top: 6px; font-size: clamp(17px, 1.04vw, 20px); line-height: 1.85; }

/* ---------- Team ---------- */
.ab-team { padding-top: 207px; padding-bottom: 122px; }
.ab-team__title { font-size: clamp(34px, 2.71vw, 52px); font-weight: 500; line-height: 1.19; }
.ab-team__slider { position: relative; margin-top: 56px; }
.ab-team__track { gap: 20px; padding: 30px; margin: -30px; scroll-padding-inline: 30px; } /* room for the card shadow */
.ab-member {
	position: relative; display: flex; justify-content: space-between; overflow: hidden;
	width: calc((100% - 20px) / 2); min-height: 476px;
	border-radius: var(--radius-card); background: var(--c-mint); box-shadow: var(--ab-shadow);
}
.ab-member__text { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 53px 54px 50px 20px; }
.ab-member__name { font-size: clamp(28px, 1.98vw, 38px); font-weight: 500; line-height: 1.2; }
.ab-member__role { margin-top: 5px; font-size: clamp(20px, 1.25vw, 24px); line-height: 1.2; }
.ab-member__bio { max-width: 250px; }
.ab-member__bio--wide { max-width: 330px; }
.ab-member__bio { margin-top: auto; font-size: clamp(17px, 1.04vw, 20px); line-height: 28px; opacity: .7; }
.ab-member__media { position: relative; flex: none; align-self: stretch; width: 51.3%; max-width: 436px; }
.ab-member__tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-member__photo { position: absolute; bottom: 0; left: 4.1%; width: 93.35%; height: auto; }

.ab-arrow { position: absolute; top: 50%; z-index: 3; width: 35px; height: 35px; margin-top: -17.5px; transition: transform .3s var(--ease-out), opacity .3s; }
.ab-arrow img { position: absolute; top: -3px; left: -10px; width: 55px; height: 55px; max-width: none; }
.ab-arrow--prev { right: -17.5px; }             /* centred on the card edge, in line with the title edge */
.ab-arrow--prev img { transform: scaleX(-1); }  /* ">" */
.ab-arrow--next { left: -17.5px; }
.ab-arrow:hover { transform: scale(1.08); }
.ab-arrow[disabled] { opacity: .35; cursor: default; transform: none; }

/* ---------- Fluid desktop (900–1920) ---------- */
@media (max-width: 1500px) {
	.ab-ach__list br, .ab-ach__card br { display: none; }
	.ab-ach__card { min-height: 0; }
}
@media (max-width: 1280px) {
	.ab-layers, .ab-ach { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.ab-member { width: 100%; }
	.ab-pillar__text { font-size: 18px; }
	.ab-arrow--prev { right: -8px; }
	.ab-arrow--next { left: -8px; }
}

/* ---------- Mobile (Figma 390) ---------- */
@media (max-width: 900px) {
	.page-about { --ab-wide-pad: 20px; }

	.ab-intro__title { font-size: 32px; line-height: 1.19; max-width: 304px; }
	.ab-intro__title br { display: none; }
	.ab-intro__title--h2 { max-width: 328px; }
	.ab-intro__sub { margin-top: 14px; font-size: 20px; line-height: 1.2; }
	.ab-intro__text, .ab-intro__text--narrow { max-width: 340px; margin-top: 25px; font-size: 16px; line-height: 28px; }
	.ab-intro__text { max-width: 308px; }
	.ab-more { margin-top: 25px; }

	.ab-bigword .sv-bigword__text { font-size: 63px; }
	.ab-phone { width: 355px; max-width: 91%; }

	.ab-hero { padding-top: 154px; }
	.ab-stage--hero { margin-top: 43px; --bw-top: 90px; }
	.ab-pillars { grid-template-columns: minmax(0, 320px); gap: 20px; margin-top: -60px; }
	.ab-pillar__text { font-size: 20px; max-width: 265px; }

	.ab-founder { padding-top: 117px; }
	.ab-stage--founder { margin-top: 136px; }
	.ab-stage--founder { --bw-top: 81px; }
	.ab-portrait { width: 267px; left: 0; }

	.ab-ach { grid-template-columns: minmax(0, 360px); justify-content: center; gap: 25px; margin-top: -80px; }
	.ab-ach__card { min-height: 0; padding: 24px 30px 30px; }
	.ab-ach__trigger { font-size: 22px; }
	.ab-ach__list { margin-top: 20px; font-size: 16px; line-height: 24px; }
	.ab-ach__list li { padding-block: 13px 12px; }
	.ab-ach__list li:first-child { padding-top: 10px; }
	.ab-ach__list br { display: inline; }

	.ab-msb { padding-top: 102px; }
	.ab-msb .ab-intro__text--narrow { margin-top: 24px; }
	.ab-layers { grid-template-columns: minmax(0, 360px); justify-content: center; gap: 24px; margin-top: 83px; }
	.ab-layer { min-height: 326px; margin-top: 15px; padding: 31px 30px 30px; }
	.ab-layer__badge { top: -15px; width: 77px; height: 30px; font-size: 16px; }
	.ab-layer__title { font-size: 22px; }
	.ab-layer__text { max-width: 260px; margin-top: 18px; font-size: 16px; line-height: 24px; }
	.ab-layer--combo { padding-top: 52px; }
	.ab-layer--combo .ab-layer__text { max-width: 268px; }
	.ab-layer:hover { transform: none; }

	.ab-story { padding-top: 87px; }
	.ab-story .ab-intro__text--narrow { margin-top: 24px; }
	.ab-story .ab-more { margin-top: 43px; }
	.ab-stage--story { margin-top: 44px; --bw-top: 103px; }
	.ab-stage--story .ab-bigword .sv-bigword__text { font-size: 83px; }
	.ab-stage--story .ab-phone { width: 415px; max-width: none; margin-inline: -10px; left: 0; }
	.ab-stage--story { display: flex; justify-content: center; }

	.ab-values { min-height: 0; padding: 43px 0 0; }
	.ab-values__art, .ab-values__tex { display: none; }
	.ab-values .ab-wide { padding-inline: 29px; }
	.ab-values__content { width: 100%; }
	.ab-values__title { font-size: 32px; }
	.ab-values__list { margin-top: 38px; }
	.ab-values .sv-acc { padding-bottom: 31px; }
	.ab-values .sv-acc__trigger, .ab-values .sv-acc:first-child .sv-acc__trigger { padding-top: 22px; font-size: 22px; }
	.ab-values .sv-acc.is-open { padding-bottom: 26px; }
	.ab-values .sv-acc__inner p { padding-top: 16px; font-size: 16px; line-height: 24px; }

	.ab-team { padding-top: 125px; padding-bottom: 61px; }
	.ab-team__title { font-size: 32px; text-align: center; }
	.ab-team__slider { margin-top: 43px; padding-bottom: 69px; }
	.ab-team__track { gap: 17px; margin-inline: -20px; padding-inline: 25px; scroll-padding-inline: 25px; }
	.ab-member__bio, .ab-member__bio--wide { max-width: 205px; }
	.ab-member { flex-direction: column; justify-content: flex-start; width: 320px; min-height: 422px; }
	.ab-member__text { padding: 32px 34px 0; }
	.ab-member__name { font-size: 26px; }
	.ab-member__role { margin-top: 3px; font-size: 20px; }
	.ab-member__bio { max-width: 205px; margin-top: 12px; font-size: 16px; line-height: 24px; }
	.ab-member__media { position: relative; align-self: flex-end; margin: auto 0 0 37px; width: 246px; height: 269px; flex: none; }
	.ab-member__tex { object-fit: cover; }
	.ab-member__photo { left: 10px; width: 230px; }
	.ab-arrow { top: auto; bottom: 0; margin-top: 0; }
	.ab-arrow--prev { right: auto; left: calc(50% + 6px); }
	.ab-arrow--next { left: calc(50% - 41px); }
}

/* ---------- Tablet portrait (600–900): mobile composition, two-up card grids ---------- */
@media (min-width: 600px) and (max-width: 900px) {
	.ab-intro__title, .ab-intro__title--h2 { max-width: 520px; }
	.ab-intro__text, .ab-intro__text--narrow { max-width: 560px; }
	.ab-pillars { grid-template-columns: repeat(2, minmax(0, 320px)); }
	.ab-pillar:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 320px; }
	.ab-ach, .ab-layers { grid-template-columns: repeat(2, minmax(0, 360px)); }
	.ab-ach { align-items: start; }
	.ab-values .ab-wide { padding-inline: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.ab-ach__card:hover, .ab-ach__card:hover .ab-chev { transform: none; }
}

/* ---------- Expandable texts (client copy: "קראו עוד" opens more) ---------- */
.ab-more { cursor: pointer; }
.ab-intro.is-expanded > .ab-more img { transform: rotate(180deg); }
.ab-intro__text--more { margin-inline: auto; margin-top: 18px; }
.ab-intro .sv-expand > div > :first-child { margin-top: 26px; }
.ab-pullquote {
	max-width: 760px; margin: 28px auto 4px;
	font-size: clamp(24px, 1.8vw, 34px); font-weight: 500; line-height: 1.3; color: var(--c-forest);
}

/* Achievement cards: the round chevron on the card edge opens the rest of the list */
.ab-chev { pointer-events: auto; z-index: 2; cursor: pointer; }
.ab-chev:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 50%; }
.ab-ach__card.is-expanded .ab-chev img { transform: rotate(90deg); }
.ab-ach__list--more { margin-top: 0; }
.ab-ach__list--more li:first-child { padding-top: 16px; border-top: 1px solid var(--c-line); }
.ab-ach__card.is-open .ab-ach__list--more li:first-child { border-top-color: var(--c-line-light); }
