/* Home page. */

/* Hero */
.hero { background: var(--night); color: var(--white); overflow: hidden; }
.hero__inner {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem;
	padding-top: clamp(4.5rem, 2rem + 3.5vw, 6rem); padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.hero__pill { margin-bottom: 1.25rem; }
.hero__title { max-width: 4.6em; margin-bottom: 0.2em; }
.hero__sub { max-width: 31rem; margin-bottom: 1.75rem; }

/* Photo background with a dark overlay (white text stays above AA contrast) and the link pills. */
.hero--photo { position: relative; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(15 27 45 / 94%) 0%, rgb(15 27 45 / 82%) 55%, rgb(15 27 45 / 74%) 100%); }
.hero--photo .hero__inner { position: relative; z-index: 1; }
.hero__pills ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 31rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.hero-pill {
	display: flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.55em 1.1em;
	border: 2px solid var(--white); border-radius: var(--radius-pill); background: rgb(15 27 45 / 45%); color: var(--white);
	font: 700 clamp(1rem, 0.9rem + 0.6vw, 1.375rem)/1.15 var(--font-body); text-align: center; text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.hero-pill:hover, .hero-pill:focus-visible { background: var(--white); color: var(--night); }
@media (min-width: 1101px) {
	.hero__inner { min-height: 42.7vw; padding-block: 3rem; }
}
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; gap: 3rem; padding-top: 8rem; }
	.hero__pills ul { margin-inline: 0; }
}

/* Numbers strip: exact tiles on a slightly deeper concrete band */
.numbers { padding-block: clamp(1.75rem, 1rem + 2vw, 2.75rem); background: var(--concrete-deep); }
/* Leaf shape from the design: round top-left and bottom-right, sharp top-right and bottom-left. */
.stat { border-radius: clamp(32px, 2rem + 2vw, 56px) 0 clamp(32px, 2rem + 2vw, 56px) 0; }
.numbers .stat { padding-top: 2.5rem; text-align: center; }
.numbers .stat__num { margin: 0; }

/* Page cards */
.section--cards { border-bottom: 1px solid var(--night); } /* full-width rule under the cards, per the design */
.section--cards h2 { font-size: var(--fs-h2); }
.section--cards .card-grid { gap: 1.75rem; }

/* Resource Hub feature */
.hub__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hub__title { font-size: clamp(2.25rem, 1.2rem + 3.9vw, 4.875rem); margin-top: 1rem; }
.hub__chips { margin: 1.5rem 0; }
.hub__chips .chip { font-weight: 500; }
.hub__media > img { display: block; width: 100%; height: auto; }
@media (min-width: 1101px) { .hub__media > img { width: 110%; max-width: none; margin-left: -8%; } }
@media (min-width: 1380px) { .hub__media > img { width: 126.4%; margin-left: -15.6%; } }
@media (max-width: 900px) {
	.hub__inner { grid-template-columns: 1fr; }
}

/* Light to Hope */
.lth { position: relative; overflow: hidden; padding-top: clamp(3rem, 2rem + 5vw, 6rem); padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); background: var(--white); }
.lth__bg { position: absolute; inset: 0; }
.lth__bg img { width: 100%; height: 100%; object-fit: cover; }
.lth__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(255 255 255 / 70%) 0%, rgb(255 255 255 / 82%) 50%, var(--white) 92%); }
.lth__inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2.5rem, 2rem + 4vw, 5rem); }
.lth__scene { padding: 0.5rem; background: var(--white); }
.lth__scene img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lth__text h2 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem); }
.lth__text p { font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem); line-height: 1.4; }
.lth__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.lth__step { padding: 2.25rem 1.5rem; border-radius: 32px; background: var(--night); color: var(--white); text-align: center; }
.lth__icon { width: 6rem; height: 6rem; margin: 0 auto 1.25rem; object-fit: contain; }
.lth__step h3 { margin-bottom: 0.25em; }
.lth__step p { margin: 0; font-size: var(--fs-card-body); }

/* Speaker Series */
.speaker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); }
.speaker__card { display: grid; border-radius: 34px; }
.speaker__card--past { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.25rem; padding: 1.75rem; background: var(--night); color: var(--white); }
.speaker__card--next { align-content: center; background: var(--floodlight); color: var(--night); }
.speaker__panel { position: relative; display: flex; align-items: flex-end; overflow: hidden; min-height: 22rem; border-radius: 24px; background: #1b2b4b; }
.speaker__panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 0; }
.speaker__panel-text { position: relative; margin: 0; padding: 1.5rem; line-height: 1; }
.speaker__panel-title { display: block; font: 800 clamp(1.75rem, 1.4rem + 1vw, 2.5rem)/1.05 var(--font-heading); }
.speaker__panel-title--accent { color: var(--floodlight); }
.speaker__panel-text small { display: block; margin-top: 0.4rem; font-size: 0.9rem; }
.speaker__body { padding: clamp(0.5rem, 2vw, 2.5rem); align-self: center; }
.speaker__card--past .speaker__body { padding: 0.5rem 0.5rem 0.5rem 0; }
.speaker__quote { margin: 1.25rem 0; }
.speaker__quote p { margin: 0; font: 700 1.375rem/1.35 var(--font-heading); letter-spacing: 0.01em; }
.speaker__byline { margin: 0; opacity: 0.95; }
.speaker__card--next h3 { margin: 1rem 0 0.75rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.speaker__card--next .chips { margin: 1.25rem 0; }
.speaker__photo img { width: 100%; height: 14rem; object-fit: cover; border-radius: 34px 34px 0 0; }

/* Partners strip */
.section--deep { background: var(--concrete-deep); }
.partners .section__head { max-width: none; }
.partners__grid { display: flex; max-width: 62rem; margin-inline: auto; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(1rem, 3vw, 3rem); }
.partners__grid li { width: min(100%, 16.75rem); }
.partner-tile { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 1.5rem 1rem 1.25rem; border: 2px dashed var(--night); border-radius: 26px; background: var(--concrete); color: var(--night); text-align: center; text-decoration: none; }
a.partner-tile:hover .partner-tile__name { text-decoration: underline; }
.partners__more { margin: 2.5rem 0 0; text-align: center; }
.partner-tile__badge { display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 0.75rem; border-radius: 50%; font: 800 1.5rem/1 var(--font-heading); letter-spacing: 0.04em; background: var(--night); color: var(--white); }
.partner-tile__badge--orange { background: var(--orange-aa); }
.partner-tile__badge--yellow { background: var(--floodlight); color: var(--night); }
.partner-tile__badge--slate { background: var(--slate); }
.partner-tile__logo { width: auto; max-width: 70%; height: 4rem; margin-bottom: 0.75rem; object-fit: contain; }
.partner-tile__name { font: 800 clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem)/1.1 var(--font-heading); }
.partner-tile__region { margin-top: 0.35rem; font-size: 0.9375rem; }

@media (max-width: 1024px) {
	.lth__steps { grid-template-columns: repeat(2, 1fr); }
	.speaker__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.lth__inner { grid-template-columns: 1fr; }
	.lth__scene { max-width: 22rem; }
}
@media (max-width: 640px) {
	.lth__steps { grid-template-columns: 1fr; }
	.speaker__card--past { grid-template-columns: 1fr; }
	.speaker__panel { min-height: 20rem; }
	.speaker__card--past .speaker__body { padding: 0.5rem; }
}
.hero--photo .ticker { position: relative; z-index: 1; }
/* Section heights measured against the design at 1440 px (desktop only). */
@media (min-width: 1101px) {
	.section--cards { padding-block: calc(var(--section-y) + 18px); }
	.hub { padding-block: calc(var(--section-y) - 28px); }
	.lth, .speaker { padding-block: calc(var(--section-y) + 4px); }
	.involved { padding-block: calc(clamp(3rem, 2rem + 5vw, 6rem) + 70px); }
}

/* Three number tiles: same tile size as with four, centred */
@media (min-width: 1101px) {
	.stat-grid:has(> .stat:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, calc((100% - 3.75rem) / 4))); justify-content: center; }
}
@media (min-width: 541px) and (max-width: 1100px) {
	.stat-grid > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.625rem); }
}
