/*
 * Realestech · About page (Figma frame "About", node 2175:955).
 * Loaded only by page-about.php, after figma-shared.css.
 */

.ab { overflow-x: clip; }

/* Shared type */
.ab-eyebrow {
	display: inline-flex; align-items: center; gap: 10px; min-height: 20px;
	font: 500 12px/16px var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase;
	color: var(--color-text-body);
}
.ab-eyebrow__mark { width: 6px; height: 13px; flex: none; }
.ab-eyebrow--light { color: #fff; }
.ab-h2 { font: 400 48px/52.8px var(--font-heading); letter-spacing: -1.8px; color: var(--color-brand-navy); }
.ab-body { font: 400 16px/26.4px var(--font-body); color: var(--color-text-body); }
.ab-muted { color: var(--color-text-muted); }
.ab-link {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	font: 500 15px/normal var(--font-heading); color: var(--color-brand-navy); white-space: nowrap;
	transition: color .5s ease;
}
.ab-link img { width: 14px; height: 10px; transition: transform .2s ease, filter .5s ease; }
.ab-link:hover { color: var(--rt-link-hover, #3266a1); }
.ab-link:hover img { transform: translateX(3px); filter: brightness(0) saturate(100%) invert(36%) sepia(32%) saturate(802%) hue-rotate(174deg) brightness(92%) contrast(91%); }
.ab-link--sm { font-size: 14px; min-height: 24px; }
.ab-link--sm img { width: 12px; height: 9px; }

.ab-section { padding-top: var(--space-section); padding-bottom: var(--space-section); }

/* Cut corner (top-right), matches the Figma "cut-corner mask" shapes */
.ab-cut-40 { clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }

/* Split intro: C(6) headline + 126 gap + C(5) lead, bottom aligned */
.ab-split { display: flex; align-items: flex-end; gap: 126px; }
.ab-split__head { display: flex; flex-direction: column; gap: 24px; width: 588px; flex: 0 1 588px; }
.ab-split__lead { width: 486px; flex: 0 1 486px; }

/* ---------- 01 HERO ---------- */
.ab-hero { padding-top: 100px; }
.ab-hero .fh-container { display: flex; flex-direction: column; align-items: center; gap: 96px; }
.ab-hero__intro { display: flex; flex-direction: column; align-items: center; gap: 32px; width: 996px; max-width: 100%; text-align: center; }
.ab-hero__title { font: 400 80px/81.6px var(--font-heading); letter-spacing: -3.2px; color: var(--color-brand-navy); }
.ab-hero__lead { width: 614px; max-width: 100%; }
.ab-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.ab-hero__actions .fh-btn--outline { min-width: 104px; }
.ab-hero__visual { width: 100%; height: 640px; overflow: hidden; }
.ab-hero__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 02 OUR GROUP · property journey ---------- */
.ab-group .fh-container { display: flex; flex-direction: column; gap: 96px; }
.ab-journey { --cols: 280px repeat(5, minmax(0, 1fr)); width: 100%; }
.ab-journey__head {
	display: grid; grid-template-columns: var(--cols); column-gap: 24px; align-items: start;
	padding-bottom: 9px; border-bottom: 1px solid var(--color-brand-navy); /* 68px tall header, as in Figma */
}
.ab-journey__label { font: 500 11px/normal var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; color: var(--color-text-body); }
.ab-journey__stage { display: flex; flex-direction: column; gap: 8px; white-space: nowrap; }
.ab-journey__num { font: 500 11px/normal var(--font-heading); letter-spacing: 1.6px; color: var(--color-text-muted); }
.ab-journey__name { font: 300 22px/normal var(--font-heading); letter-spacing: -0.5px; color: var(--color-brand-navy); }

.ab-journey__row {
	--bar: var(--color-brand-navy);
	display: grid; grid-template-columns: var(--cols); column-gap: 24px;
	height: 114px; border-bottom: 1px solid var(--color-line-default);
}
.ab-journey__row--academy { --bar: #fec91a; }
.ab-journey__row--agentnexa { --bar: #ff7439; }
.ab-journey__row--rigelnexa { --bar: #6d4ae8; }
.ab-journey__row--proxima { --bar: #19248e; }
.ab-journey__brand { display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 132px; margin-bottom: -18px; } /* 132px block overhangs the 114px row, as in Figma */
.ab-journey__brand > img { height: auto; max-height: 34px; width: auto; }
.ab-journey__row--academy .ab-journey__brand > img { width: 87px; height: 28px; margin: 2px 0; }
.ab-journey__row--agentnexa .ab-journey__brand > img { width: 128px; height: 30px; margin: 1px 0; }
.ab-journey__row--rigelnexa .ab-journey__brand > img { width: 123px; height: 34px; margin: -1px 0; }
.ab-journey__row--proxima .ab-journey__brand > img { width: 90px; height: 26px; margin: 3px 0; }

.ab-journey__track {
	grid-column: 2 / -1; position: relative;
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; align-items: start;
}
.ab-journey__track::before {
	content: ""; position: absolute; left: 0; right: 0; top: 80px; height: 1px; background: var(--color-line-default);
}
.ab-journey__row--academy .ab-journey__track::before { display: none; }
.ab-journey__bar {
	grid-column: var(--start) / span var(--span); grid-row: 1;
	position: relative; height: 4px; margin-top: 78px;
	--d: 0s; /* per-row stagger for the bar-grow animation (batch28) */
}
/* Batch28: the 4px fill is its own layer so the grow animation can clip it without clipping the diamond and caption. */
.ab-journey__bar::after { content: ""; position: absolute; inset: 0; background: var(--bar); }
/* Diamond marker (Figma 2175:1066 etc.): 11 x 11 solid square in the row colour, rotated 45deg (15.56px box),
   no stroke; left point on the bar start, centred on the 4px bar. */
.ab-journey__bar::before {
	content: ""; position: absolute; z-index: 1; left: 2.28px; top: -3.5px; width: 11px; height: 11px;
	background: var(--bar); transform: rotate(45deg);
}
.ab-journey__text {
	position: absolute; left: 0; bottom: calc(100% + 11px);
	font: 400 14px/normal var(--font-heading); color: var(--color-brand-navy); white-space: nowrap;
}
.ab-journey__stages {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.ab-journey__ongoing { grid-column: 2 / -1; grid-row: 1; position: relative; margin-top: 80px; margin-left: -24px; height: 2px; }
.ab-journey__ongoing::before {
	content: ""; position: absolute; inset: 0; border-top: 2px dashed var(--bar); opacity: .5;
}
.ab-journey__extra {
	position: absolute; right: 0; bottom: calc(100% + 11px);
	font: 400 12px/normal var(--font-body); color: var(--color-text-body); white-space: nowrap;
}

/* ---------- 03 OUR PURPOSE ---------- */
.ab-purpose { padding: 0 24px; }
.ab-purpose__panel { max-width: 1392px; margin: 0 auto; background: var(--color-brand-navy-deep); }
.ab-purpose__inner {
	max-width: 1392px; margin: 0 auto; padding: 140px 96px;
	display: flex; gap: 24px; align-items: flex-start; min-height: 809px;
}
.ab-purpose__eyebrow { flex: 0 0 282px; padding-top: 18px; }
.ab-purpose__copy { display: flex; flex-direction: column; gap: 56px; width: 792px; flex: 0 1 792px; }
.ab-purpose__title { font: 300 60px/66px var(--font-heading); letter-spacing: -2.2px; color: #fff; }
.ab-purpose__lead { color: rgba(255, 255, 255, .72); max-width: 588px; }

/* ---------- 04 THE OPPORTUNITY ---------- */
.ab-opportunity__inner { display: flex; align-items: center; gap: 126px; }
.ab-opportunity__copy { display: flex; flex-direction: column; gap: 24px; width: 486px; flex: 0 1 486px; }
.ab-opportunity__list { display: flex; flex-direction: column; align-items: flex-start; width: 588px; flex: 0 1 588px; }
.ab-parts li { font: 300 30px/46.5px var(--font-heading); letter-spacing: -0.8px; color: #b8c0cc; }
.ab-parts__rule { display: block; width: 72px; height: 1px; margin: 28px 0; background: var(--color-brand-navy); }
.ab-parts__summary { font: 400 30px/39px var(--font-heading); letter-spacing: -0.8px; color: var(--color-brand-navy); }

/* ---------- 05 OUR APPROACH ---------- */
.ab-approach { background: var(--color-surface-warm); }
.ab-approach .fh-container { display: flex; flex-direction: column; gap: 96px; }
.ab-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ab-step { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; border-top: 1px solid var(--color-brand-navy); }
.ab-step__num { display: block; margin-bottom: 32px; font: 300 72px/72px var(--font-heading); letter-spacing: -3px; color: #c9d0d8; }
.ab-step__title { font: 400 24px/normal var(--font-heading); letter-spacing: -0.6px; color: var(--color-brand-navy); }

/* ---------- A08 LEADERSHIP · founder + team (Figma 2176:949) ---------- */
.ab-leadership__inner { display: flex; flex-direction: column; gap: 72px; }
.ab-founder { display: flex; align-items: center; gap: 72px; }
.ab-founder__photo { flex: 0 0 420px; width: 420px; height: 560px; overflow: hidden; background: #e0e2e6; }
.ab-founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-founder__copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ab .ab-founder__title { margin-top: 26px; font: 400 46px/52px var(--font-heading); letter-spacing: -1px; color: var(--color-brand-navy); }
.ab .ab-founder__body { margin-top: 30px; font: 400 16px/26.4px var(--font-body); color: var(--color-text-body); }
.ab .ab-founder__body p + p { margin-top: 28px; }
.ab .ab-founder__sign { margin-top: 58px; font: 500 13px/18px var(--font-heading); letter-spacing: .6px; color: var(--color-text-body); }
.ab-founder__sign > span[aria-hidden] { margin: 0 .75em; }
.ab-team { display: flex; flex-direction: column; gap: 44px; }
.ab-team__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ab-team__title { font: 400 34px/40px var(--font-heading); letter-spacing: -0.6px; color: var(--color-brand-navy); }
.ab-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 56px; }
.ab-person { display: flex; flex-direction: column; padding-bottom: 30px; }
.ab-person__photo { height: 344px; overflow: hidden; background: #e0e2e6; }
.ab-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.ab .ab-person__name { margin-top: 18px; font: 500 18px/26px var(--font-heading); color: var(--color-brand-navy); }
.ab .ab-person__role { margin-top: 4px; font: 400 14px/21px var(--font-body); color: var(--color-text-body); }

/* ---------- 06 CLOSING · I'm a… picker ---------- */
.ab-closing__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.ab-closing__title { width: 518px; max-width: 100%; }
.ab-picker { display: flex; align-items: flex-start; margin-top: 72px; }
.ab-picker__label { font: 400 28px/normal var(--font-heading); letter-spacing: -0.6px; color: var(--color-brand-navy-guide); margin-top: 4px; margin-right: 11px; white-space: nowrap; }
.ab-picker__select { position: relative; display: block; width: 300px; height: 51.4px; margin-right: 23px; }
.ab-picker__select select {
	appearance: none; -webkit-appearance: none; width: 100%; height: 100%;
	padding: 4px 32px 0 2px; margin: 0; border: 0; border-bottom: 2px solid var(--color-brand-navy-guide); border-radius: 0;
	background: transparent; cursor: pointer;
	font: 400 28px/normal var(--font-heading); letter-spacing: -0.6px; color: var(--color-brand-navy-guide);
	align-self: flex-start;
}
.ab-picker__select select { padding-bottom: 8px; }
.ab-picker__select img { position: absolute; right: 3px; top: 20px; width: 18px; height: 11px; pointer-events: none; }
.ab-picker__go {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 100.6px; height: 52px; padding: 0; border: 0; cursor: pointer;
	background: var(--color-brand-navy-guide); color: #fff; font: 500 16px/normal var(--font-heading);
}
.ab-picker__go:hover { background: var(--color-brand-navy-deep); }
.ab-picker__go img { width: 12px; height: 12px; }
.ab .ab-closing__brands { margin-top: 64px; font: 400 15px/normal var(--font-body); color: var(--color-text-body); }
.ab-closing__brands a { color: var(--color-brand-navy); text-decoration: underline; text-underline-offset: 2px; }
.ab-closing__brands a:hover { text-decoration-thickness: 2px; }

/* ---------- Reveal on scroll (Rules board: fade up 24px, 600ms, 80ms stagger, once) ---------- */
.ab-js .ab-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: var(--ab-delay, 0ms); }
.ab-js .ab-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ab-js .ab-reveal { opacity: 1; transform: none; transition: none; }
}

/* ================= Responsive ================= */
/* 1024–1279: small desktop */
@media (max-width: 1279px) {
	.ab-split, .ab-opportunity__inner { gap: 72px; }
	.ab-purpose__inner { padding-left: 64px; padding-right: 64px; }
	.ab-purpose__eyebrow { flex-basis: 200px; }
	.ab-founder { gap: 56px; }
	.ab-founder__photo { flex-basis: 360px; width: 360px; height: 480px; }
}

/* 768–1023: tablet (8 columns, 48 margin, 120 section padding) */
@media (max-width: 1023px) {
	.ab-hero { padding-top: 96px; }
	.ab-hero .fh-container { gap: 72px; }
	.ab-hero__title { font-size: 60px; line-height: 64px; letter-spacing: -2.4px; }
	.ab-hero__visual { height: auto; aspect-ratio: 1200 / 640; }
	.ab-group .fh-container, .ab-approach .fh-container { gap: 64px; }
	.ab-split { flex-direction: column; align-items: flex-start; gap: 24px; }
	.ab-split__head, .ab-split__lead { width: 100%; flex: none; max-width: 588px; }
	.ab-journey { --cols: 160px repeat(5, minmax(0, 1fr)); }
	.ab-journey__name { font-size: 18px; }
	.ab-journey__text { white-space: normal; width: max-content; max-width: 260px; }
	.ab-purpose__inner { flex-direction: column; gap: 40px; padding: 120px 48px; min-height: 0; }
	.ab-purpose__eyebrow { flex: none; padding-top: 0; }
	.ab-purpose__copy { width: 100%; flex: none; gap: 40px; }
	.ab-purpose__title { font-size: 48px; line-height: 54px; letter-spacing: -1.8px; }
	.ab-opportunity__inner { flex-direction: column; align-items: flex-start; gap: 56px; }
	.ab-opportunity__copy, .ab-opportunity__list { width: 100%; flex: none; max-width: 588px; }
	.ab-founder { flex-direction: column; align-items: flex-start; gap: 48px; }
	.ab-founder__photo { flex: none; width: 100%; max-width: 420px; height: auto; aspect-ratio: 420 / 560; }
	.ab .ab-founder__title { font-size: 40px; line-height: 46px; }
	.ab-people { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
	.ab-person__photo { height: auto; aspect-ratio: 379 / 344; }
}

/* ≤767: mobile (4 columns, 24 margin, 80 section padding, mobile type sizes from board 02) */
@media (max-width: 767px) {
	.ab-h2 { font-size: 32px; line-height: 36px; letter-spacing: -1.2px; }
	.ab-hero { padding-top: 56px; }
	.ab-hero .fh-container { gap: 48px; }
	.ab-hero__intro { gap: 24px; }
	.ab-hero__title { font-size: 40px; line-height: 44px; letter-spacing: -1.6px; }
	.ab-hero__actions { margin-top: 0; }
	.ab-hero__visual { aspect-ratio: 342 / 300; }
	.ab-cut-40 { clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
	.ab-group .fh-container, .ab-approach .fh-container { gap: 48px; }

	/* Journey diagram → vertical list of businesses with their stages */
	.ab-journey__head { display: none; }
	.ab-journey__row { display: flex; flex-direction: column; gap: 14px; height: auto; padding: 24px 0; }
	.ab-journey__row:first-of-type { border-top: 1px solid var(--color-brand-navy); }
	.ab-journey__brand { height: auto; flex-direction: row; align-items: center; justify-content: space-between; }
	.ab-journey__track { display: block; }
	.ab-journey__track::before { display: none; }
	.ab-journey__bar { display: flex; flex-direction: column; gap: 8px; height: auto; margin: 0; padding-left: 18px; background: none; }
	.ab-journey__bar::before { left: 0; top: 5px; width: 9px; height: 9px; }
	.ab-journey__text { position: static; white-space: normal; width: auto; max-width: none; font-size: 16px; line-height: 22px; }
	.ab-journey__stages {
		position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
		font: 500 11px/16px var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; color: var(--color-text-muted);
	}
	.ab-journey__ongoing { display: block; margin: 8px 0 0 18px; height: auto; }
	.ab-journey__ongoing::before { display: none; }
	.ab-journey__extra { position: static; font: 500 11px/16px var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; color: var(--color-text-muted); }
	.ab-journey__extra::before { content: "+ "; }

	.ab-purpose { padding: 0 12px; }
	.ab-purpose__inner { padding: 80px 24px; gap: 32px; }
	.ab-purpose__copy { gap: 32px; }
	.ab-purpose__title { font-size: 34px; line-height: 38px; letter-spacing: -1.2px; }
	.ab-opportunity__inner { gap: 40px; }
	.ab-parts li { font-size: 22px; line-height: 34px; letter-spacing: -0.5px; }
	.ab-parts__rule { margin: 20px 0; }
	.ab-parts__summary { font-size: 22px; line-height: 28px; letter-spacing: -0.5px; }
	.ab-steps { grid-template-columns: 1fr; gap: 40px; }
	.ab-step { gap: 12px; padding-top: 24px; }
	.ab-step__num { font-size: 48px; line-height: 48px; letter-spacing: -2px; margin-bottom: 8px; }
	.ab-step__title { font-size: 20px; line-height: 26px; }
	.ab-leadership__inner { gap: 64px; }
	.ab-founder { gap: 32px; }
	.ab-founder__photo { max-width: none; aspect-ratio: 342 / 400; }
	.ab .ab-founder__title { margin-top: 20px; font-size: 32px; line-height: 38px; letter-spacing: -0.8px; }
	.ab .ab-founder__body { margin-top: 20px; }
	.ab .ab-founder__body p + p { margin-top: 20px; }
	.ab .ab-founder__sign { margin-top: 32px; }
	.ab-team { gap: 32px; }
	.ab-team__title { font-size: 28px; line-height: 34px; letter-spacing: -0.5px; }
	.ab-people { column-gap: 16px; row-gap: 28px; }
	.ab-person { padding-bottom: 0; }
	.ab .ab-person__name { margin-top: 12px; font-size: 15px; line-height: 21px; }
	.ab .ab-person__role { font-size: 13px; line-height: 18px; }
	.ab-closing__inner { gap: 24px; }
	.ab-picker { flex-wrap: wrap; justify-content: center; row-gap: 20px; margin-top: 16px; }
	.ab-picker__label { font-size: 22px; margin-right: 8px; }
	.ab-picker__select { width: 240px; height: 44px; margin-right: 0; }
	.ab-picker__select select { font-size: 22px; padding-bottom: 6px; }
	.ab-picker__select img { top: 16px; }
	.ab-picker__go { width: 100%; max-width: 342px; height: 52px; }
	.ab .ab-closing__brands { margin-top: 8px; line-height: 1.6; }
}

/* Batch 5: OUR PURPOSE wrap + shared bar-grow for The property journey. */
.ab-purpose-break { display: none; }
@media (min-width: 1024px) {
	.ab-purpose-break { display: block; }
}
/* Batch28: only the fill (::after) is clipped, so the diamond and caption are no longer cut off. The diamond pops in
   at the bar start, the fill draws from it, then the caption fades up. */
.ab-journey.is-armed .ab-journey__bar::after,
.ab-journey.is-armed .ab-journey__ongoing::before {
	clip-path: inset(0 100% 0 0);
	transition: clip-path .7s cubic-bezier(.22, .61, .36, 1);
	transition-delay: calc(var(--d) + .12s);
}
.ab-journey.is-armed .ab-journey__bar::before {
	opacity: 0; transform: rotate(45deg) scale(0);
	transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease-out;
	transition-delay: var(--d);
}
.ab-journey.is-armed .ab-journey__text {
	opacity: 0; transform: translateY(4px);
	transition: opacity .4s ease-out, transform .4s ease-out;
	transition-delay: calc(var(--d) + .45s);
}
.ab-journey.is-armed.is-in .ab-journey__bar::after,
.ab-journey.is-armed.is-in .ab-journey__ongoing::before { clip-path: inset(0 0 0 0); }
.ab-journey.is-armed.is-in .ab-journey__bar::before { opacity: 1; transform: rotate(45deg) scale(1); }
.ab-journey.is-armed.is-in .ab-journey__text { opacity: 1; transform: none; }
.ab-journey.is-armed .ab-journey__row:nth-child(3) .ab-journey__bar { --d: .12s; }
.ab-journey.is-armed .ab-journey__row:nth-child(4) .ab-journey__bar { --d: .24s; }
.ab-journey.is-armed .ab-journey__row:nth-child(5) .ab-journey__bar { --d: .36s; }
.ab-journey.is-armed .ab-journey__row--academy .ab-journey__ongoing::before { transition-delay: .77s; }
@media (max-width: 767px) {
	.ab-journey__bar::after { display: none; }
	.ab-journey.is-armed .ab-journey__ongoing::before,
	.ab-journey.is-armed .ab-journey__bar::before,
	.ab-journey.is-armed .ab-journey__text {
		clip-path: none; opacity: 1; transition: none;
	}
	.ab-journey.is-armed .ab-journey__bar::before { transform: rotate(45deg); }
	.ab-journey.is-armed .ab-journey__text { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ab-journey.is-armed .ab-journey__bar::after,
	.ab-journey.is-armed .ab-journey__ongoing::before { clip-path: none; transition: none; }
	.ab-journey.is-armed .ab-journey__bar::before { opacity: 1; transform: rotate(45deg); transition: none; }
	.ab-journey.is-armed .ab-journey__text { opacity: 1; transform: none; transition: none; }
}
