/* Bell Ventures 2026
   Breakpoints: sm 40rem (640px), md 48rem (768px), lg 64rem (1024px), nav 75rem (1200px), xl 80rem (1280px). */

/* ---------- Tokens ---------- */

:root {
	--colorPaper: #f6f2ec;
	--colorNavy: #0d1a2b;
	--colorInk: #1a2230;
	--colorMuted: #5d6470;
	--colorLine: #e1d9cc;
	--colorGold: #b38d55;
	--colorError: #e5816f;

	--fontSans: "Inter", sans-serif;
	--fontSerif: "Newsreader", serif;

	--pageGutter: 1.25rem;
	--gridGap: 1.5rem;
	--ease: cubic-bezier(.4, 0, .2, 1);
}

@media (width >= 48rem) {
	:root {
		--pageGutter: 3.5rem;
	}
}

/* .dark only swaps the palette, so every block works on navy as is */
.dark {
	--colorPaper: var(--colorNavy);
	--colorInk: #fff;
	--colorMuted: rgb(255 255 255 / .7);
	--colorLine: rgb(255 255 255 / .16);
	--colorGold: #c9a873;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0 solid;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	line-height: 1.5;
}

body {
	background: var(--colorPaper);
	color: var(--colorInk);
	font: 1rem/1.6 var(--fontSans);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
	font-family: var(--fontSerif);
	font-size: inherit;
	font-weight: 400;
	line-height: 1.15;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.25rem; }

@media (width >= 48rem) {
	h1 { font-size: 4.5rem; }
	h2 { font-size: 3rem; }
}

a {
	color: inherit;
	text-decoration: inherit;
}

a:hover {
	color: var(--colorGold);
}

ul,
ol,
menu {
	list-style: none;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
	background: transparent;
	border-radius: 0;
}

button {
	cursor: pointer;
}

sup {
	position: relative;
	top: -.5em;
	font-size: 75%;
	line-height: 0;
	vertical-align: baseline;
}

hr {
	height: 0;
	color: inherit;
	border-top-width: 1px;
}

[hidden]:where(:not([hidden="until-found"])) {
	display: none !important;
}

:focus-visible {
	outline: 2px solid var(--colorGold);
	outline-offset: 2px;
}

/* ---------- Shared ---------- */

/* pageGrid = the 12-column grid with page margins (one column on phones) */
.pageGrid {
	display: grid;
	gap: var(--gridGap);
	padding-inline: var(--pageGutter);
}

@media (width >= 48rem) {
	.pageGrid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
}

main > section,
main > article {
	padding-block: 72px;
	background: var(--colorPaper);
	color: var(--colorInk);
}

@media (width >= 48rem) {
	main > section,
	main > article {
		padding-block: 120px;
	}
}

/* caps = small uppercase label text */
.caps {
	font-family: var(--fontSans);
	font-size: .75rem;
	font-weight: 600;
	text-transform: uppercase;
}

/* dash = short gold line under the text */
.dash::after {
	content: "";
	display: block;
	width: 2rem;
	height: 1px;
	margin-top: 1rem;
	background: var(--colorGold);
}

.muted {
	color: var(--colorMuted);
}

/* big serif figures */
.figure {
	display: block;
	font-family: var(--fontSerif);
	font-weight: 300;
	line-height: 1;
}

/* Material Symbols ligature: <i class="icon">stacks</i> */
.icon {
	display: block;
	font: 300 2rem/1 "Material Symbols Outlined";
	font-style: normal;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	color: var(--colorGold);
	font-feature-settings: "liga";
	-webkit-font-smoothing: antialiased;
}

.divider {
	border-color: var(--colorLine);
}

.btn {
	display: inline-block;
	padding: .875rem 1.25rem;
	background: var(--colorInk);
	color: var(--colorPaper);
	font-family: var(--fontSans);
	font-size: .75rem;
	font-weight: 600;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color .15s var(--ease);

	&:hover {
		color: var(--colorGold);
	}

	&._large {
		padding: 1.25rem 2rem;
	}
}

/* ---------- Header ---------- */

.siteHeader {
	position: relative;
	z-index: 20;
	grid-auto-flow: column;
	align-items: center;
	height: 6rem;
}

.siteHeader__logo img {
	width: 7.5rem;
	height: auto;
}

.siteHeader__nav {
	display: none;
}

.siteHeader__menu {
	display: flex;
	gap: 2.5rem;
	white-space: nowrap;
}

.siteHeader__menuCta {
	display: none;
}

.siteHeader__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
}

.siteHeader__burger {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-right: -.5rem;
	color: var(--colorInk);
}

.siteHeader__burgerIcon {
	color: inherit;

	&._close {
		display: none;
	}
}

@media (width >= 48rem) {
	.siteHeader {
		grid-auto-flow: row;
	}

	.siteHeader__logo {
		grid-column: span 3;
	}

	.siteHeader__logo img {
		width: auto;
	}

	.siteHeader__actions {
		grid-column: 10 / -1;
	}
}

/* Below 1200px the menu folds into a dropdown under the header. */
@media (width < 75rem) {
	.siteHeader._menuOpen .siteHeader__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		gap: 2rem;
		padding: 2rem var(--pageGutter) 2.5rem;
		background: var(--colorPaper);
		border-block: 1px solid var(--colorLine);
		box-shadow: 0 20px 25px -5px rgb(0 0 0 / .08);
	}

	.siteHeader._menuOpen .siteHeader__menu {
		flex-direction: column;
		gap: 1.25rem;
		font-size: .875rem;
	}

	.siteHeader._menuOpen .siteHeader__burgerIcon {
		&._open {
			display: none;
		}

		&._close {
			display: block;
		}
	}
}

/* Small phones: the header button moves into the dropdown to leave room for the burger. */
@media (width < 30rem) {
	.siteHeader__cta {
		display: none;
	}

	.siteHeader._menuOpen .siteHeader__menuCta {
		display: inline-block;
		align-self: flex-start;
	}
}

@media (width >= 75rem) {
	.siteHeader__nav {
		display: flex;
		grid-column: 4 / span 6;
	}

	.siteHeader__burger {
		display: none;
	}
}

/* ---------- Hero ---------- */

main > section.hero {
	padding-block: 0;
}

.hero__content {
	align-self: center;
	padding-block: 3rem;
}

.hero__text {
	margin-top: 1.5rem;
}

.hero__points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 3rem;
}

.hero__point > span {
	display: block;
}

.hero__pointIcon {
	margin-bottom: 1rem;
}

.hero__pointLabel {
	color: var(--colorMuted);
}

.hero__button {
	margin-top: 3rem;
}

.hero__media {
	position: relative;
	height: 20rem;
	margin-inline: calc(var(--pageGutter) * -1);
	overflow: hidden;
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	filter: contrast(.7) brightness(1.3);
}

@media (width >= 48rem) {
	.hero {
		min-height: 680px;
	}

	.hero__content {
		grid-column: span 6;
		padding-block: 7.5rem;
	}

	.hero__points {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hero__media {
		grid-column: span 6;
		height: auto;
		margin-left: 0;
	}
}

/* ---------- Strategy ---------- */

.strategy__eyebrow {
	grid-column: 1 / -1;
}

/* h2 for the outline, but sized as the template's h3 */
.strategy__title {
	margin-bottom: 1.5rem;
	font-size: 2rem;
}

@media (width >= 48rem) {
	.strategy__column {
		grid-column: span 6;
	}
}

/* ---------- Stats band ---------- */

.stats__lead {
	align-self: center;
}

.stats__total {
	font-size: 6rem;
	color: var(--colorGold);
}

.stats__caption {
	margin-top: 1.5rem;
	font-family: var(--fontSerif);
	font-size: 1.875rem;
	line-height: 2.25rem;
}

.stats__body {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	align-self: center;
}

.stats__title {
	grid-column: 1 / -1;
	margin-bottom: 1rem;
}

.stats__value {
	margin-bottom: 1rem;
	font-size: 2.25rem;
	line-height: 2.5rem;
}

.stats__label {
	font-size: .875rem;
	line-height: 1.25rem;
}

/* a divider before every item that starts a new column, not before the first in a row */
.stats__item:nth-of-type(even) {
	padding-left: 1.5rem;
	border-left: 1px solid var(--colorLine);
}

@media (width >= 48rem) {
	.stats__lead {
		grid-column: span 4;
	}

	.stats__total {
		font-size: 8rem;
	}

	.stats__body {
		grid-column: span 8;
	}
}

@media (width >= 64rem) {
	.stats__body {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.stats__item:not(:first-of-type) {
		padding-left: 1.5rem;
		border-left: 1px solid var(--colorLine);
	}
}

@media (width >= 80rem) {
	.stats__value {
		font-size: 3rem;
		line-height: 1;
	}
}

/* ---------- Portfolio ---------- */

.portfolio > * {
	grid-column: 1 / -1;
}

.portfolio__divider {
	margin-block: 2.5rem;
}

.portfolioBlock {
	display: grid;
	gap: 1.5rem;

	&._first {
		margin-top: 2.5rem;
	}
}

.portfolioBlock__title {
	margin-bottom: 1rem;
}

.portfolioBlock__count {
	align-self: end;
}

.portfolioBlock__countValue {
	font-size: 3rem;
	color: var(--colorGold);
}

.portfolioBlock__filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	grid-column: 1 / -1;
}

.portfolioBlock__more {
	grid-column: 1 / -1;
	justify-self: center;
	padding: .5rem 1rem;
	border: 1px solid var(--colorLine);
	font-size: .75rem;
	line-height: 1rem;
	transition: border-color .15s var(--ease);

	&:hover {
		border-color: var(--colorInk);
	}
}

/* Cards: 1 column on phones, 2 up to 1280px, 4 on wide screens — narrower cards cannot fit the logo and details. */
.portfolioBlock__header,
.portfolioBlock__count {
	grid-column: 1 / -1;
}

@media (width >= 40rem) {
	.portfolioBlock {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (width >= 48rem) {
	.portfolioBlock__header,
	.portfolioBlock__count {
		grid-column: auto;
	}

	.portfolioBlock__count {
		text-align: right;
	}

	.portfolioBlock__countValue {
		font-size: 3.75rem;
	}
}

@media (width >= 80rem) {
	.portfolioBlock {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.portfolioBlock__header,
	.portfolioBlock__count {
		grid-column: span 2;
	}
}

.filterButton {
	padding: .5rem 1rem;
	border: 1px solid var(--colorLine);
	font-size: .75rem;
	line-height: 1rem;
	transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);

	&:hover {
		border-color: var(--colorInk);
	}

	&[aria-pressed="true"] {
		background: var(--colorNavy);
		color: #fff;
	}
}

.filterButton__count {
	color: var(--colorMuted);
}

.portfolioCard {
	position: relative;
	padding: 1.5rem;
	border: 1px solid var(--colorLine);
	transition: transform .15s var(--ease), box-shadow .15s var(--ease);

	&:hover {
		transform: translateY(-.25rem);
		box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
	}
}

.portfolioCard__logo {
	width: auto;
	height: 2rem;
	max-width: min(150px, 100%);
	margin-bottom: 2rem;
	object-fit: contain;
	object-position: left;

	&._dimmed {
		filter: brightness(.8);
	}

	&._black {
		filter: brightness(0);
	}
}

.portfolioCard__tag {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	padding-inline: .5rem;
	border: 1px solid var(--colorLine);
	color: var(--colorMuted);
}

/* h3 for the outline, but sized as the template's h4 */
.portfolioCard__name {
	margin-bottom: 1.5rem;
	font-size: 1.25rem;
}

.portfolioCard__details {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: .5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--colorLine);
	font-size: .875rem;
	line-height: 1.25rem;

	dd {
		overflow-wrap: break-word;
	}

	dt {
		font-size: .75rem;
		font-weight: 600;
		text-transform: uppercase;
		color: var(--colorMuted);
	}
}

.portfolioCard__website {
	min-width: 0;
}

.portfolioCard__link {
	display: block;
	overflow: hidden;
	color: var(--colorGold);
	text-overflow: ellipsis;
	white-space: nowrap;

	&:hover {
		text-decoration: underline;
	}
}

/* ---------- About ---------- */

.about__eyebrow,
.about__title,
.about__lead {
	grid-column: 1 / -1;
}

.about__lead {
	font-size: 1.125rem;
	line-height: 1.75rem;
}

.about__card {
	margin-top: 4rem;
}

.about__cardTitle {
	margin-block: 1.5rem 1rem;
}

@media (width >= 48rem) {
	.about__card {
		grid-column: span 4;
	}
}

/* ---------- Contact ---------- */

.contact__title {
	margin-block: 2rem 1.5rem;
}

@media (width >= 48rem) {
	.contact__header,
	.contact__form {
		grid-column: span 6;
	}
}

/* Contact Form 7 markup; CF7's own stylesheet is disabled. Scoped to .contact to out-rank plugin rules. */
.contact .contactForm {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* CF7's hidden inputs live in an empty fieldset: keep it out of the flex gap */
.contact .contactForm .hidden-fields-container {
	display: none;
}

.contact .contactForm__field {
	display: block;
	font-size: .75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--colorMuted);
	transition: color .2s;

	/* the label lights up while its field is focused */
	&:focus-within {
		color: var(--colorGold);
	}
}

.contact .contactForm__field .wpcf7-form-control-wrap {
	display: block;
}

/* fields: an underline that turns gold while typing */
.contact .contactForm input:not([type="submit"]),
.contact .contactForm textarea {
	display: block;
	width: 100%;
	padding: 8px 0;
	border-bottom: 1px solid var(--colorLine);
	color: var(--colorInk);
	font-size: 1rem;
	font-weight: 400;
	text-transform: none;
	caret-color: var(--colorGold);
	transition: border-color .2s;

	&:focus {
		outline: none;
		border-color: var(--colorGold);
	}

	&::placeholder {
		color: var(--colorMuted);
		opacity: .5;
	}
}

.contact .contactForm input:user-invalid,
.contact .contactForm .wpcf7-not-valid {
	border-color: var(--colorError);
}

.contact .contactForm textarea {
	min-height: 4lh;
	field-sizing: content; /* grows with the text */
	resize: none;
}

.contact .contactForm .wpcf7-submit {
	align-self: flex-start;
	padding: 1.25rem 2rem;
	background: var(--colorInk);
	color: var(--colorPaper);
	font-size: .75rem;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .15s var(--ease), opacity .15s var(--ease);

	&:hover {
		color: var(--colorGold);
	}

	&:disabled {
		opacity: .6;
		cursor: wait;
	}
}

.contact .contactForm .wpcf7-spinner {
	display: none;
}

.contact .contactForm .wpcf7-not-valid-tip {
	display: block;
	margin-top: .5rem;
	color: var(--colorError);
	font-size: .75rem;
	font-weight: 400;
	text-transform: none;
}

.contact .contactForm .wpcf7-response-output {
	padding: 1rem 1.25rem;
	border: 1px solid var(--colorLine);
	font-size: .875rem;
}

.contact .contactForm.invalid .wpcf7-response-output,
.contact .contactForm.unaccepted .wpcf7-response-output,
.contact .contactForm.failed .wpcf7-response-output,
.contact .contactForm.aborted .wpcf7-response-output,
.contact .contactForm.spam .wpcf7-response-output {
	border-color: var(--colorError);
}

.contact .contactForm.sent .wpcf7-response-output {
	border-color: var(--colorGold);
}

.contact .contactForm.init .wpcf7-response-output,
.contact .contactForm.resetting .wpcf7-response-output,
.contact .contactForm.submitting .wpcf7-response-output {
	display: none;
}

.contact .wpcf7 .screen-reader-response,
.screenReaderText {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal;
}

/* ---------- Footer ---------- */

.siteFooter {
	align-items: center;
	padding-block: 2rem;
}

.siteFooter__address {
	color: var(--colorMuted);
	font-size: .875rem;
	line-height: 1.25rem;
}

.siteFooter__email {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.siteFooter__emailIcon {
	font-size: 1.125rem;
	line-height: 1.75rem;
}

.siteFooter__nav {
	grid-column: 1 / -1;
}

.siteFooter__menu {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	color: var(--colorMuted);
	font-size: .75rem;
}

@media (width >= 48rem) {
	.siteFooter__logo {
		grid-column: span 3;
	}

	.siteFooter__address {
		grid-column: span 6;
	}

	.siteFooter__email {
		grid-column: span 3;
		justify-self: end;
	}
}

/* ---------- Regular pages, 404 ---------- */

.entry__header,
.entry__content {
	grid-column: 1 / -1;
}

.entry__title {
	margin-top: 1.5rem;
}

.entry__content {
	max-width: 46rem;

	> * + * {
		margin-top: 1.25rem;
	}

	h2 {
		margin-top: 3rem;
		font-size: 2rem;
	}

	h3 {
		margin-top: 2.5rem;
		font-size: 1.5rem;
	}

	h4 {
		margin-top: 2rem;
	}

	ul,
	ol {
		padding-left: 1.25rem;
	}

	ul {
		list-style: disc;
	}

	ol {
		list-style: decimal;
	}

	li + li {
		margin-top: .5rem;
	}

	a:not(.btn) {
		color: var(--colorGold);
		text-decoration: underline;
		text-underline-offset: 2px;
	}

	img {
		margin-block: 2rem;
	}
}

@media (width >= 48rem) {
	.entry__header,
	.entry__content {
		grid-column: 3 / 11;
	}
}

.notFound__button {
	margin-top: 2rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0s !important;
	}
}
