/* What We Build project library */
.wwb {
	--wwb-orange: #f36f2e;
	--wwb-dark: #262628;
	--wwb-gray: #f3f3f1;
	--wwb-line: #d7d7d4;
	--wwb-muted: #666;
}

.wwb-section { padding: 56px 0; }
.wwb-library { background: var(--wwb-gray); border-top: 1px solid var(--wwb-line); }
.wwb-head { margin-bottom: 22px; }
.wwb-head h2 { font-size: 34px; margin: 4px 0 0; }
.wwb-eyebrow,
.wwb-tag {
	color: var(--wwb-orange);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Cards */
.wwb-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	border: 1px solid var(--wwb-line);
	background: #fff;
	color: inherit;
	font: inherit;
	text-align: left;
	overflow: hidden;
	transition: transform .15s, box-shadow .15s;
}
.wwb-card:hover { color: inherit; text-decoration: none; }
.wwb-card:hover,
.wwb-card:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.08); }
.wwb-card:focus-visible { outline: 3px solid var(--wwb-orange); outline-offset: 2px; }
.wwb-card > span { display: block; }
.wwb-card__photo { position: relative; height: 205px; background: #ddd; flex: 0 0 auto; }
.wwb-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wwb-card__copy { border-top: 4px solid var(--wwb-orange); padding: 16px 17px 18px; flex: 1 1 auto; width: 100%; }
.wwb-card__copy > span { display: block; }
.wwb-card__title { font-size: 20px; font-weight: 700; line-height: 1.15; margin: 5px 0 4px; }
.wwb-card__loc { font-size: 14px; color: var(--wwb-muted); }
.wwb-card__area { margin-top: 10px; font-size: 14px; font-weight: 700; }
.wwb-card__view { margin-top: 14px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }

/* Featured */
.wwb-featured { display: grid; grid-template-columns: 1.55fr .95fr; gap: 16px; }
.wwb-featured--no-main { grid-template-columns: 1fr; }
.wwb-featured__stack { display: grid; gap: 16px; }
.wwb-featured--no-main .wwb-featured__stack { grid-template-columns: 1fr 1fr; }
.wwb-card--main .wwb-card__photo { height: 430px; flex: 1 1 auto; }
.wwb-card--main .wwb-card__copy { padding: 19px 20px; }
.wwb-card--main .wwb-card__title { font-size: 26px; }
.wwb-card--minor .wwb-card__photo { height: 188px; flex: 1 1 auto; }
.wwb-specs { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #e4e4e1; }
.wwb-specs > span, .wwb-label, .wwb-value { display: block; }
.wwb-label { font-size: 10px; color: var(--wwb-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.wwb-value { font-size: 14px; font-weight: 700; }

/* Filters */
.wwb-filters {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 14px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--wwb-line);
}
.wwb-filters label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.wwb-filters select,
.wwb-filters input {
	display: block;
	width: 100%;
	min-height: 47px;
	margin-top: 8px;
	padding: 11px;
	border: 1px solid #c7c7c4;
	border-radius: 0;
	background: #fff;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}
.wwb-filters select:focus,
.wwb-filters input:focus { outline: 2px solid var(--wwb-orange); outline-offset: -1px; }
.wwb-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; }
.wwb-status { font-size: 14px; color: var(--wwb-muted); }
.wwb-clear { padding: 9px 2px; border-bottom: 2px solid var(--wwb-orange); color: inherit; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.wwb-clear:hover { color: var(--wwb-orange); text-decoration: none; }

/* Grid + loading */
.wwb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; transition: opacity .15s; }
.wwb-grid.is-loading { opacity: .5; }
.wwb-more { padding-top: 28px; text-align: center; }
.wwb-sentinel { height: 1px; }
.wwb-loading { color: var(--wwb-muted); font-size: 14px; }
.wwb-btn {
	display: inline-block;
	padding: 14px 20px;
	border: 0;
	background: var(--wwb-orange);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .8px;
	text-transform: uppercase;
	cursor: pointer;
}
.wwb-btn:hover { background: var(--wwb-dark); color: #fff; text-decoration: none; }
.wwb-btn[hidden], .wwb-loading[hidden] { display: none; }

/* Project page */
.wwb-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }

/* Hero: photo with title overlay */
.wwb-hero { position: relative; display: flex; min-height: 520px; background: var(--wwb-dark); border-bottom: 6px solid var(--wwb-orange); overflow: hidden; }
.wwb-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wwb-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(20,20,22,.88) 0%, rgba(20,20,22,.55) 32%, rgba(20,20,22,0) 62%), linear-gradient(to bottom, rgba(20,20,22,.55), rgba(20,20,22,0) 22%); }
.wwb-hero--no-photo { min-height: 360px; }
.wwb-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
.wwb-hero__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wwb-back { display: flex; align-items: center; gap: 12px; min-height: 44px; max-width: 100%; padding: 12px 18px; background: rgba(38,38,40,.75); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.wwb-back:hover { color: #fff; background: var(--wwb-dark); border-color: var(--wwb-orange); text-decoration: none; }
.wwb-back__label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.wwb-back__arrow { color: var(--wwb-orange); font-size: 18px; line-height: 1; }
.wwb-back__summary { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); color: var(--wwb-line); font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wwb-back__summary[hidden] { display: none; }
.wwb-crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--wwb-line); font-size: 14px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.wwb-crumbs a { color: #fff; }
.wwb-crumbs a:hover { color: var(--wwb-orange); text-decoration: none; }
.wwb-crumbs > span[aria-hidden] { color: var(--wwb-orange); }
.wwb-hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.wwb-hero__text { max-width: 820px; }
.wwb-hero .wwb-tag { font-size: 15px; letter-spacing: 3px; }
.wwb-hero .wwb-tag a { color: inherit; }
.wwb-hero .wwb-tag a:hover { color: #fff; text-decoration: none; }
.wwb-hero h1 { margin: 14px 0; color: #fff; font-size: 84px; font-weight: 700; line-height: .95; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.wwb-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: #fff; font-size: 22px; font-weight: 500; }
.wwb-hero__dot { width: 6px; height: 6px; background: var(--wwb-orange); }

/* Story */
.wwb-project__body { padding: 96px 0; }
.wwb-project__layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: start; }
.wwb-project__main .wwb-eyebrow { margin-bottom: 22px; font-size: 15px; letter-spacing: 3px; }
.wwb-project__copy { color: #444; font-size: 20px; line-height: 1.7; }
.wwb-project__copy p { margin: 0 0 22px; text-wrap: pretty; }
.wwb-project__copy > p:first-child { color: var(--wwb-dark); font-size: 28px; font-weight: 500; line-height: 1.35; }
.wwb-project__copy > :last-child { margin-bottom: 0; }
.wwb-project__copy a { color: var(--wwb-orange); }
.wwb-project__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
.wwb-project__gallery a { display: block; aspect-ratio: 1; background: #ddd; overflow: hidden; }
.wwb-project__gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wwb-project__gallery a:hover img { transform: scale(1.05); }

/* Blocks in the description stay within the story column. */
.wwb-project__copy img { max-width: 100%; height: auto; }
.wwb-project__copy .wp-block-button__link { border-radius: 0; background: var(--wwb-orange); color: #fff; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.wwb-project__copy .wp-block-button__link:hover { background: var(--wwb-dark); color: #fff; text-decoration: none; }

/* Spec card (client mock) */
.wwb-project__aside { position: sticky; top: 120px; }
.wwb-project__card { border: 1px solid var(--wwb-line); background: #fff; }
.wwb-project__card-head { padding: 32px 36px; background: var(--wwb-dark); color: #fff; }
.wwb-project__card-head .wwb-tag { font-size: 14px; letter-spacing: 3px; }
.wwb-project__card-head .wwb-tag a { color: inherit; }
.wwb-project__card-head .wwb-tag a:hover { color: #fff; text-decoration: none; }
.wwb-project__card-title { margin: 8px 0 6px; font-size: 34px; font-weight: 700; line-height: 1.05; }
.wwb-project__card-loc { font-size: 19px; font-weight: 500; color: var(--wwb-line); }
.wwb-project__card-body { padding: 32px 36px; }
.wwb-project__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin: 0; }
.wwb-project__specs dt { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--wwb-muted); letter-spacing: 2px; text-transform: uppercase; }
.wwb-project__specs dd { margin: 0; font-size: 20px; font-weight: 700; }

/* Related + Browse by Category, below the project */
.wwb-project ~ .wwb-library,
.wwb-browse { padding: 88px 0; }
.wwb-project ~ .wwb-section .wwb-head { margin-bottom: 36px; }
.wwb-project ~ .wwb-section .wwb-eyebrow { font-size: 15px; letter-spacing: 3px; }
.wwb-project ~ .wwb-section .wwb-head h2 { margin-top: 10px; font-size: 52px; line-height: 1; }
.wwb-project ~ .wwb-section .wwb-clear { font-size: 16px; letter-spacing: 2px; border-bottom-width: 3px; }
.wwb-browse { background: var(--wwb-dark); }
.wwb-browse .wwb-head h2, .wwb-browse .wwb-clear { color: #fff; }
.wwb-browse .wwb-clear:hover { color: var(--wwb-orange); }
.wwb-browse__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.wwb-browse__tile { position: relative; display: block; height: 240px; background: #3a3a3d; overflow: hidden; }
.wwb-browse__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,20,22,.9) 0%, rgba(20,20,22,.4) 55%, rgba(20,20,22,.1) 100%); }
.wwb-browse__tile.is-current::before { content: ""; position: absolute; inset: 0; z-index: 2; border: 3px solid var(--wwb-orange); pointer-events: none; }
.wwb-browse__tile:hover { text-decoration: none; }
.wwb-browse__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wwb-browse__tile:hover .wwb-browse__img { transform: scale(1.05); }
.wwb-browse__text { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.wwb-browse__current { color: var(--wwb-orange); font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; }
.wwb-browse__name { color: #fff; font-size: 26px; font-weight: 700; line-height: 1; }
.wwb-browse__tag { color: var(--wwb-line); font-size: 15px; font-weight: 500; line-height: 1.3; }
.wwb-browse__arrow, .wwb-browse__all { display: none; }

@media (max-width: 991px) {
	.wwb-featured { grid-template-columns: 1fr; }
	.wwb-featured__stack { grid-template-columns: 1fr 1fr; }
	.wwb-filters { grid-template-columns: 1fr 1fr; }
	.wwb-filters__search { grid-column: 1 / -1; }
	.wwb-grid { grid-template-columns: 1fr 1fr; }
	.wwb-hero { min-height: 440px; }
	.wwb-hero h1 { font-size: 64px; }
	.wwb-project__body { padding: 64px 0; }
	.wwb-project__layout { grid-template-columns: 1fr; gap: 40px; }
	.wwb-project__aside { position: static; }
	.wwb-browse__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
	.wwb-section { padding: 40px 0; }
	.wwb-head h2 { font-size: 28px; }
	.wwb-card--main .wwb-card__photo { height: 300px; }
	.wwb-featured__stack,
	.wwb-featured--no-main .wwb-featured__stack { grid-template-columns: 1fr; }
	.wwb-card--minor .wwb-card__photo { height: 220px; }
	.wwb-specs { grid-template-columns: 1fr 1fr; }
	.wwb-filters { grid-template-columns: 1fr; }
	.wwb-grid { grid-template-columns: 1fr; }
	.wwb-hero { min-height: 400px; border-bottom-width: 5px; }
	.wwb-hero__inner { padding-top: 20px; padding-bottom: 36px; }
	.wwb-crumbs { display: none; }
	.wwb-back { flex-direction: column; align-items: flex-start; gap: 2px; max-width: 100%; padding: 9px 14px; }
	.wwb-back__label { font-size: 13px; }
	.wwb-back__summary { max-width: 100%; padding-left: 0; border-left: 0; font-size: 13px; }
	.wwb-hero__bottom { display: block; }
	.wwb-hero .wwb-tag { font-size: 13px; }
	.wwb-hero h1 { margin: 10px 0; font-size: 46px; line-height: .98; }
	.wwb-hero__meta { gap: 8px 14px; font-size: 18px; }
	.wwb-hero__dot { width: 5px; height: 5px; }
	.wwb-project__body { padding: 48px 0; }
	.wwb-project__main .wwb-eyebrow { margin-bottom: 18px; font-size: 13px; }
	.wwb-project__copy { font-size: 18px; line-height: 1.65; }
	.wwb-project__copy > p:first-child { font-size: 22px; }
	.wwb-project__gallery { grid-template-columns: 1fr 1fr; }
	.wwb-project__card-head, .wwb-project__card-body { padding: 24px; }
	.wwb-project__card-title { font-size: 28px; }
	.wwb-project__specs { gap: 22px 16px; }
	.wwb-project__specs dd { font-size: 18px; }
	.wwb-project ~ .wwb-library, .wwb-browse { padding: 44px 0; }
	.wwb-project ~ .wwb-section .wwb-head { margin-bottom: 20px; }
	.wwb-project ~ .wwb-section .wwb-head h2 { font-size: 34px; }
	.wwb-browse__head-link { display: none; }
	.wwb-browse__grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid #4a4a4d; }
	.wwb-browse__tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: auto; min-height: 64px; padding: 12px 0; background: none; border-bottom: 1px solid #4a4a4d; overflow: visible; }
	.wwb-browse__tile::after, .wwb-browse__img, .wwb-browse__current { display: none; }
	.wwb-browse__tile.is-current::before { display: none; }
	.wwb-browse__tile.is-current .wwb-browse__name { color: var(--wwb-orange); }
	.wwb-browse__text { position: static; gap: 2px; }
	.wwb-browse__name { font-size: 20px; line-height: 1.1; }
	.wwb-browse__tag { color: #b5b5b2; font-size: 14px; }
	.wwb-browse__arrow { display: block; color: var(--wwb-orange); font-size: 20px; font-weight: 700; }
	.wwb-browse__all { display: inline-block; margin-top: 20px; }
	.wwb-head--split { display: block; }
}

/* Project Datasheets, under the spec card */
.wwb-downloads { margin-top: 24px; }
.wwb-downloads .wwb-eyebrow { margin-bottom: 12px; font-size: 14px; letter-spacing: 3px; }
.wwb-downloads ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wwb-downloads a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 18px 14px 20px; border: 1px solid var(--wwb-line); border-left: 4px solid var(--wwb-orange); background: #fff; color: var(--wwb-dark); transition: background .15s, color .15s; }
.wwb-downloads a:hover, .wwb-downloads a:focus-visible { background: var(--wwb-dark); border-color: var(--wwb-dark); border-left-color: var(--wwb-orange); color: #fff; text-decoration: none; }
.wwb-downloads__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wwb-downloads__label { font-size: 18px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.wwb-downloads__meta { color: var(--wwb-muted); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.wwb-downloads a:hover .wwb-downloads__meta { color: var(--wwb-line); }
.wwb-downloads__icon { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--wwb-orange); color: #fff; font-size: 18px; font-weight: 700; }
