/*
 * About - Intro.
 *
 * Read from cp-all-designer css/about-us.css:73-117, 177-238, 426-450 and
 * css/app.css:304-315 (.btn, .btn--navy). What the Style tab sets arrives
 * through the widget's selectors; a size left empty there scales the way
 * the design's does, through the two numbers below.
 *
 * Steps: app.css's own (1280 / 1200 / 1024 / 860 / 640 / 380), and the
 * design's 1000px, where the two columns become one.
 */

/* app.css:127-128, 2889-2900 — --vwu is 1% of 1440, --vhu 1% of the window
   height, each capped per step; --pad is the page gutter */
.custom-about-intro {
	--custom-vwu: 14.4px;
	--custom-vhu: clamp(5.2px, 1svh, 9px);
	--custom-pad: 90px;
	--custom-abtin-curl: 120px;
	position: relative;
	display: block;
	box-sizing: border-box;
	/* app.css:385-389 .sec--rhythm */
	padding: min(clamp(52px, calc(8.6 * var(--custom-vwu)), 160px), calc(13.7 * var(--custom-vhu))) var(--custom-pad);
	background: #FFFFFF;
}

@media (max-width: 1280px) { .custom-about-intro { --custom-vwu: 12.2px; --custom-vhu: clamp(5.2px, 1svh, 8.5px); } }
@media (max-width: 1200px) { .custom-about-intro { --custom-vwu: 11.2px; --custom-vhu: clamp(5.2px, 1svh, 8.35px); } }
@media (max-width: 1024px) { .custom-about-intro { --custom-vwu: 9.2px; --custom-vhu: clamp(5.2px, 1svh, 8px); --custom-pad: 40px; } }
@media (max-width: 860px)  { .custom-about-intro { --custom-vwu: 7.7px; --custom-vhu: clamp(5.2px, 1svh, 7.8px); } }
@media (max-width: 640px)  { .custom-about-intro { --custom-vwu: 4.2px; --custom-vhu: clamp(5.2px, 1svh, 7.6px); --custom-pad: 24px; } }
@media (max-width: 600px)  { .custom-about-intro { --custom-abtin-curl: 70px; } }   /* about-us.css:450 */
@media (max-width: 380px)  { .custom-about-intro { --custom-vwu: 3.6px; --custom-vhu: clamp(5.2px, 1svh, 7.2px); } }

.custom-about-intro__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
}

/* about-us.css:73-76, 206 — copy a little narrower than the picture */
.custom-about-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	align-items: center;
	gap: clamp(28px, calc(3.6 * var(--custom-vwu)), 60px);   /* app.css:153 --pair-gap */
}

.custom-about-intro__grid--flip {
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.custom-about-intro__grid--flip .custom-about-intro__visual {
	order: -1;
	margin-left: 0;
	margin-right: auto;
}

.custom-about-intro__copy {
	min-width: 0;
}

/* about-us.css:211-217 — the short line over the first paragraph */
.custom-about-intro__copy::before {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-bottom: clamp(24px, calc(2.4 * var(--custom-vwu)), 34px);
	border-radius: 999px;
	background: linear-gradient(90deg, var(--custom-abtin-line-a, #50A3D5), var(--custom-abtin-line-b, #16418C));
}

.custom-about-intro__copy--plain::before {
	display: none;
}

/* about-us.css:87-99 */
.custom-about-intro__p {
	box-sizing: border-box;   /* app.css * — the 62ch includes the note's own inset */
	max-width: 62ch;
	letter-spacing: normal;
	margin: 0 0 18px;
	font-size: clamp(16px, calc(1.25 * var(--custom-vwu)), 18px);
	font-weight: 300;
	line-height: 1.85;
	color: #475569;
}

.custom-about-intro__p:last-of-type {
	margin-bottom: 0;
}

.custom-about-intro__open {
	margin-bottom: 22px;
	font-size: clamp(18px, calc(1.5 * var(--custom-vwu)), 22px);
	font-weight: 400;
	line-height: 1.72;
	color: #16418C;
}

/* about-us.css:221-226 */
.custom-about-intro__note {
	margin-top: clamp(22px, calc(2.2 * var(--custom-vwu)), 30px);
	padding-left: clamp(18px, calc(1.6 * var(--custom-vwu)), 24px);
	border-left: 2px solid #CCDAF2;
	line-height: 1.75;
}

.custom-about-intro .nb {
	white-space: nowrap;
}

/* app.css:304-315 .btn .btn--navy, about-us.css:100 */
.custom-about-intro__button {
	box-sizing: border-box;
	--custom-press-ground: #16418C;
	--custom-press-ink: #FFFFFF;
	--custom-press-edge: transparent;
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin-top: clamp(26px, calc(3 * var(--custom-vwu)), 40px);
	padding: 15px 30px;
	border-width: 1.5px;
	border-style: solid;
	border-radius: 16px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: normal;
	white-space: nowrap;
	cursor: pointer;
	transition: all 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-about-intro__button:hover {
	--custom-press-ground: #50A3D5;
	--custom-press-shadow: 0 14px 30px rgba(80, 163, 213, 0.30);
	transform: translateY(-2px);
}

.custom-about-intro__button:focus-visible {
	outline: 2px solid #50A3D5;
	outline-offset: 3px;
}

/* about-us.css:107-110, 177, 237-238 — the picture in the leaf frame,
   held to 760px and set against the right edge on a wide screen */
.custom-about-intro__visual {
	min-width: 0;
	max-width: 760px;
	margin-left: auto;
	width: 100%;
}

.custom-about-intro__frame {
	position: relative;
	z-index: 1;
	overflow: hidden;
	aspect-ratio: 4 / 3.1;
	border-radius: var(--custom-abtin-curl) 0 var(--custom-abtin-curl) 0;
	background: #F0F4FA;
	box-shadow: 0 34px 80px -20px rgba(22, 65, 140, 0.30);
}

.custom-about-intro__grid--flip .custom-about-intro__frame {
	border-radius: 0 var(--custom-abtin-curl) 0 var(--custom-abtin-curl);
}

.custom-about-intro__frame img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

/* about-us.css:430-449 — one column, picture first */
@media (max-width: 1000px) {
	.custom-about-intro__grid,
	.custom-about-intro__grid--flip {
		grid-template-columns: minmax(0, 1fr);
		gap: clamp(24px, calc(4 * var(--custom-vwu)), 40px);
	}

	.custom-about-intro__visual {
		order: -1;
		max-width: none;
		margin-left: 0;
	}

	.custom-about-intro__frame {
		aspect-ratio: 16 / 10;
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-about-intro__button {
		transition: none;
	}

	.custom-about-intro__button:hover {
		transform: none;
	}
}

/* the design wraps text plainly; some themes set "pretty" wrapping on
   paragraphs, which moves Thai line breaks */
.custom-about-intro p,
.custom-about-intro h2,
.custom-about-intro h3,
.custom-about-intro span {
	text-wrap: wrap;
	text-rendering: optimizeLegibility;
}
