/* Why Lithyem (templates/why-lithyem.php). Loaded only on pages using that template. */

/* Hero pitch: this design sets the line slightly smaller than the Service page, and a little wider. */
.tpl-why-lithyem .hero__pitch p { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; max-width: 680px; }

/* Mission: a ruled label, then one large serif paragraph. Words in *asterisks* are red, not italic. */
.why-lithyem__mission { display: flex; flex-direction: column; gap: 24px; }
.why-lithyem__mission-label { padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.why-lithyem__mission-text { margin: 0; font: 300 clamp(26px, 2.9vw, 44px)/1.3 var(--serif); letter-spacing: -.015em; text-wrap: pretty; }
.why-lithyem__mission-text em { font-style: normal; color: var(--red); }

/* Our name: headline and photo on the left, text on the right. */
.why-lithyem__name { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.why-lithyem__name-head { display: flex; flex-direction: column; gap: 20px; }
.why-lithyem__name-head .shead__title em { color: var(--red); }
.why-lithyem__name-head .why-lithyem__photo { margin-top: 20px; }
.why-lithyem__name-body { display: flex; flex-direction: column; gap: 22px; border-top: 1px solid var(--ink); padding-top: 28px; }
.why-lithyem__name-body p { margin: 0; font: 300 18px/1.65 var(--sans); color: var(--body); text-wrap: pretty; }
.why-lithyem__name-body .why-lithyem__lead { font: 300 clamp(22px, 2vw, 30px)/1.4 var(--serif); letter-spacing: -.01em; color: var(--ink); }

/* Photo box, 4:3. The picture fills it; with no picture the box shows its background colour. */
.why-lithyem__photo { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 3; background: var(--ink); }
.why-lithyem__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Core values: a dark card with the values in one row. A value in *asterisks* is the italic accent. */
.why-lithyem__values { background: var(--ink); color: var(--paper); border-radius: var(--radius-dark); padding: 56px; display: flex; flex-direction: column; gap: 40px; }
/* The card's title is a headline, the same size as the title of the dark card on the FrictionScore page. */
.why-lithyem__values-title { margin: 0; font: 400 clamp(34px, 3.6vw, 52px)/1 var(--display); letter-spacing: -.02em; }
.why-lithyem__values-title em { color: var(--red-on-dark); }
.why-lithyem__values-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; border-top: 1px solid rgba(241, 237, 229, .2); padding-top: 32px; }
.why-lithyem__value { font: 400 clamp(28px, 2.6vw, 40px)/1.05 var(--display); letter-spacing: -.015em; }
.why-lithyem__value em { color: var(--red-on-dark); }

/* How we work: four steps, each with a small "Step 1" label. */
.why-lithyem__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.why-lithyem__step { display: flex; flex-direction: column; gap: 10px; }
.why-lithyem__step-label { font: 400 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.why-lithyem__step-title { margin: 0; font: 400 30px/1.1 var(--serif); letter-spacing: -.015em; }
.why-lithyem__step-text { margin: 4px 0 0; font: 300 15.5px/1.6 var(--sans); color: var(--body); }

/* Our story: three photo cards, each with a ruled date line. */
.why-lithyem__story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.why-lithyem__era { display: flex; flex-direction: column; gap: 16px; }
.why-lithyem__era .why-lithyem__photo { border-radius: 16px; background: var(--sand); }
.why-lithyem__era-label { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); padding-top: 8px; border-top: 1px solid var(--ink); }
.why-lithyem__era-title { margin: 0; font: 400 32px/1.05 var(--serif); letter-spacing: -.02em; }
.why-lithyem__era-text { margin: 0; font: 300 15.5px/1.65 var(--sans); color: var(--body); text-wrap: pretty; }
.why-lithyem__era-text a, .why-lithyem__era-text a:visited { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* Closing cards: white by default, red with style "red". The button sits at the bottom of the card. */
.why-lithyem__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why-lithyem__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.why-lithyem__card--red { background: var(--red); color: #fff; border: 0; }
.why-lithyem__card-label { font: 400 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.why-lithyem__card-title { margin: 0; font: 400 clamp(36px, 3.4vw, 52px)/1 var(--display); letter-spacing: -.02em; }
.why-lithyem__card-text { margin: 0; font: 300 16px/1.6 var(--sans); color: var(--body); }
.why-lithyem__card--red .why-lithyem__card-label { color: inherit; }
.why-lithyem__card--red .why-lithyem__card-text { color: inherit; opacity: .92; }

.why-lithyem__btn, .why-lithyem__btn:visited { align-self: flex-start; margin-top: auto; background: var(--ink); color: #fff; border-radius: 999px; padding: 15px 24px; font: 500 15px var(--sans); transition: background .2s, color .2s; }
.why-lithyem__btn:hover { background: var(--red); color: #fff; }
.why-lithyem__card--red .why-lithyem__btn, .why-lithyem__card--red .why-lithyem__btn:visited { background: #fff; color: var(--ink); }
.why-lithyem__card--red .why-lithyem__btn:hover { background: var(--ink); color: #fff; }

/* Mobile rules from the design file. */
@media (max-width: 1100px) {
	.why-lithyem__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.why-lithyem__values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.why-lithyem__story { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
}

@media (max-width: 760px) {
	.tpl-why-lithyem .hero__pitch { row-gap: 32px; }
	.why-lithyem__name, .why-lithyem__cards { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
	.why-lithyem__steps { grid-template-columns: minmax(0, 1fr); }
	.why-lithyem__values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.why-lithyem__values, .why-lithyem__card { padding: 28px 22px; }
}
