/* Statement, quote, people and chips sections.
   Values from the Figma page-builder kit: kit3.js R.statement, R.people, R.quote and
   kit3x.js R.chips. Phone values are the M (390) branch, desktop values apply from 768px
   (kit z() desktop), and row layouts start at 1024px. Motion per 03-MOTION-SPEC.md 5.2, 5.3. */

/* ================================================================ Statement (R.statement) */
.statement {
	display: flex; flex-direction: column; align-items: center; gap: 16px;
	padding: 36px 22px; border-radius: var(--r-card-l);
	background: var(--c-lav-soft); box-shadow: var(--sh-inset);
	text-align: center;
}
.statement__t {
	max-width: 940px;
	font: var(--fw-medium) 30px/34px var(--f-head); letter-spacing: -.9px;
	color: var(--c-ink); text-wrap: balance;
}
.statement__sub { max-width: 700px; font-size: 15px; line-height: 24px; color: rgba(10, 13, 49, .74); text-wrap: balance; }
.statement__note { max-width: 700px; font-size: 13px; line-height: 20px; color: var(--ink-60); text-wrap: balance; }
@media (min-width: 768px) {
	.statement { gap: 22px; padding: 56px; border-radius: var(--r-card-xl); }
	.statement__t { font-size: 44px; line-height: 50px; letter-spacing: -1.6px; }
	.statement__sub { font-size: 18px; line-height: 29px; }
}
@media (min-width: 1024px) {
	.statement { padding: 80px; }
	.statement__t { font-size: 52px; line-height: 59px; }
}

/* ================================================================ Quote (R.quote) */
.quote {
	display: flex; flex-direction: column; gap: 14px;
	padding: 24px 22px; border-radius: var(--r-card);
}
.quote__rating { display: flex; align-items: center; gap: 12px; }
.quote__score {
	font: var(--fw-regular) 40px/44px var(--f-body); letter-spacing: -1.6px; color: var(--c-ink);
}
.quote__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.quote__stars { display: flex; gap: 3px; color: var(--c-blue); }
.quote__star { width: 14px; height: 14px; }
.quote__reviews { font-size: 13px; line-height: 20px; color: rgba(10, 13, 49, .65); }
.quote__rule { display: block; height: 1px; background: var(--ink-10); }
.quote__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.quote__t p {
	font: var(--fw-medium) 23px/31px var(--f-head); letter-spacing: -.5px; color: var(--c-ink); text-wrap: balance;
}
.quote__by { font-size: 13px; line-height: 20px; color: var(--ink-62); }
@media (min-width: 768px) {
	.quote { padding: 48px 56px; border-radius: var(--r-card-l); }
	.quote__t p { font-size: 32px; line-height: 42px; }
	.quote__by { font-size: 14px; line-height: 22px; }
	.quote__reviews { font-size: 14px; }
}
@media (min-width: 1024px) {
	.quote { flex-direction: row; align-items: center; gap: 48px; }
	.quote__rating { flex: 0 0 200px; flex-direction: column; gap: 8px; }
	.quote__score { font-size: 72px; line-height: 76px; letter-spacing: -3px; }
	.quote__meta { align-items: center; }
	.quote__rule { flex: none; width: 1px; height: 120px; }
	.quote__body { flex: 1 1 0; }
}

/* ================================================================ People (R.people) */
.people { display: flex; flex-direction: column; gap: 14px; }
.person {
	display: flex; align-items: center; gap: 16px;
	padding: 20px; border-radius: var(--r-card);
}
.person__disc {
	display: grid; place-items: center; flex: none; overflow: hidden;
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--grad-brand); box-shadow: var(--sh-soft);
	font: var(--fw-medium) 17px/26px var(--f-head); color: var(--c-white);
}
.person__disc img { width: 100%; height: 100%; object-fit: cover; }
.person__copy { display: flex; flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; }
.person__name { font: var(--fw-medium) 19px/25px var(--f-head); letter-spacing: -.4px; }
.person__role { font: var(--fw-medium) 13px/19px var(--f-body); color: var(--c-blue); }
.person__d { font-size: 14px; line-height: 21px; color: var(--ink-72); }
@media (min-width: 768px) {
	.people { flex-direction: row; align-items: stretch; gap: 24px; }
	.person { flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px; border-radius: var(--r-card-l); }
	.person__disc { width: 64px; height: 64px; font-size: 21px; }
	.person__copy { flex: none; width: 100%; }
	.person__name { font-size: 26px; line-height: 32px; }
	.person__role { font-size: 15px; line-height: 22px; }
	.person__d { font-size: 15px; line-height: 23px; }
}

/* ================================================================ Chips (kit3x R.chips) */
.chips-card {
	display: flex; flex-direction: column; gap: 18px;
	padding: 24px 20px; border-radius: 22px;
}
/* head(c, d, {s:40, ms:26}) */
.head--chips .h2 { font-size: 26px; line-height: 30px; letter-spacing: -.4px; }
.chips-cols { display: flex; flex-direction: column; gap: 18px; }
.chipsg { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* Figma: Ink 55%. Ink 60% keeps 4.5:1 on Mist at this size (spec 3.5). */
.chipsg__t {
	font: var(--fw-medium) 12px/18px var(--f-body); letter-spacing: .6px; text-transform: uppercase;
	color: var(--ink-60);
	text-wrap: balance; /* as a heading wraps: the title is a plain label when it repeats the section heading (chips.php) */
}
.chipsg__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chipsg__chip {
	display: inline-flex; align-items: center; max-width: 100%;
	padding: 8px 13px; border-radius: var(--r-pill);
	background: var(--c-white); box-shadow: inset 0 0 0 1px var(--ink-10);
	font: var(--fw-medium) 13px/18px var(--f-body); color: var(--c-ink);
}
@media (min-width: 768px) {
	.chips-card { gap: 32px; padding: 48px; border-radius: var(--r-card-xl); }
	.head--chips .h2 { font-size: 40px; line-height: 46px; letter-spacing: -.9px; }
	.chips-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
	.chips-cols.is-single { grid-template-columns: minmax(0, 1fr); }
	.chipsg { gap: 16px; }
	.chipsg__t { font-size: 13px; }
	.chipsg__list { gap: 10px; }
	.chipsg__chip { padding: 9px 16px; font-size: 14px; line-height: 19px; }
}
@media (min-width: 1024px) {
	.chips-cols { grid-template-columns: repeat(var(--per), minmax(0, 1fr)); gap: 48px; }
	.chips-cols.is-many { gap: 36px 40px; }
}

/* ================================================================ Motion */
/* Word reveal CSS (.w, blur and cap per width) lives in motion.css (spec 14.4). */
/* Sub, note and attribution fade once the last word has started (capped like the words). */
html.motion-ok .statement [data-reveal="fade"][style*="--nw"],
html.motion-ok .quote [data-reveal="fade"][style*="--nw"] {
	transition-delay: calc(min(var(--nw, 0), var(--word-cap)) * var(--stagger-word));
}

/* People: initials discs pop after their card starts. */
html.motion-ok .person .person__disc {
	transition: opacity 500ms var(--ease-out-quart), transform 700ms var(--ease-spring-ui);
	transition-delay: calc(min(calc(var(--i, 0) * var(--stagger-grid) + var(--lead-gap)), var(--stagger-cap)) + 150ms);
}
html.motion-ok .person[data-reveal]:not(.is-in) .person__disc { opacity: 0; transform: scale(.6); }

/* Chips: groups `up` with the pair stagger (data-stagger), pills pop with the chip
   stagger after their group starts, capped at 12 per group. */
html.motion-ok .chipsg__chip {
	transition: opacity 400ms var(--ease-out-quart), transform 600ms var(--ease-spring-ui);
	transition-delay: calc(min(calc(var(--i, 0) * var(--stagger-pair) + var(--lead-gap)), var(--stagger-cap)) + 120ms + min(var(--ci, 0), 12) * var(--stagger-chip));
}
html.motion-ok .chipsg[data-reveal]:not(.is-in) .chipsg__chip { opacity: 0; transform: scale(.92); }

/* Paused or reduced motion: plain text and end states (spec 12.1). */
html.motion-paused .person__disc, html.motion-paused .chipsg__chip {
	opacity: 1 !important; transform: none !important; filter: none !important;
}
@media print {
	.statement { box-shadow: none; }
}
