/**
 * Building & Civil Engineering department page.
 */

.bc {
	--bc-red: var(--mara-primary, #c62828);
	--bc-gold: #b08d46;
	--bc-blueprint: #2a5f8f;
	--bc-navy: #0d1b2a;
	--bc-ink: #1a1a1a;
	--bc-muted: #5c5c66;
	--bc-surface: #f2f4f6;
	--bc-line: #e4e4e7;
	--bc-radius: 0.75rem;
	color: var(--mara-text, #333);
	background: #fff;
	overflow-x: clip;
}

.bc a:focus-visible,
.bc button:focus-visible {
	outline: 2px solid var(--bc-gold);
	outline-offset: 3px;
}

.bc__icon {
	display: block;
	flex-shrink: 0;
}

.bc__section-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.4rem, 2.8vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--bc-ink);
}

.bc__section-title--center {
	text-align: center;
}

.bc__section-intro {
	margin: 0.7rem 0 0;
	max-width: 42rem;
	line-height: 1.65;
	color: var(--bc-muted);
}

.bc__section-head {
	margin-bottom: 1.5rem;
}

.bc__prose {
	margin: 0.85rem 0 0;
	line-height: 1.65;
	color: var(--bc-muted);
}

.bc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.65rem;
	padding: 0.6rem 1.25rem;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0.35rem;
}

.bc__btn--sm {
	min-height: 2.25rem;
	padding: 0.45rem 0.95rem;
	font-size: 0.7rem;
}

.bc__btn--ghost {
	color: #fff;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.bc__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* Hero */
.bc__hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(18rem, 48vw, 28rem);
	display: grid;
	align-items: end;
	padding: clamp(2.5rem, 6vw, 4rem) 0;
	background:
		linear-gradient(115deg, rgba(13, 27, 42, 0.92) 0%, rgba(13, 27, 42, 0.58) 55%, rgba(42, 95, 143, 0.28) 100%),
		var(--bc-hero-image, none) center / cover no-repeat;
	color: #fff;
}

.bc__hero-grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.22;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(180deg, #000 15%, transparent 88%);
	animation: bc-grid-drift 18s linear infinite;
}

.bc__hero-measure {
	position: absolute;
	top: 12%;
	right: 8%;
	width: min(38%, 16rem);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(176, 141, 70, 0.85), transparent);
	pointer-events: none;
	animation: bc-measure 2.2s ease both;
}

.bc__hero-measure::before,
.bc__hero-measure::after {
	content: "";
	position: absolute;
	top: -4px;
	width: 1px;
	height: 9px;
	background: rgba(176, 141, 70, 0.9);
}

.bc__hero-measure::before {
	left: 0;
}

.bc__hero-measure::after {
	right: 0;
}

.bc__hero-inner {
	position: relative;
	z-index: 1;
	max-width: 40rem;
}

.bc__hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.35rem 0.7rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #c9ddf0;
	border: 1px solid rgba(201, 221, 240, 0.35);
	border-radius: 999px;
	background: rgba(13, 27, 42, 0.45);
}

.bc__hero-dot {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--bc-gold);
	box-shadow: 0 0 0 3px rgba(176, 141, 70, 0.25);
}

.bc__hero-badge {
	display: inline-block;
	margin: 0.75rem 0 0;
	padding: 0.32rem 0.7rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--bc-red);
	border-radius: 0.3rem;
}

.bc__hero-title {
	margin: 0.85rem 0 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(2rem, 5vw, 3.1rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.12;
	color: #fff;
}

.bc__hero-intro {
	margin: 0.9rem 0 0;
	max-width: 34rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
}

.bc__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.4rem;
}

@media (max-width: 640px) {
	.bc__hero-actions {
		flex-direction: column;
	}

	.bc__hero-actions .bc__btn {
		width: 100%;
	}
}

@keyframes bc-grid-drift {
	from {
		background-position: 0 0, 0 0;
	}
	to {
		background-position: 32px 32px, 32px 32px;
	}
}

@keyframes bc-measure {
	from {
		opacity: 0;
		transform: scaleX(0.4);
		transform-origin: left center;
	}
	to {
		opacity: 1;
		transform: scaleX(1);
		transform-origin: left center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bc__hero-grid,
	.bc__hero-measure {
		animation: none;
	}
}

/* Context / built environment */
.bc__context {
	padding: clamp(2.5rem, 5vw, 3.75rem) 0;
	background: #fff;
}

.bc__context-grid {
	display: grid;
	gap: 1.75rem;
	align-items: center;
}

@media (min-width: 900px) {
	.bc__context-grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 2.5rem;
	}
}

.bc__context-eyebrow {
	margin: 0 0 0.65rem;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bc-blueprint);
}

.bc__context-list {
	list-style: none;
	margin: 1.35rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.bc__context-list li {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 1rem;
	border: 1px solid var(--bc-line);
	border-left: 3px solid var(--bc-gold);
	border-radius: 0.5rem;
	background: var(--bc-surface);
}

.bc__context-icon {
	color: var(--bc-gold);
	margin-top: 0.1rem;
}

.bc__context-point-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--bc-ink);
}

.bc__context-list p {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--bc-muted);
}

.bc__context-media {
	margin: 0;
	border-radius: 0.5rem;
	overflow: hidden;
	border: 1px solid var(--bc-line);
	box-shadow: 0 16px 36px rgba(18, 18, 22, 0.08);
}

.bc__context-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 11;
	object-fit: cover;
}

/* Quotes */
.bc__quote {
	padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.bc__quote--gardiner {
	background: linear-gradient(145deg, #0d1b2a 0%, #1b3a57 50%, #0d1b2a 100%);
}

.bc__quote--einstein {
	background: linear-gradient(155deg, #1a1410 0%, #2c2418 48%, #12100c 100%);
}

.bc__quote--plumber {
	background: linear-gradient(145deg, #0f1f28 0%, #1a3a44 48%, #0c181c 100%);
}

.bc__quote-card {
	position: relative;
	isolation: isolate;
	margin: 0 auto;
	max-width: 42rem;
	padding: clamp(1.65rem, 4vw, 2.25rem) clamp(1.2rem, 4vw, 2.1rem);
	text-align: center;
	border-radius: 0.55rem;
	overflow: hidden;
	color: #fff;
}

.bc__quote--gardiner .bc__quote-card {
	border: 1px solid rgba(201, 221, 240, 0.35);
	background:
		radial-gradient(ellipse at 20% 0%, rgba(42, 95, 143, 0.35) 0%, transparent 55%),
		rgba(255, 255, 255, 0.03);
}

.bc__quote--einstein .bc__quote-card {
	border: 1px solid rgba(176, 141, 70, 0.4);
	background:
		radial-gradient(ellipse at 85% 10%, rgba(176, 141, 70, 0.22) 0%, transparent 55%),
		rgba(255, 255, 255, 0.03);
}

.bc__quote--plumber .bc__quote-card {
	border: 1px solid rgba(100, 181, 200, 0.4);
	background:
		radial-gradient(ellipse at 50% 0%, rgba(100, 181, 200, 0.22) 0%, transparent 55%),
		rgba(255, 255, 255, 0.03);
}

.bc__quote-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.2;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
	background-size: 24px 24px;
	mask-image: linear-gradient(120deg, #000 0%, transparent 80%);
	animation: bc-blueprint 1.1s ease both;
}

.bc__quote-icon {
	display: inline-flex;
	margin-bottom: 0.85rem;
	color: #c9ddf0;
}

.bc__quote--einstein .bc__quote-icon {
	color: var(--bc-gold);
}

.bc__quote--plumber .bc__quote-icon {
	color: #7ec8d8;
}

.bc__quote-text {
	margin: 0;
	padding: 0;
	border: 0;
}

.bc__quote-text p {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.15rem, 2.8vw, 1.55rem);
	font-weight: 700;
	line-height: 1.45;
	color: #fff;
	text-wrap: balance;
}

.bc__quote-attrib {
	display: block;
	margin-top: 1rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bc-gold);
}

.bc__quote--gardiner .bc__quote-attrib {
	color: #c9ddf0;
}

@keyframes bc-blueprint {
	from {
		opacity: 0;
		transform: translateY(0.4rem);
	}
	to {
		opacity: 0.2;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bc__quote-card::before {
		animation: none;
	}
}

/* Programmes */
.bc__programmes {
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	background: var(--bc-surface);
}

.bc__cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.15rem;
}

@media (min-width: 720px) {
	.bc__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.bc__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.bc__card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.bc__card:hover {
	border-color: rgba(42, 95, 143, 0.55);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.bc__card {
		transition: none;
	}

	.bc__card:hover {
		transform: none;
	}
}

.bc__card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.bc__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.bc__badge {
	display: inline-block;
	padding: 0.22rem 0.55rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bc-red);
	background: rgba(198, 40, 40, 0.08);
	border-radius: 0.25rem;
}

.bc__duration {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--bc-muted);
}

.bc__card-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--bc-ink);
}

.bc__card-entry {
	margin: 0;
}

.bc__card-entry-label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bc-ink);
}

.bc__card-entry-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.bc__card-entry-list li {
	display: grid;
	gap: 0.15rem;
	padding: 0.55rem 0.65rem;
	background: var(--bc-surface);
	border-left: 2px solid var(--bc-gold);
	border-radius: 0.3rem;
}

.bc__card-entry-level {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bc-ink);
}

.bc__card-entry-text {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--bc-muted);
}

.bc__pathways {
	margin-top: auto;
}

.bc__pathways-trigger {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem 0;
	border: 0;
	border-top: 1px solid var(--bc-line);
	border-bottom: 1px solid var(--bc-line);
	background: transparent;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--bc-ink);
	cursor: pointer;
	text-align: left;
}

.bc__pathways-trigger .bc__icon {
	transition: transform 0.2s ease;
}

.bc__pathways-trigger.is-open .bc__icon {
	transform: rotate(180deg);
}

.bc__pathways-panel {
	padding: 0.85rem 0 0.25rem;
}

.bc__pathways-note {
	margin: 0 0 0.65rem;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--bc-muted);
}

.bc__pathways-panel ul {
	margin: 0;
	padding-left: 1.15rem;
	color: var(--bc-muted);
	line-height: 1.65;
	font-size: 0.9rem;
}

/* HOD */
.bc__hod {
	padding: clamp(2.25rem, 5vw, 3.5rem) 0;
	background: #fff;
}

.bc__hod-inner {
	display: flex;
	gap: 1.15rem;
	align-items: flex-start;
	max-width: 48rem;
	margin-inline: auto;
	padding: 1.5rem 1.35rem;
	background: var(--bc-surface);
	border-left: 3px solid var(--bc-gold);
	border-radius: 0.5rem;
}

.bc__hod-icon {
	color: var(--bc-gold);
	margin-top: 0.15rem;
}

.bc__hod-role {
	margin: 0;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bc-red);
}

.bc__hod-dept {
	margin: 0.35rem 0 0;
	font-family: var(--mara-font-heading);
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--bc-ink);
}

.bc__hod-message {
	margin: 0.85rem 0 0;
	padding: 0;
	border: 0;
}

.bc__hod-message p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--bc-muted);
}

/* Progression */
.bc__progression {
	padding: clamp(2.5rem, 5vw, 3.75rem) 0;
	background: var(--bc-surface);
}

.bc__ladder {
	list-style: none;
	margin: 1.5rem auto 0;
	padding: 0;
	max-width: 18rem;
	text-align: center;
}

.bc__ladder li {
	position: relative;
	padding: 0.85rem 1rem;
	font-weight: 800;
	font-size: 1rem;
	color: var(--bc-ink);
	background: #fff;
	border: 1px solid var(--bc-line);
	border-radius: 0.45rem;
}

.bc__ladder li:not(:last-child) {
	margin-bottom: 1.35rem;
}

.bc__ladder li:not(:last-child)::after {
	content: "↓";
	position: absolute;
	left: 50%;
	bottom: -1.15rem;
	transform: translateX(-50%);
	font-size: 1rem;
	font-weight: 800;
	color: var(--bc-gold);
	line-height: 1;
}

.bc__progression-note {
	margin: 1.5rem auto 0;
	max-width: 40rem;
	text-align: center;
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--bc-muted);
}

/* Intakes */
.bc__intakes {
	padding: clamp(2rem, 4vw, 3rem) 0;
	background: #fff;
}

.bc__intake-list {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.bc__intake-link {
	display: inline-flex;
	align-items: center;
	min-height: 2.6rem;
	padding: 0.55rem 1.15rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--bc-ink);
	background: var(--bc-surface);
	border: 1px solid var(--bc-line);
	border-radius: 0.35rem;
}

.bc__intake-link:hover {
	border-color: var(--bc-red);
	color: var(--bc-red);
}

/* CTA */
.bc__cta {
	padding: clamp(2.75rem, 6vw, 4rem) 0;
	background: var(--bc-navy);
	color: #fff;
}

.bc__cta-inner {
	text-align: center;
	max-width: 40rem;
	margin-inline: auto;
}

.bc__cta-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.5rem, 3.4vw, 2.2rem);
	font-weight: 800;
	color: #fff;
}

.bc__cta-intro {
	margin: 0.85rem auto 0;
	max-width: 34rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
}

.bc__cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.7rem;
	margin-top: 1.5rem;
}

.bc__cta .bc__btn--ghost {
	border-color: rgba(255, 255, 255, 0.45);
}

.bc__cta .bc__btn--ghost:hover {
	border-color: var(--bc-gold);
	color: var(--bc-gold);
}

@media (max-width: 640px) {
	.bc__cta-actions {
		flex-direction: column;
	}

	.bc__cta-actions .bc__btn {
		width: 100%;
	}
}
