/**
 * About Us page (body.onc-about). All content stays in the WPBakery editor;
 * the rows are found by their el_class: onc-about-hero, onc-about-history, onc-about-team.
 * Colours follow the homepage sections (onc-home.css).
 */
body.onc-about {
	--oa-pink: #F21967;
	--oa-pink-dark: #cd0b50;
	--oa-purple: #7145b8;
	--oa-navy: #141841;
	--oa-heading: #363335;
	--oa-body: #61676D;
	--oa-line: #ebe6f4;
	--oa-wash: #faf8fc;
}
body.onc-about #page-content { color: var(--oa-body); }
body.onc-about #page-content :is(h1, h2) { color: var(--oa-heading); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; text-wrap: balance; }
body.onc-about #page-content h1 { font-size: clamp(34px, 3.6vw, 50px); margin: 10px 0 26px; }
body.onc-about #page-content h2 { font-size: clamp(28px, 2.8vw, 38px); margin: 10px auto 0; max-width: 820px; }
body.onc-about #page-content .onc-about-eyebrow { margin: 0; color: var(--oa-pink); font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; }
body.onc-about #page-content > .l-section:is(.onc-about-hero, .onc-about-history, .onc-about-team) { padding: 88px 0 !important; }
body.onc-about #page-content > .l-section > .l-section-h { max-width: 1200px !important; margin-inline: auto; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
body.onc-about #page-content .onc-about-hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(60% 80% at 0% 0%, rgba(113, 69, 184, .10), transparent 70%), radial-gradient(50% 70% at 100% 100%, rgba(242, 25, 103, .08), transparent 70%), linear-gradient(135deg, #fbf9fd, #fff 55%, #fdf5f8) !important;
}
body.onc-about .onc-about-hero > .l-section-h > .g-cols { align-items: center; gap: 64px; margin: 0; }
body.onc-about .onc-about-hero > .l-section-h > .g-cols > .wpb_column { width: calc(50% - 32px); padding: 0; margin: 0; }
body.onc-about .onc-about-hero .vc_column-inner { padding: 0 !important; max-width: none !important; }
body.onc-about .onc-about-hero .w-image { display: block; max-width: 600px; margin-inline: auto 0; }
body.onc-about .onc-about-hero .w-image img { width: 100%; height: auto; }
body.onc-about .onc-about-hero .wpb_text_column p { font-size: 17px; line-height: 1.75; margin: 0 0 18px; }
body.onc-about .onc-about-hero .wpb_text_column p:last-child { margin-bottom: 0; }
body.onc-about .onc-about-hero .wpb_text_column + .wpb_text_column p:first-child { color: var(--oa-heading); font-size: 18px; }

/* ── Timeline ─────────────────────────────────────────────────────────────
 * Desktop: centred line, milestones alternate left/right, big year across
 * the line from each card. Mobile: one track with the line and icons on the left.
 * The Ultimate Addons markup stays as it is (editable in WPBakery); the header
 * wrappers use display: contents so the year and text can be placed separately.
 * The hidden state for the scroll reveal only applies after js/about-page.js
 * adds .oa-tl-ready, so without JS everything shows. */
body.onc-about #page-content .onc-about-history { background: #fff !important; }
body.onc-about .onc-about-history .wpb_text_column { margin-bottom: 64px !important; }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime {
	--tl-axis: 80px;
	--tl-icon: 40px;
	--tl-line: #efe9f5;
	position: relative;
	max-width: 1060px;
	margin: 0 auto !important;
	padding: 0 !important;
}
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime :is(.timeline-line, .timeline-dot, .ult-timeline-arrow) { display: none !important; }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-wrapper {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 56px;
	height: auto !important;
	padding: 16px 0 !important;
	overflow: visible;
}
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-wrapper > :not(.timeline-block) { display: none !important; }

/* The line, and its purple → pink fill that grows while scrolling. */
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-wrapper::before,
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-wrapper::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	margin-left: -1.5px;
	border-radius: 3px;
	background: var(--tl-line);
	-webkit-mask-image: linear-gradient(transparent, #000 48px, #000 calc(100% - 48px), transparent);
	mask-image: linear-gradient(transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-wrapper::after {
	background: linear-gradient(var(--oa-purple), #bb378f 55%, var(--oa-pink));
	transform-origin: top;
	transform: scaleY(var(--tl-progress, 1));
}

/* One milestone = three columns: [card | icon | year] or [year | icon | card]. */
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-block {
	position: relative !important;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--tl-axis) minmax(0, 1fr);
	align-items: center;
	column-gap: 36px;
	float: none !important;
	clear: both;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	box-sizing: border-box;
}
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime :is(.timeline-header-block, .timeline-header) { display: contents !important; }

/* Icon node on the line. */
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-icon-block {
	grid-column: 2;
	grid-row: 1;
	position: relative !important;
	inset: auto !important;
	z-index: 1;
	display: grid !important;
	place-items: center;
	float: none !important;
	width: var(--tl-axis) !important;
	height: var(--tl-axis);
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid var(--tl-line);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 10px #fff, 0 14px 30px -10px rgba(80, 47, 120, .28);
	box-sizing: border-box;
	transition: border-color .6s ease, opacity .5s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime :is(.ult-timeline-icon, .ult-just-icon-wrapper, .align-icon, .aio-icon-img) {
	display: grid !important;
	place-items: center;
	position: static !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	width: var(--tl-icon) !important;
	height: var(--tl-icon) !important;
	font-size: 0 !important;
	line-height: 0 !important;
}
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .aio-icon-img::before,
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .aio-icon-img::after { display: none !important; }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-icon-block * { animation: none !important; opacity: 1 !important; transform: none !important; }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .img-icon {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	width: var(--tl-icon) !important;
	height: var(--tl-icon) !important;
	max-width: none !important;
	object-fit: contain;
}
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-block.is-in .timeline-icon-block { border-color: rgba(242, 25, 103, .55); }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-icon-block::after {
	content: '';
	position: absolute;
	inset: -2px;
	border: 2px solid var(--oa-pink);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime.oa-tl-ready .timeline-block.is-in .timeline-icon-block::after { animation: oaTlRing 1.4s ease-out .35s 1; }
@keyframes oaTlRing {
	from { opacity: .6; transform: scale(1); }
	to { opacity: 0; transform: scale(1.55); }
}

/* Year: one gradient for every year (the editor's per-year colours are overridden). */
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .ult-timeline-title {
	grid-row: 1;
	position: relative;
	margin: 0 !important;
	color: var(--oa-purple) !important;
	background: linear-gradient(120deg, var(--oa-purple), var(--oa-pink));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: clamp(44px, 4.6vw, 64px) !important;
	line-height: 1.05 !important;
	font-weight: 750;
	letter-spacing: -.03em;
	transition: opacity .7s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .ult-timeline-title::after {
	content: '';
	display: block;
	width: 48px;
	height: 4px;
	margin-top: 14px;
	border-radius: 4px;
	background: var(--oa-pink);
}

/* Text card with a small pointer towards the line. */
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-item-spt {
	grid-row: 1;
	position: relative;
	margin: 0;
	padding: 28px 32px;
	border: 1px solid var(--oa-line);
	border-radius: 18px;
	background: var(--oa-wash);
	box-shadow: 0 1px 2px rgba(20, 24, 65, .04);
	color: var(--oa-body) !important;
	font-size: 16px !important;
	line-height: 1.7 !important;
	text-align: left !important;
	transition: opacity .7s ease, transform .9s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, border-color .3s ease;
}
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-item-spt::before {
	content: '';
	position: absolute;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 1px solid var(--oa-line);
	background: var(--oa-wash);
	transform: rotate(45deg);
	transition: border-color .3s ease;
}
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-item-spt:hover { border-color: rgba(242, 25, 103, .28); box-shadow: 0 18px 40px -18px rgba(80, 47, 120, .3); }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-item-spt:hover::before { border-color: rgba(242, 25, 103, .28); }

/* Card on the left, year on the right. */
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-post-left .timeline-item-spt { grid-column: 1; }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-post-left .timeline-item-spt::before { right: -8px; border-left: 0; border-bottom: 0; }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-post-left .ult-timeline-title { grid-column: 3; justify-self: start; text-align: left !important; }
/* Year on the left, card on the right. */
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-post-right .timeline-item-spt { grid-column: 3; }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-post-right .timeline-item-spt::before { left: -8px; border-right: 0; border-top: 0; }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-post-right .ult-timeline-title { grid-column: 1; justify-self: end; text-align: right !important; }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-post-right .ult-timeline-title::after { margin-left: auto; }

/* Scroll reveal (only after the script is ready). */
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime.oa-tl-ready .timeline-block:not(.is-in) .timeline-icon-block { opacity: 0; transform: scale(.4); }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime.oa-tl-ready .timeline-block:not(.is-in) .ult-timeline-title { opacity: 0; transform: translateY(24px); }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime.oa-tl-ready .timeline-post-left:not(.is-in) .timeline-item-spt { opacity: 0; transform: translateX(-56px); }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime.oa-tl-ready .timeline-post-right:not(.is-in) .timeline-item-spt { opacity: 0; transform: translateX(56px); }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime.oa-tl-ready .timeline-block.is-in .ult-timeline-title { transition-delay: .15s; }
body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime.oa-tl-ready .timeline-block.is-in .timeline-item-spt { transition-delay: .25s, .25s, 0s, 0s; }

@media (max-width: 899px) {
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime { --tl-axis: 56px; --tl-icon: 30px; }
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-wrapper { gap: 32px; padding: 0 !important; }
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-wrapper::before,
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-wrapper::after { left: calc(var(--tl-axis) / 2); }
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-block { grid-template-columns: var(--tl-axis) minmax(0, 1fr); column-gap: 16px; row-gap: 12px; align-items: start; }
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-icon-block { grid-column: 1 !important; grid-row: 1 / span 2 !important; box-shadow: 0 0 0 6px #fff, 0 8px 20px -8px rgba(80, 47, 120, .3); }
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-block .ult-timeline-title { grid-column: 2 !important; grid-row: 1 !important; justify-self: start; display: flex; align-items: center; min-height: var(--tl-axis); text-align: left !important; font-size: 36px !important; }
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .ult-timeline-title::after { display: none; }
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-block .timeline-item-spt { grid-column: 2 !important; grid-row: 2 !important; padding: 20px; border-radius: 16px; font-size: 15px !important; }
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-item-spt::before { display: none; }
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime.oa-tl-ready .timeline-block:not(.is-in) .timeline-item-spt { transform: translateY(28px); }
}
@media (prefers-reduced-motion: reduce) {
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime :is(.timeline-icon-block, .ult-timeline-title, .timeline-item-spt) { transition: none !important; }
	body.onc-about .onc-about-history .smile-icon-timeline-wrap.csstime .timeline-icon-block::after { display: none; }
}

/* ── Team ─────────────────────────────────────────────────────────────────
 * The three WPBakery rows (with their empty columns) become one centred grid:
 * 7 + 7 on desktop, the last row always centred. Names stay on one line.
 * Cards fade up one after another on scroll (js/about-page.js). */
body.onc-about #page-content .onc-about-team { background: linear-gradient(180deg, #fff, #f7f4fb) !important; }
body.onc-about .onc-about-team .wpb_wrapper:has(> .g-cols > .employee) {
	--team-cols: 7;
	--team-gap: 22px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px var(--team-gap);
}
body.onc-about .onc-about-team .wpb_wrapper:has(> .g-cols > .employee) > :not(.g-cols) { flex: 0 0 100%; }
body.onc-about .onc-about-team .wpb_wrapper:has(> .g-cols > .employee) > .w-separator { display: none; }
body.onc-about .onc-about-team .wpb_wrapper:has(> .g-cols > .employee) > .wpb_text_column { margin-bottom: 28px !important; }
body.onc-about .onc-about-team .g-cols:has(> .employee) { display: contents !important; }
body.onc-about .onc-about-team .employee { width: auto !important; margin: 0 !important; padding: 0 !important; min-width: 0; }
body.onc-about .onc-about-team .employee:not(:has(.w-person)) { display: none; }
body.onc-about .onc-about-team .employee .vc_column-inner { padding: 0 !important; }
body.onc-about .onc-about-team .employee:has(.w-person) {
	flex: 0 0 calc((100% - (var(--team-cols) - 1) * var(--team-gap)) / var(--team-cols));
	max-width: 170px;
}
body.onc-about .onc-about-team .employee .w-person {
	height: 100%;
	padding: 9px 9px 16px;
	border: 1px solid var(--oa-line);
	border-radius: 20px;
	background: #fff !important;
	box-shadow: 0 1px 2px rgba(20, 24, 65, .04);
	text-align: center !important;
	box-sizing: border-box;
	transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease, opacity .7s ease;
}
body.onc-about .onc-about-team .employee .w-person:hover {
	transform: translateY(-6px);
	border-color: rgba(242, 25, 103, .25);
	box-shadow: 0 22px 44px -20px rgba(80, 47, 120, .35);
}
body.onc-about .onc-about-team .employee .w-person-image {
	width: 100%;
	height: auto !important;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 14px;
	background: linear-gradient(160deg, #f6f1fb, #fbeef3);
}
body.onc-about .onc-about-team .employee .w-person-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: none;
	transition: transform .6s cubic-bezier(.22, 1, .36, 1) !important;
}
body.onc-about .onc-about-team .employee .w-person:hover .w-person-image img { transform: scale(1.06) !important; }
body.onc-about .onc-about-team .employee .w-person-content {
	position: static !important;
	opacity: 1 !important;
	transform: none !important;
	padding: 12px 2px 0 !important;
	background: transparent !important;
}
body.onc-about .onc-about-team .employee .w-person-name {
	display: block !important;
	max-width: none !important;
	width: auto !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
	color: var(--oa-navy) !important;
	font-size: 15px !important;
	line-height: 1.35 !important;
	font-weight: 650;
	text-wrap: balance;
}
body.onc-about .onc-about-team .employee :is(.w-person-name, .w-person-role) { text-align: center !important; }
body.onc-about .onc-about-team .employee .w-person-role {
	padding: 0 !important;
	color: var(--oa-pink-dark) !important;
	font-size: 12.5px !important;
	line-height: 1.45;
	font-weight: 500;
}
/* The theme tilts the name and role 15° on hover (child theme .hover .employee rules);
 * here the text stays put: the name turns pink and a short bar grows under the role
 * (its 3px height is always reserved, so nothing shifts). */
body.onc-about .onc-about-team .employee :is(.w-person-name, .w-person-role),
body.onc-about .onc-about-team .employee:hover :is(.w-person-name, .w-person-role) {
	transform: none !important;
	padding-right: 0 !important;
	transition: color .3s ease !important;
}
body.onc-about .onc-about-team .employee .w-person:hover .w-person-name { color: var(--oa-pink) !important; }
body.onc-about .onc-about-team .employee .w-person-content::after {
	content: '';
	display: block;
	width: 24px;
	height: 3px;
	margin: 10px auto 0;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--oa-purple), var(--oa-pink));
	transform: scaleX(0);
	transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
body.onc-about .onc-about-team .employee .w-person:hover .w-person-content::after { transform: scaleX(1); }

body.onc-about .onc-about-team .oa-team-ready .employee:not(.is-in) .w-person { opacity: 0; transform: translateY(28px); }
body.onc-about .onc-about-team .oa-team-ready .employee.is-in .w-person { transition-delay: var(--team-delay, 0s), var(--team-delay, 0s), 0s, var(--team-delay, 0s); }
body.onc-about .onc-about-team .oa-team-ready .employee.is-in .w-person:hover { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
	body.onc-about .onc-about-team .employee :is(.w-person, .w-person-image img) { transition: none !important; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1260px) {
	body.onc-about #page-content > .l-section > .l-section-h { padding-inline: 32px !important; }
}
@media (max-width: 1199px) {
	body.onc-about .onc-about-team .wpb_wrapper:has(> .g-cols > .employee) { --team-cols: 5; }
}
@media (max-width: 1024px) {
	body.onc-about .onc-about-hero > .l-section-h > .g-cols { gap: 36px; }
	body.onc-about .onc-about-hero > .l-section-h > .g-cols > .wpb_column { width: calc(50% - 18px); }
}
@media (max-width: 767px) {
	body.onc-about #page-content > .l-section:is(.onc-about-hero, .onc-about-history, .onc-about-team) { padding: 52px 0 !important; }
	body.onc-about #page-content > .l-section > .l-section-h { padding-inline: 20px !important; }
	body.onc-about .onc-about-hero > .l-section-h > .g-cols { flex-direction: column; gap: 32px; }
	body.onc-about .onc-about-hero > .l-section-h > .g-cols > .wpb_column { width: 100%; }
	body.onc-about .onc-about-hero .align-to-right { order: 2; }
	body.onc-about .onc-about-hero .w-image { max-width: 420px; margin-inline: auto; }
	body.onc-about .onc-about-hero .wpb_text_column p { font-size: 16px; }
	body.onc-about .onc-about-history .wpb_text_column { margin-bottom: 40px !important; }
	body.onc-about :is(.onc-about-history, .onc-about-team) .g-cols,
	body.onc-about :is(.onc-about-history, .onc-about-team) > .l-section-h > .g-cols > .wpb_column { margin: 0; }
	body.onc-about :is(.onc-about-history, .onc-about-team) > .l-section-h > .g-cols > .wpb_column > .vc_column-inner { padding: 0 !important; }
	body.onc-about .onc-about-team .wpb_wrapper:has(> .g-cols > .employee) { --team-cols: 3; --team-gap: 12px; row-gap: 16px; }
	body.onc-about .onc-about-team .employee .w-person { padding: 7px 7px 13px; border-radius: 16px; }
	body.onc-about .onc-about-team .employee .w-person-image { border-radius: 12px; }
	body.onc-about .onc-about-team .employee .w-person-name { font-size: 13.5px !important; }
	body.onc-about .onc-about-team .employee .w-person-role { font-size: 11.5px !important; }
}
@media (max-width: 479px) {
	body.onc-about .onc-about-team .wpb_wrapper:has(> .g-cols > .employee) { --team-cols: 2; }
}
