/**
 * Projects hub and project pages: the blocks that exist only there.
 * Values from design/source/projects.dc.html, project-1.dc.html and
 * project-2.dc.html (inline styles and their media rules).
 */

/* ==== Projects hub ========================================================= */

/* ---- Hero with the index of open projects ---- */

.p-pj-hero {
	overflow: hidden;
	padding-top: clamp(72px, 9vw, 110px);
	padding-bottom: clamp(76px, 9vw, 112px);
}

.p-pj-hero__glow {
	top: -300px;
	width: 920px;
	height: 920px;
	background: radial-gradient(circle, rgba(245, 163, 4, .13), transparent 62%);
}

.p-pj-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(30px, 5vw, 72px);
	align-items: end;
}

.p-pj-hero__title {
	margin: 16px 0 0;
	max-width: 15ch;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(36px, 5.4vw, 72px);
	line-height: .98;
	letter-spacing: -.036em;
	color: var(--paper);
}

.p-pj-hero__lead {
	margin: 20px 0 0;
	max-width: 44ch;
	font-size: clamp(16px, 1.7vw, 20px);
	line-height: 1.6;
	color: rgba(255, 255, 255, .8);
}

/* The design has no rule for phones: two columns of ~150px at 390. Stacked ≤480. */
@media (max-width: 480px) {
	.p-pj-hero__grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}
}

.p-pj-index__label {
	padding-bottom: 14px;
	border-bottom: 2px solid rgba(255, 255, 255, .28);
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
}

.p-pj-index__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-pj-index__list > li + li .p-pj-index__item {
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.is-dark a.p-pj-index__item,
.p-pj-index__item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: clamp(14px, 2.4vw, 28px);
	align-items: center;
	padding: clamp(18px, 2.2vw, 24px) 0;
	color: inherit;
	text-decoration: none;
	transition: padding-left .2s ease;
}

.p-pj-index__item:hover {
	padding-left: 8px;
}

.p-pj-index__num {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1;
	letter-spacing: -.03em;
	color: rgba(245, 163, 4, .75);
}

.p-pj-index__title {
	display: block;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 700;
	font-size: clamp(18px, 2vw, 23px);
	line-height: 1.16;
	letter-spacing: -.02em;
	color: var(--paper);
}

.p-pj-index__meta {
	display: block;
	margin-top: 6px;
	font-weight: 600;
	font-size: 12.5px;
	line-height: 1.5;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
}

.p-pj-index__arrow {
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	color: var(--gold);
}

.p-pj-index__empty {
	margin: 18px 0 0;
	max-width: 44ch;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .7);
}

/* ---- Completed projects + showcase ---- */

.p-done {
	padding-top: clamp(64px, 8vw, 100px);
	padding-bottom: clamp(68px, 8vw, 104px);
}

.p-done .c-sec-head__title {
	font-size: clamp(26px, 3.4vw, 42px);
	line-height: 1.04;
	letter-spacing: -.03em;
}

.p-done__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: clamp(28px, 3.4vw, 40px) 0 clamp(6px, 1vw, 14px);
}

.p-done__list .c-project-done + .c-project-done {
	margin-top: 0;
}

.p-show {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
	margin-top: clamp(30px, 3.6vw, 46px);
}

.p-show__figure {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 10.8;
	border-radius: 22px;
	overflow: hidden;
	background: var(--sand);
	box-shadow: 0 30px 66px -52px rgba(0, 27, 66, .4);
}

.p-show__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.p-show__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 27, 66, .62) 0%, transparent 46%);
	pointer-events: none;
}

.p-show__label {
	position: absolute;
	left: clamp(18px, 2.4vw, 26px);
	bottom: clamp(16px, 2vw, 22px);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 17px;
	border-radius: 100px;
	background: rgba(251, 250, 247, .94);
	font-weight: 700;
	font-size: 10.5px;
	line-height: 1;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--navy);
}

.p-show__label .c-dot {
	width: 7px;
	height: 7px;
}

.p-show__title {
	margin: 0;
	max-width: 22ch;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 700;
	font-size: clamp(21px, 2.4vw, 28px);
	line-height: 1.12;
	letter-spacing: -.022em;
	color: var(--navy);
}

.p-show__text {
	margin: 14px 0 0;
	max-width: 46ch;
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--text);
}

.p-show__facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 clamp(22px, 2.8vw, 34px);
	margin-top: clamp(24px, 2.8vw, 32px);
}

.p-show__fact {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid #EFE9DD;
}

.p-show__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(138, 98, 7, .32);
	border-radius: 50%;
	background: rgba(245, 163, 4, .08);
	color: var(--gold-text);
}

.p-show__fact-label {
	display: block;
	font-weight: 700;
	font-size: 10px;
	line-height: 1;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold-text);
}

.p-show__fact-text {
	display: block;
	margin-top: 7px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.5;
	color: var(--navy);
}

.p-show__btn {
	margin-top: clamp(26px, 3vw, 34px);
	padding: 15px 30px;
}

@media (max-width: 1024px) {
	.p-show {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.p-show__facts {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ==== Project page ========================================================= */

/* ---- Hero: status pill, headline, lead ---- */

.p-project-hero {
	overflow: hidden;
	padding-top: clamp(60px, 8vw, 92px);
	padding-bottom: clamp(64px, 8vw, 92px);
}

.p-project-hero__glow {
	top: -280px;
	width: 880px;
	height: 880px;
	background: radial-gradient(circle, rgba(245, 163, 4, .12), transparent 62%);
}

.p-project-hero .c-crumbs {
	margin-bottom: 26px;
}

.p-project-hero__pill {
	gap: 8px;
	padding: 8px 16px;
	font-size: 11px;
	letter-spacing: .16em;
}

.p-project-hero__title {
	margin: 20px 0 0;
	max-width: 24ch;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(30px, 4.4vw, 58px);
	line-height: 1.02;
	letter-spacing: -.034em;
	color: var(--paper);
}

.p-project-hero__lead {
	margin: 20px 0 0;
	max-width: 50ch;
	font-size: clamp(16px, 1.7vw, 20px);
	line-height: 1.6;
	color: rgba(255, 255, 255, .8);
}

/* ---- The photo on the seam ---- */

.p-seam {
	padding-top: 0;
	padding-bottom: clamp(44px, 5.5vw, 72px);
}

.p-seam__frame {
	position: relative;
	aspect-ratio: 21 / 9;
	border-radius: 24px;
	overflow: hidden;
	background: #0d3363;
}

.p-seam__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.c-placeholder-photo--dark {
	background: linear-gradient(158deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
}

.c-placeholder-photo--dark .c-placeholder-photo__label {
	color: var(--paper);
	opacity: .55;
}

.p-seam__placeholder .c-placeholder-photo__frame,
.p-other__placeholder .c-placeholder-photo__frame {
	inset: clamp(12px, 1.6vw, 20px);
	border-radius: 13px;
}

.p-seam__placeholder .c-placeholder-photo__label,
.p-other__placeholder .c-placeholder-photo__label {
	padding: 0 16px;
	font-size: 10.5px;
}

/* ---- The project text and the funding panel ---- */

.p-fund-section {
	padding-top: clamp(64px, 8vw, 96px);
	padding-bottom: clamp(72px, 9vw, 104px);
}

.p-fund {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.p-body__p {
	margin: 18px 0 0;
	max-width: 56ch;
	font-size: 17px;
	line-height: 1.72;
	color: var(--text);
}

.p-body > .p-body__p:first-of-type {
	font-size: 19px;
}

.p-body__numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 0;
	margin: clamp(24px, 2.8vw, 32px) 0 0;
	padding: clamp(22px, 2.4vw, 28px) 0;
	border-top: 1px solid #E4DDCC;
	border-bottom: 1px solid #E4DDCC;
}

.p-body__number {
	padding: 2px 26px 2px 0;
}

.p-body__value {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1;
	letter-spacing: -.035em;
	color: var(--navy);
}

.p-body__label {
	margin-top: 9px;
	font-weight: 600;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--muted);
}

.p-body__numbers + .p-body__p {
	margin-top: clamp(22px, 2.6vw, 28px);
}

.p-panel {
	padding: clamp(30px, 3.4vw, 40px);
	border-radius: 26px;
	background: var(--navy);
	color: var(--paper);
	box-shadow: 0 30px 66px -50px rgba(0, 27, 66, .8);
}

.p-panel__label {
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold);
}

.p-panel__goal {
	margin: 16px 0 0;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(34px, 4.2vw, 52px);
	line-height: 1;
	letter-spacing: -.035em;
	color: var(--paper);
}

.p-panel__note {
	margin-top: 12px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .7);
}

.p-panel__note--rule,
.p-panel__text--rule {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.p-panel__title {
	margin: 16px 0 0;
	max-width: 22ch;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 700;
	font-size: clamp(19px, 2.2vw, 25px);
	line-height: 1.18;
	letter-spacing: -.02em;
	color: var(--paper);
}

.p-panel__text {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .7);
}

.p-panel__btn {
	display: flex;
	width: 100%;
	margin-top: 24px;
	padding: 16px 28px;
}

.p-panel__small {
	margin-top: 14px;
	font-weight: 500;
	font-size: 12.5px;
	line-height: 1.6;
	text-align: center;
	color: rgba(255, 255, 255, .5);
}

@media (max-width: 1024px) {
	.p-fund {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.p-body__p {
		line-height: 1.78;
	}
}

/* ---- What a gift covers ---- */

.p-gift {
	padding-top: clamp(76px, 9vw, 108px);
	padding-bottom: clamp(80px, 9vw, 112px);
}

.p-gift__title {
	margin: 16px 0 0;
	max-width: 22ch;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(26px, 3.4vw, 42px);
	line-height: 1.04;
	letter-spacing: -.028em;
	color: var(--navy);
}

.p-gift__levels {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: clamp(32px, 4vw, 44px);
	align-items: stretch;
}

.p-level {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(24px, 2.6vw, 30px);
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--white);
}

.p-level--accent {
	border-color: rgba(245, 163, 4, .55);
	background: rgba(245, 163, 4, .14);
}

.p-level__badge {
	align-self: flex-start;
	margin-bottom: 14px;
	padding: 6px 12px;
	border-radius: 100px;
	background: var(--gold);
	font-weight: 700;
	font-size: 10px;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--navy);
}

.p-level__amount {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(28px, 3.2vw, 38px);
	line-height: .95;
	letter-spacing: -.03em;
	color: var(--navy);
}

.p-level--accent .p-level__amount {
	color: var(--gold-text);
}

.p-level__unit {
	margin-top: 10px;
	font-weight: 700;
	font-size: 10.5px;
	line-height: 1;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #5F5648; /* 5.5:1 on the sand card (was var(--muted-2)) */
}

.p-level__text {
	margin: 16px 0 0;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--text);
}

.p-gift__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.p-gift__step {
	padding: 26px 28px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--white);
}

.p-gift__num {
	display: block;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 15px;
	line-height: normal;
	color: var(--gold-text);
}

.p-gift__step-text {
	display: block;
	margin-top: 12px;
	font-weight: 700;
	font-size: 16.5px;
	line-height: 1.4;
	color: var(--navy);
}

.p-gift__note {
	margin: clamp(20px, 2.4vw, 26px) 0 0;
	max-width: 66ch;
	font-weight: 500;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--muted-2);
}

@media (max-width: 1024px) {
	.p-gift__levels {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.p-gift__levels {
		grid-template-columns: 1fr;
	}
}

/* ---- Film and photos bands ---- */

.p-band--video {
	padding-top: clamp(56px, 7vw, 84px);
	padding-bottom: 0;
}

.p-band--gallery {
	padding-top: clamp(56px, 7vw, 84px);
	padding-bottom: clamp(60px, 7vw, 92px);
}

/* ---- Appeal ---- */

.p-appeal-section {
	padding-top: clamp(76px, 9vw, 108px);
	padding-bottom: clamp(80px, 9vw, 112px);
}

.p-appeal {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(28px, 4.5vw, 64px);
	align-items: end;
}

.p-appeal__title {
	margin: 0;
	max-width: 26ch;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(26px, 3.6vw, 46px);
	line-height: 1.06;
	letter-spacing: -.03em;
	color: var(--navy);
}

.p-appeal__p {
	margin: 14px 0 0;
	max-width: 54ch;
	font-size: 17.5px;
	line-height: 1.72;
	color: var(--text);
}

.p-appeal__title + .p-appeal__p {
	margin-top: 20px;
}

.p-appeal__actions {
	justify-self: start;
}

.p-appeal__actions .c-btn,
.p-closing__btn {
	padding: 18px 38px;
	font-size: 16px;
	box-shadow: 0 18px 40px -18px rgba(245, 163, 4, .7);
}

@media (max-width: 1024px) {
	.p-appeal {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* ---- Closing ---- */

.p-closing {
	overflow: hidden;
	padding-top: clamp(88px, 10vw, 128px);
	padding-bottom: clamp(92px, 10vw, 132px);
}

.p-closing--cta {
	padding-bottom: clamp(88px, 10vw, 128px);
}

.p-closing__glow {
	top: -280px;
	width: 900px;
	height: 900px;
	background: radial-gradient(circle, rgba(245, 163, 4, .12), transparent 62%);
}

.p-closing__paras {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 4.5vw, 64px);
	align-items: start;
}

.p-closing__p {
	margin: 0;
	max-width: 48ch;
	font-size: 17.5px;
	line-height: 1.72;
	color: rgba(255, 255, 255, .82);
}

.p-closing__p + .p-closing__p {
	color: rgba(255, 255, 255, .72);
}

.p-closing__paras + .p-closing__row {
	margin-top: clamp(44px, 5vw, 64px);
}

.p-closing__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
}

.p-closing__statement {
	display: flex;
	gap: 24px;
}

.p-closing__line {
	margin: 0;
	max-width: 28ch;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(26px, 3.8vw, 50px);
	line-height: 1.1;
	letter-spacing: -.03em;
	color: var(--paper);
}

.p-closing--cta .p-closing__line {
	max-width: 24ch;
	font-size: clamp(28px, 4.4vw, 56px);
	line-height: 1.06;
	letter-spacing: -.032em;
}

.p-closing__btn {
	flex: none;
}

@media (max-width: 1024px) {
	.p-closing__paras {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

/* ---- Other projects ---- */

.p-other-section {
	padding-top: clamp(76px, 9vw, 108px);
	padding-bottom: clamp(80px, 9vw, 112px);
}

.p-other__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
}

.p-other__title {
	margin: 0;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.06;
	letter-spacing: -.025em;
	color: var(--navy);
}

.p-other__all {
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	color: var(--navy-ink);
}

.p-other__all:hover {
	color: var(--gold-text);
}

.p-other {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-top: 32px;
	align-items: stretch;
}

.p-other__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--white);
	color: inherit;
	text-decoration: none;
}

.p-other__photo {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--sand);
}

.p-other__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.p-other__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 26px 28px 28px;
}

.p-other__pill {
	align-self: flex-start;
}

.p-other__name {
	margin: 14px 0 0;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.16;
	color: var(--navy);
}

.p-other__text {
	display: block;
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.62;
	color: var(--muted);
}

.p-other__spacer {
	flex: 1;
	min-height: 10px;
}

.p-other__more {
	margin-top: 16px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	color: var(--navy-ink);
}

.p-other__card--more {
	justify-content: center;
	gap: 14px;
	padding: clamp(30px, 3.4vw, 40px);
	border: 0;
	background: var(--navy);
	color: var(--paper);
}

.p-other__more-eyebrow {
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold);
}

.p-other__more-text {
	max-width: 22ch;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(21px, 2.4vw, 28px);
	line-height: 1.1;
	letter-spacing: -.022em;
	color: var(--paper);
}

.p-other__more-link {
	margin-top: 6px;
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1;
	color: var(--gold);
}

@media (max-width: 768px) {
	.p-other {
		grid-template-columns: 1fr;
	}
}

.p-seam__frame--empty {
	background: transparent;
}
