/* =========================================================================
   About section ("Why Rang-e Panjom") - modern redesign
   Markup: modules/main-parts/about.tpl   Behaviour: js/about-modern.js
   Palette: dark #29292B, red #fb4848, light #f6f6f7. RTL, IranSans.
   ========================================================================= */

.rp-about {
	--rp-dark: #29292B;
	--rp-ink: #1d1d1f;
	--rp-red: #fb4848;
	--rp-red-2: #c62f2f;
	--rp-muted: #77777d;
	--rp-line: rgba(41, 41, 43, 0.09);
	--rp-surface: #ffffff;
	--rp-bg: #f6f6f7;
	--rp-radius: 20px;
	--rp-ease: cubic-bezier(.2, .8, .2, 1);

	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 720px;
	direction: rtl;
	background: var(--rp-bg);
	overflow: hidden;
	font-family: 'IranSans', sans-serif;
}

/* ------------------------------------------------------------------ photo side */
.rp-photo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;          /* RTL: tabs sit on the left edge, against the content block */
	padding: 0;
	background-color: #0d0b0b;
	background-position: right top;
	background-size: cover;
	background-repeat: no-repeat;
	overflow: visible;
	isolation: isolate;
	z-index: 2;
}
.rp-photo > .about-motion-layer { overflow: hidden; }
.rp-photo-shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(to right, rgba(10, 8, 8, 0.78) 0%, rgba(10, 8, 8, 0.3) 38%, rgba(10, 8, 8, 0) 62%),
		linear-gradient(to top, rgba(10, 8, 8, 0.45), rgba(10, 8, 8, 0) 40%);
}
.rp-tabs-wrap {
	position: relative;
	z-index: 3;
	width: min(390px, 72%);
	margin: 0;
}

/* tab stack, attached to the content block (flat edge on the content side) */
.rp-tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	border-radius: 0 24px 24px 0;        /* RTL: round on the photo side, flat against the content */
	background: rgba(18, 16, 18, 0.55);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-left: 0;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
}
.rp-tabs li { margin: 0; position: relative; }
.rp-tabs li + li .rp-tab { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.rp-tabs li:first-child .rp-tab { border-radius: 0 24px 0 0; }
.rp-tabs li:last-child .rp-tab { border-radius: 0 0 24px 0; }
.rp-tab {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 24px 24px 24px 22px;
	color: #fff !important;
	text-decoration: none !important;
	transition: background-color .35s var(--rp-ease);
}
.rp-tab::before {             /* red fill of the active tab */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(110deg, var(--rp-red-2) 0%, var(--rp-red) 100%);
	opacity: 0;
	transform: scaleX(.4);
	transform-origin: left center;
	transition: opacity .45s var(--rp-ease), transform .5s var(--rp-ease);
	z-index: -1;
}
.rp-tab::after {              /* pointer from the active tab into the content */
	content: "";
	position: absolute;
	top: 50%;
	left: -11px;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	background: var(--rp-red-2);
	transform: rotate(45deg) scale(0);
	transition: transform .45s var(--rp-ease);
	z-index: -2;
	border-radius: 3px;
}
.rp-tab:hover { background: rgba(255, 255, 255, 0.06); }
.rp-tabs li.active .rp-tab { background: transparent; }
.rp-tabs li.active .rp-tab::before { opacity: 1; transform: scaleX(1); }
.rp-tabs li.active .rp-tab::after { transform: rotate(45deg) scale(1); }
.rp-tab-num {
	font-family: 'IranSansMedium', 'IranSans', sans-serif;
	font-size: 12px;
	letter-spacing: .5px;
	color: rgba(255, 255, 255, 0.4);
	min-width: 18px;
	transition: color .35s;
}
.rp-tabs li.active .rp-tab-num { color: rgba(255, 255, 255, 0.9); }
.rp-tab-ico {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: background-color .35s, border-color .35s, transform .45s var(--rp-ease);
}
.rp-tab-ico span::before { margin: 0 !important; font-size: 21px !important; }
.rp-tab:hover .rp-tab-ico { transform: translateY(-2px); }
.rp-tabs li.active .rp-tab-ico { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.3); }
.rp-tab-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.rp-tab-text strong { font-family: 'IranSansBold', sans-serif; font-size: 17px; font-weight: normal; line-height: 1.4; }
.rp-tab-text small { font-size: 12.5px; color: rgba(255, 255, 255, 0.62); line-height: 1.5; }
.rp-tabs li.active .rp-tab-text small { color: rgba(255, 255, 255, 0.92); }
.rp-tab-arrow {
	font-size: 22px;
	opacity: 0;
	transform: translateX(8px);
	transition: opacity .35s var(--rp-ease), transform .35s var(--rp-ease);
}
.rp-tab:hover .rp-tab-arrow,
.rp-tabs li.active .rp-tab-arrow { opacity: 1; transform: none; }
.rp-tab:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
/* autoplay progress line along the bottom of the active tab */
.rp-tab-progress {
	position: absolute;
	right: 22px;
	left: 22px;
	bottom: 10px;
	height: 2px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.22);
	opacity: 0;
	overflow: hidden;
	transition: opacity .3s;
}
.rp-tab-progress::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	transform: scaleX(var(--rp-progress, 0));
	transform-origin: right center;
}
.rp-about.is-autoplay .rp-tabs li.active .rp-tab-progress { opacity: 1; }

/* ------------------------------------------------------------------ content side */
.rp-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	padding: 72px clamp(24px, 5vw, 80px);
	background:
		radial-gradient(520px 320px at 0% 0%, rgba(251, 72, 72, 0.07), transparent 70%),
		var(--rp-bg);
}
.rp-content { min-width: 0; }
.rp-content > .rp-pane { width: 100%; min-width: 0; position: relative; }
.rp-milestones { min-width: 0; max-width: 100%; }
.rp-content > .tab-pane { display: none; }
.rp-content > .tab-pane.active { display: block; }

/* big outlined number of the active tab, behind the content */
.rp-pane::before {
	content: attr(data-num);
	position: absolute;
	top: -46px;
	left: -6px;
	font-family: 'IranSansUltraLight', 'IranSans', sans-serif;
	font-size: clamp(110px, 12vw, 190px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(41, 41, 43, 0.07);
	pointer-events: none;
	user-select: none;
}

/* entry animation each time a tab opens */
.rp-pane.active.in > * { animation: rp-rise .7s var(--rp-ease) both; }
.rp-pane.active.in > *:nth-child(2) { animation-delay: .07s; }
.rp-pane.active.in > *:nth-child(3) { animation-delay: .14s; }
.rp-pane.active.in > *:nth-child(4) { animation-delay: .21s; }
@keyframes rp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.rp-head { margin-bottom: 18px; position: relative; }
.rp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--rp-muted);
	margin-bottom: 12px;
}
.rp-eyebrow::before {
	content: "";
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--rp-red-2), var(--rp-red));
}
.rp-title {
	margin: 0;
	font-family: 'IranSansBold', sans-serif;
	font-weight: normal;
	font-size: clamp(26px, 2.6vw, 40px);
	line-height: 1.35;
	color: var(--rp-ink);
	letter-spacing: -0.2px;
}
.rp-title em {
	font-style: normal;
	background: linear-gradient(120deg, var(--rp-red) 10%, var(--rp-red-2) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.rp-lead {
	margin: 0 0 30px;
	max-width: 620px;
	font-size: 15.5px;
	line-height: 2.05;
	color: #5c5c62;
	text-align: justify;
}
.rp-hl { color: var(--rp-red); font-weight: normal; font-family: 'IranSansBold', sans-serif; }

/* ---- 01: counters */
.rp-stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.rp-stat {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 16px;
	align-items: center;
	padding: 20px 22px;
	background: var(--rp-surface);
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-radius);
	transition: transform .4s var(--rp-ease), box-shadow .4s var(--rp-ease), border-color .4s;
	overflow: hidden;
}
.rp-stat::after {               /* soft red light that follows the hover */
	content: "";
	position: absolute;
	inset: auto -30% -60% auto;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(251, 72, 72, 0.16), transparent);
	opacity: 0;
	transition: opacity .4s;
}
.rp-stat:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(41, 41, 43, 0.35); border-color: rgba(251, 72, 72, 0.35); }
.rp-stat:hover::after { opacity: 1; }
.rp-stat-ico {
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: rgba(251, 72, 72, 0.09);
	color: var(--rp-red);
	transition: background-color .4s, color .4s, transform .4s var(--rp-ease);
}
.rp-stat-ico span::before { margin: 0 !important; font-size: 26px !important; }
.rp-stat:hover .rp-stat-ico { background: var(--rp-red); color: #fff; transform: rotate(-6deg); }
.rp-stat-num {
	display: flex;
	align-items: baseline;
	gap: 4px;
	direction: ltr;
	justify-content: flex-end;
	font-family: 'IranSansBlack', 'IranSans', sans-serif;
	font-size: clamp(28px, 2.4vw, 36px);
	line-height: 1.1;
	color: var(--rp-ink);
}
.rp-stat-num i { font-style: normal; color: var(--rp-red); font-size: .7em; }
.rp-stat-label { font-size: 13.5px; color: var(--rp-muted); margin-top: 4px; }

/* ---- 02: process steps (round nodes on a flowing path, like the original layout) */
.rp-steps {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	row-gap: 34px;
	column-gap: 10px;
}
.rp-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: default;
}
.rp-step-node {
	position: relative;
	display: grid;
	place-items: center;
	width: 118px;
	height: 118px;
	border-radius: 50%;
	background: var(--rp-surface);
	border: 1px solid #ebebee;
	box-shadow: inset 0 0 0 7px #f4f4f6, 0 18px 34px -22px rgba(41, 41, 43, 0.45);
	transition: background-color .5s var(--rp-ease), box-shadow .5s var(--rp-ease), transform .5s var(--rp-ease), border-color .5s;
	z-index: 1;
}
.rp-step-node::after {            /* pulse ring */
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 50%;
	border: 2px solid var(--rp-red);
	opacity: 0;
	transform: scale(1);
}
.rp-step-ico {
	display: block;
	color: var(--rp-red);
	font-size: 40px !important;
	line-height: 1;
	transition: color .5s, transform .5s var(--rp-ease);
}
.rp-step-ico::before { margin: 0 !important; font-size: 40px !important; }
.rp-step-num {
	position: absolute;
	top: -2px;
	left: -2px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--rp-dark);
	color: #fff;
	font-family: 'IranSansBold', sans-serif;
	font-size: 16px;
	border: 3px solid var(--rp-bg);
	transition: background-color .5s, transform .5s var(--rp-ease);
}
.rp-step h3 {
	margin: 14px 0 0;
	font-family: 'IranSansBold', sans-serif;
	font-weight: normal;
	font-size: 15px;
	color: var(--rp-ink);
	transition: color .4s;
}
/* highlighted step: the step the flow is on (hovering a step moves the flow there, see js) */
.rp-step.is-current .rp-step-node {
	background: linear-gradient(140deg, var(--rp-red) 0%, var(--rp-red-2) 100%);
	border-color: transparent;
	box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.14), 0 22px 40px -16px rgba(251, 72, 72, 0.6);
	transform: translateY(-4px);
}
.rp-step.is-current .rp-step-ico { color: #fff; transform: scale(1.06); }
.rp-step.is-current .rp-step-num { background: #fff; color: var(--rp-red); transform: rotate(-10deg); }
.rp-step.is-current h3 { color: var(--rp-red); }
.rp-step.is-current .rp-step-node::after { animation: rp-pulse 1.4s var(--rp-ease) infinite; }
.rp-step.is-done .rp-step-num { background: var(--rp-red-2); }
@keyframes rp-pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }

/* snake order: 1 2 3 on the top row, then 4 5 6 come back underneath (RTL: col 1 is on the right) */
.rp-steps { position: relative; }
.rp-step:nth-child(4) { grid-column: 3; grid-row: 2; }
.rp-step:nth-child(5) { grid-column: 2; grid-row: 2; }
.rp-step:nth-child(6) { grid-column: 1; grid-row: 2; }

/* curved connectors, drawn by js/about-modern.js into this SVG */
.rp-steps-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible !important;   /* beats bootstrap's svg:not(:root) { overflow: hidden } */
	pointer-events: none;
	z-index: 0;
}
/* hand-drawn brush arrows: soft dark stroke, drawn over in red as the flow passes */
.rp-link-base { fill: rgba(41, 41, 43, 0.28); stroke: none; transition: fill .5s; }
.rp-link-guide { fill: none; stroke: none; }
.rp-link-fill {
	fill: none;
	stroke: url(#rp-link-grad);
	stroke-width: 9;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset .9s var(--rp-ease);
}
.rp-link.is-done .rp-link-fill { stroke-dashoffset: 0; }
.rp-link-head {
	fill: none;
	stroke: rgba(41, 41, 43, 0.4);
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke .35s .65s;
}
.rp-link.is-done .rp-link-head { stroke: var(--rp-red); }
.rp-link-spark {
	fill: #fff;
	stroke: var(--rp-red);
	stroke-width: 3;
	filter: drop-shadow(0 0 6px rgba(251, 72, 72, 0.9));
	opacity: 0;
}

/* ---- 03: our story - year timeline (photos are 95px thumbnails, shown small so they stay sharp) */
.rp-milestones { position: relative; }
.rp-years {
	position: relative;
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	align-items: end;
	margin: 6px 0 26px;
	padding-bottom: 18px;
}
.rp-years-line {
	position: absolute;
	right: 0;
	left: 0;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: rgba(41, 41, 43, 0.1);
}
.rp-years-line span {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(to left, var(--rp-red-2), var(--rp-red));
	transition: width .7s var(--rp-ease);
}
.rp-year {
	position: relative;
	padding: 0 0 6px;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: 'IranSansMedium', 'IranSans', sans-serif;
	font-size: 15px;
	color: rgba(41, 41, 43, 0.4);
	transition: color .35s, transform .35s var(--rp-ease);
}
.rp-year::after {                   /* dot on the rail */
	content: "";
	position: absolute;
	bottom: -17px;
	right: 50%;
	width: 12px;
	height: 12px;
	margin-right: -6px;
	border-radius: 50%;
	background: var(--rp-bg);
	border: 2px solid rgba(41, 41, 43, 0.25);
	transition: border-color .35s, background-color .35s, transform .35s var(--rp-ease), box-shadow .35s;
	z-index: 1;
}
.rp-year:hover { color: var(--rp-ink); }
.rp-year.is-past { color: rgba(41, 41, 43, 0.6); }
.rp-year.is-past::after { border-color: var(--rp-red); background: var(--rp-red); }
.rp-year.is-active { color: var(--rp-red); transform: translateY(-3px); }
.rp-year.is-active::after { border-color: var(--rp-red); background: #fff; transform: scale(1.35); box-shadow: 0 0 0 5px rgba(251, 72, 72, 0.15); }
.rp-year:focus-visible { outline: 2px solid var(--rp-red); outline-offset: 4px; border-radius: 6px; }

.rp-mile-stage { position: relative; min-height: 250px; }
.rp-mile { position: relative; }
.rp-mile[hidden] { display: none; }
.rp-mile.is-active > * { animation: rp-rise .6s var(--rp-ease) both; }
.rp-mile.is-active > *:nth-child(2) { animation-delay: .06s; }
.rp-mile.is-active > *:nth-child(3) { animation-delay: .12s; }
.rp-mile-year {                       /* big typographic year */
	position: absolute;
	top: -22px;
	left: 0;
	font-family: 'IranSansBlack', 'IranSans', sans-serif;
	font-size: clamp(64px, 7vw, 108px);
	line-height: 1;
	background: linear-gradient(180deg, rgba(251, 72, 72, 0.22), rgba(251, 72, 72, 0));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	pointer-events: none;
	user-select: none;
}
.rp-mile-row { position: relative; display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.rp-mile-media {
	flex: 0 0 auto;
	margin: 0;
	width: 88px;
	height: 88px;
	padding: 4px;
	border-radius: 22px;
	background: linear-gradient(140deg, var(--rp-red), var(--rp-dark));
	box-shadow: 0 16px 30px -16px rgba(41, 41, 43, 0.6);
	transform: rotate(-4deg);
}
.rp-mile-media img { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 18px; }
.rp-mile-body { min-width: 0; }
.rp-mile-tag {
	display: inline-block;
	margin-bottom: 6px;
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(251, 72, 72, 0.1);
	color: var(--rp-red);
	font-family: 'IranSansMedium', 'IranSans', sans-serif;
	font-size: 12.5px;
}
.rp-mile h3 { margin: 0; font-family: 'IranSansBold', sans-serif; font-weight: normal; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--rp-ink); }
.rp-mile p + p { margin-top: 10px !important; }
.rp-mile p { margin: 0; max-width: 640px; font-size: 14.5px; line-height: 2.05; color: #5c5c62; text-align: justify; }

/* "Today": the activity goes on - a live pulsing point on the rail and an icon frame */
.rp-year--now { color: var(--rp-red); }
.rp-year--now::after { border-color: var(--rp-red); background: var(--rp-red); }
.rp-year--now::before {           /* live pulse around the point */
	content: "";
	position: absolute;
	bottom: -17px;
	right: 50%;
	width: 12px;
	height: 12px;
	margin-right: -6px;
	border-radius: 50%;
	background: rgba(251, 72, 72, 0.45);
	animation: rp-live 1.8s ease-out infinite;
	z-index: 0;
}
@keyframes rp-live { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }
.rp-mile-media--now {
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 34px;
}
.rp-mile-media--now span { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 18px; background: rgba(0, 0, 0, 0.12); }
.rp-mile--now .rp-mile-tag { display: inline-flex; align-items: center; gap: 7px; }
.rp-live-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rp-red);
}
.rp-live-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--rp-red);
	animation: rp-live 1.8s ease-out infinite;
}

.rp-mile-nav { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.rp-mile-btn {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--rp-line);
	background: var(--rp-surface);
	color: var(--rp-ink);
	font-size: 20px;
	cursor: pointer;
	transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--rp-ease);
}
.rp-mile-btn:hover { background: var(--rp-red); border-color: var(--rp-red); color: #fff; transform: scale(1.06); }
.rp-mile-count { font-family: 'IranSansMedium', 'IranSans', sans-serif; font-size: 14px; color: var(--rp-muted); }
.rp-mile-count b { color: var(--rp-ink); font-weight: normal; font-size: 18px; }

/* ---- 04: FAQ */
.rp-faq { display: flex; flex-direction: column; gap: 10px; }
.rp-faq-item {
	background: var(--rp-surface);
	border: 1px solid var(--rp-line);
	border-radius: 18px;
	transition: border-color .35s, box-shadow .35s;
	overflow: hidden;
}
.rp-faq-item.is-open { border-color: rgba(251, 72, 72, 0.35); box-shadow: 0 18px 36px -24px rgba(251, 72, 72, 0.5); }
.rp-faq-q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	background: none;
	border: 0;
	text-align: right;
	font-family: 'IranSansBold', sans-serif;
	font-size: 15px;
	color: var(--rp-ink);
	cursor: pointer;
}
.rp-faq-q:focus-visible { outline: 2px solid var(--rp-red); outline-offset: -2px; border-radius: 18px; }
.rp-faq-q i {             /* plus that turns into minus */
	position: relative;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(41, 41, 43, 0.06);
	transition: background-color .35s, transform .45s var(--rp-ease);
}
.rp-faq-q i::before,
.rp-faq-q i::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	border-radius: 2px;
	background: var(--rp-ink);
	transition: transform .45s var(--rp-ease), background-color .35s;
}
.rp-faq-q i::after { transform: rotate(90deg); }
.rp-faq-item.is-open .rp-faq-q i { background: var(--rp-red); transform: rotate(180deg); }
.rp-faq-item.is-open .rp-faq-q i::before,
.rp-faq-item.is-open .rp-faq-q i::after { background: #fff; }
.rp-faq-item.is-open .rp-faq-q i::after { transform: rotate(0deg); }
.rp-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--rp-ease); }
.rp-faq-item.is-open .rp-faq-a { grid-template-rows: 1fr; }
.rp-faq-a > div { overflow: hidden; }
.rp-faq-a p { margin: 0; padding: 0 22px 20px; font-size: 14px; line-height: 2; color: #5c5c62; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1199px) {
	.rp-tabs-wrap { width: min(340px, 80%); }
	.rp-tab { padding: 20px 18px; }
	.rp-tab-text strong { font-size: 15.5px; }
	.rp-step-node { width: 100px; height: 100px; }
}

@media (max-width: 991px) {
	.rp-about { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.rp-photo { min-height: 360px; padding: 0; align-items: flex-end; }
	.rp-photo-shade { background: linear-gradient(to top, rgba(10, 8, 8, 0.85) 0%, rgba(10, 8, 8, 0.2) 55%, rgba(10, 8, 8, 0) 80%); }
	/* tabs become a swipeable pill bar at the bottom of the photo */
	.rp-photo { overflow: hidden; }
	.rp-tabs-wrap { width: 100%; margin: 0; padding: 0 16px 16px; }
	.rp-tabs {
		flex-direction: row;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		border-radius: 20px;
		border: 1px solid rgba(255, 255, 255, 0.08);
		padding: 8px;
		gap: 6px;
	}
	.rp-tabs li + li .rp-tab { border-top: 0; }
	.rp-tabs li .rp-tab { border-radius: 14px !important; }
	.rp-tab::after { display: none; }
	.rp-tab-progress { right: 12px; left: 12px; bottom: 4px; }
	.rp-tabs::-webkit-scrollbar { display: none; }
	.rp-tabs li { flex: 0 0 auto; scroll-snap-align: start; }
	.rp-tab { padding: 10px 14px 10px 16px; gap: 10px; }
	.rp-tab-num, .rp-tab-arrow, .rp-tab-text small { display: none; }
	.rp-tab-ico { width: 36px; height: 36px; border-radius: 11px; }
	.rp-tab-ico span::before { font-size: 17px !important; }
	.rp-tab-text strong { font-size: 14px; white-space: nowrap; }
	.rp-content { padding: 44px 20px 52px; }
	.rp-pane::before { top: -30px; font-size: 120px; }
}

@media (max-width: 575px) {
	.rp-photo { min-height: 300px; }
	.rp-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.rp-stat { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 10px; padding: 16px; text-align: right; }
	.rp-stat-ico { grid-row: auto; width: 46px; height: 46px; border-radius: 14px; }
	.rp-stat-ico span::before { font-size: 22px !important; }
	.rp-stat-num { justify-content: flex-end; }
	.rp-steps { grid-template-columns: 1fr 1fr; row-gap: 26px; }
	/* snake for two columns: 1 2 / 4 3 / 5 6 */
	.rp-step:nth-child(1) { grid-column: 1; grid-row: 1; }
	.rp-step:nth-child(2) { grid-column: 2; grid-row: 1; }
	.rp-step:nth-child(3) { grid-column: 2; grid-row: 2; }
	.rp-step:nth-child(4) { grid-column: 1; grid-row: 2; }
	.rp-step:nth-child(5) { grid-column: 1; grid-row: 3; }
	.rp-step:nth-child(6) { grid-column: 2; grid-row: 3; }
	.rp-years { margin-bottom: 20px; }
	.rp-year { font-size: 12.5px; }
	.rp-mile-media { width: 74px; height: 74px; border-radius: 18px; }
	.rp-mile-media img { width: 66px; height: 66px; border-radius: 15px; }
	.rp-mile-media--now span { width: 66px; height: 66px; border-radius: 15px; }
	.rp-mile-media--now { font-size: 28px; }
	.rp-mile p { text-align: right; font-size: 14px; }
	.rp-step-node { width: 92px; height: 92px; }
	.rp-step-ico, .rp-step-ico::before { font-size: 32px !important; }
	.rp-step-num { width: 34px; height: 34px; font-size: 14px; }
	.rp-faq-q { padding: 16px 18px; font-size: 14px; }
	.rp-lead { font-size: 14.5px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
	.rp-about *, .rp-about *::before, .rp-about *::after { animation: none !important; transition: none !important; }
}

/* stats: plus sign on the left of the number (reads "+20" in RTL, like Persian usage) */
.rp-stat-num i { order: -1; }

/* tab stack shadow: only on the photo side, never spilling a grey band onto the light content side */
.rp-tabs { box-shadow: 40px 30px 60px -24px rgba(0, 0, 0, 0.65); }

/* living-photo layer: hard clip, so its zoomed stage can never paint a strip over the light content side while loading */
.rp-photo > .about-motion-layer { clip-path: inset(0); contain: paint; }

/* ---- root fix for the grey strip beside the tabs on load/scroll:
   the photo side is clipped, so its zooming photo layer / blur can never paint over the light side.
   The active-tab pointer is drawn by js/about-modern.js (initPointer) on the section instead. */
@media (min-width: 992px) {
	.rp-photo { overflow: hidden; }
	.rp-tab::after { display: none; }
	.rp-tab-pointer {
		position: absolute; z-index: 4; top: 0; left: 0;
		width: 15px; height: 30px; margin: -15px 0 0 -14px;
		background: var(--rp-red-2);
		clip-path: polygon(100% 0, 0 50%, 100% 100%);
		opacity: 0; transform: scaleX(0); transform-origin: right center;
		pointer-events: none;
		transition: opacity .3s, transform .45s var(--rp-ease);
	}
	.rp-tab-pointer.is-on { opacity: 1; transform: none; }
	.rp-about.is-pointer-ready .rp-tab-pointer { transition: top .5s var(--rp-ease), opacity .3s, transform .45s var(--rp-ease); }
}
@media (max-width: 991px) { .rp-tab-pointer { display: none; } }
