/* Clara Berardi — Creative Lead
   Consolidated theme styles (synced with the React app). */

@font-face {
	font-family: "IM Fell English";
	src: url("../fonts/IMFellEnglish-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--color-text: #000;
	--color-bg: #fff;
	--color-text-secondary: #8a8a8a;
	--color-transition: #000;

	--font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-brand: "IM Fell English", Georgia, "Times New Roman", serif;

	--fs-display: 64px;
	--fs-h1: 60px;
	--fs-h2: 40px;
	--fs-h3: 26px;
	--fs-body: 14px;
	--fs-small: 14px;
	--navbar-height: 58px;
	--footer-height: 66px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
}

#site-main {
	padding-top: var(--navbar-height);
}

a {
	text-decoration: none;
	color: var(--color-text);
	cursor: pointer;
	font-size: var(--fs-body);
}

a:hover {
	text-decoration: none;
}

a.a-underline {
	text-decoration: underline;
}

img {
	max-width: 100%;
	display: block;
}

p {
	font-size: var(--fs-body);
	line-height: 1.6;
}

h1 {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: var(--fs-h1);
	line-height: 1;
}

h1.section-title {
	font-size: var(--fs-display);
	margin: 0;
	line-height: 0.9;
}

h2 {
	font-weight: 400;
	font-size: var(--fs-h2);
	line-height: 1.1;
}

h2.section-h2 {
	font-size: 32px;
	font-weight: 500;
}

h3 {
	font-weight: 400;
	font-size: var(--fs-h3);
}

.container {
	margin: 0 auto;
	max-width: 1200px;
	padding: 0 20px;
}

.divider {
	width: 100%;
	height: 1px;
	background: var(--color-text);
	margin: 10px 0 15px;
}

.whitespace-300 {
	height: 300px;
}

.whitespace-100 {
	height: 10px;
}

/* ---------- Navbar ---------- */

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: var(--color-bg);
}

.navbar .container {
	width: 100%;
	max-width: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
}

.navbar-items {
	display: flex;
	gap: 10px;
}

.navbar-item {
	padding: 10px;
}

.navbar-logo {
	font-weight: 500;
	padding: 10px;
}

.navbar-brand {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 8px;
	line-height: 100%;
}

.brand-name {
	font-family: var(--font-brand);
	font-weight: 400;
	font-size: 18px;
}

.brand-role {
	font-size: 14px;
	color: var(--color-text-secondary);
	font-weight: 400;
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
	padding: 5px;
}

.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--color-text);
}

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

.footer {
	padding: 16px 0 20px;
}

.footer .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer p {
	line-height: 100%;
}

.footer-brand {
	font-family: var(--font-brand);
	font-size: 18px;
}

.footer-fixed {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 900;
	background: var(--color-bg);
	border-top: 1px solid var(--color-text);
	padding: 16px 0;
}

.footer-credit {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.footer-credit p {
	font-size: 12px;
	color: var(--color-text-secondary);
}

.footer-logo {
	height: 34px;
	width: auto;
	object-fit: contain;
}

.footer-credit-link {
	display: block;
	line-height: 0;
}

/* ---------- Home (horizontal scroll) ---------- */

.home #site-main {
	padding-top: 0;
}

.home .work-section {
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

.home .projects-grid {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(2, 1fr);
	grid-template-columns: 30vw 24vw 38vw 22vw 30vw;
	grid-auto-columns: 30vw;
	gap: 12px;
	padding: var(--navbar-height) 20px var(--footer-height);
	width: max-content;
	height: 100%;
	margin-bottom: 0;
}

.home .project {
	height: 100%;
	min-height: 0;
}

.home .project > a {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.home .project-img {
	height: auto;
	flex: 1 1 auto;
	min-height: 0;
}

/* ---------- Work / archive grid ---------- */

.work-section {
	width: 100%;
}

.work-section-header {
	width: 100%;
	display: flex;
	margin-bottom: 60px;
}

.work-section-header > div {
	flex: 1;
}

.section-header-copy {
	display: flex;
	justify-content: space-between;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 60px 24px;
	margin-bottom: 100px;
}

/* ---------- Project card ---------- */

.project-img {
	height: 480px;
	overflow: hidden;
	border-radius: 20px;
}

.project-img img,
.project-img video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.project-title {
	margin-top: 12px;
	font-family: var(--font-heading);
	font-weight: 500;
}

.project-role {
	font-weight: 700;
}

.project-subtitle {
	color: var(--color-text-secondary);
	margin-top: 4px;
	font-size: 13px;
}

.project-category {
	color: var(--color-text-secondary);
	margin-top: 4px;
	font-size: 8px;
}

/* ---------- Filter chips ---------- */

.work-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 60px;
}

.filter-chip {
	font-family: var(--font-body);
	font-size: 14px;
	padding: 10px 18px;
	border: 1px solid var(--color-text);
	border-radius: 100px;
	color: var(--color-text);
	transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
	background: var(--color-text);
	color: var(--color-bg);
}

/* ---------- Single project ---------- */

.project-detail {
	margin-top: 50px;
}

.project-head {
	width: 100%;
	display: flex;
	margin-bottom: 60px;
}

.project-head > div:nth-child(1) {
	flex: 4;
}

.project-head > div:nth-child(2) {
	flex: 1;
}

.project-brand {
	margin-top: 10px;
	color: var(--color-text-secondary);
}

.project-sub-head {
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 40px;
}

.project-sub-head > div:nth-child(1) {
	flex: 4;
}

.project-sub-head > div:nth-child(2) {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

p.project-copy-sec {
	color: var(--color-text-secondary);
}

.tag {
	font-size: 12px;
	padding: 6px 12px;
	border: 1px solid var(--color-text);
	border-radius: 100px;
	white-space: nowrap;
}

.project-description {
	max-width: 760px;
	margin-bottom: 60px;
}

.project-description p {
	font-size: 18px;
	line-height: 1.5;
}

.project-featured {
	width: 100%;
	max-width: 760px;
	margin: 20px 0;
}

.project-featured video,
.project-featured img {
	width: 100%;
	height: auto;
	display: block;
}

/* ---------- Masonry gallery ---------- */

.project-gallery {
	margin: 30px 0 60px;
}

.masonry {
	column-count: 3;
	column-gap: 30px;
}

.masonry-item {
	break-inside: avoid;
	margin-bottom: 30px;
}

.masonry-item img {
	width: 100%;
	height: auto;
}

/* ---------- Credits ---------- */

.credits {
	display: flex;
	gap: 50px;
	margin-bottom: 60px;
}

.credits-title {
	flex: 1;
}

.credits-groups {
	flex: 2;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.credit-group h3 {
	font-size: 20px;
	font-weight: 500;
	margin-bottom: 10px;
}

.credit-item {
	font-size: 14px;
	margin-bottom: 4px;
}

.credit-role {
	color: var(--color-text-secondary);
	margin-right: 8px;
}

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

.studio {
	margin-top: 50px;
}

.about-hero {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 50px;
	margin: 40px 0;
}

.about-hero-info {
	text-align: right;
}

.about-name {
	font-size: 32px;
	font-weight: 500;
	margin: 0;
}

.about-role {
	font-size: var(--fs-small);
	color: var(--color-text-secondary);
	margin-top: 6px;
}

.about-intro {
	width: 100%;
	margin: 60px 0;
}

.about-intro .section-h2 {
	max-width: 760px;
}

.about-copy {
	width: 100%;
	display: flex;
	gap: 50px;
	margin: 60px 0;
}

.about-copy-col {
	flex: 1;
}

.about-copy-col p {
	line-height: 1.5;
}

.about-note {
	font-size: var(--fs-h2);
	line-height: 1.2;
	margin: 60px 0;
}

.about-note span {
	font-family: var(--font-brand);
	font-style: italic;
}

.about-section {
	width: 100%;
	display: flex;
	gap: 50px;
	margin: 60px 0;
}

.about-section-col:nth-child(1) {
	flex: 4;
}

.about-section-col:nth-child(2) {
	flex: 2;
}

.previous-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.previous-list p {
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	padding-bottom: 10px;
}

.services-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 30px;
	row-gap: 10px;
}

.services-list p {
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	padding-bottom: 10px;
}

.about-clients {
	width: 100%;
	margin: 60px 0;
}

.about-clients .section-title {
	margin-bottom: 50px;
}

.clients-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}

.client-group-title {
	font-size: var(--fs-small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--color-text);
}

.client-group-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.client-group-list li {
	font-size: var(--fs-body);
	line-height: 1.4;
}

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

.contact {
	margin-top: 50px;
}

.contact-info {
	width: 100%;
	display: flex;
	gap: 50px;
	margin: 60px 0;
}

.contact-info .contact-info-col:nth-child(1) {
	flex: 4;
}

.contact-info .contact-info-col:nth-child(2) {
	flex: 2;
	display: flex;
	gap: 20px;
}

.contact-info .contact-info-col:nth-child(2) > div {
	flex: 1;
}

.contact-info-sub-col {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

p.sec-contact {
	color: var(--color-text-secondary);
}

/* ---------- Page content ---------- */

.page-content,
.entry-content {
	max-width: 760px;
}

.page-content p,
.entry-content p {
	margin-bottom: 1em;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.container {
		width: 100%;
	}

	.nav-toggle {
		display: flex;
	}

	.navbar-items {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-bg);
		flex-direction: column;
		padding: 10px 20px;
		border-bottom: 1px solid var(--color-text);
	}

	.navbar-items.is-open {
		display: flex;
	}

	.home #site-main {
		padding-top: var(--navbar-height);
	}

	.home .work-section {
		height: auto;
		overflow: visible;
	}

	.home .projects-grid {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: auto;
		padding: 0 20px 24px;
		gap: 24px;
	}

	.home .project,
	.home .project > a {
		height: auto;
		flex: none;
	}

	.home .project-img {
		flex: none;
		height: 60vh;
	}

	.footer-fixed {
		position: static;
		border-top: none;
		padding: 16px 0 20px;
	}

	.footer .container {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.footer-credit {
		align-items: flex-start;
		margin-top: 25px;
	}

	.work-section-header {
		flex-direction: column;
		gap: 25px;
	}

	.projects-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.project-img {
		height: 320px;
	}

	.project-head,
	.project-sub-head,
	.credits {
		flex-direction: column;
	}

	.about-hero {
		flex-direction: column;
		align-items: flex-start;
		gap: 25px;
	}

	.about-hero-info {
		text-align: left;
	}

	.about-copy,
	.about-section {
		flex-direction: column;
		gap: 25px;
	}

	.contact-info {
		flex-direction: column;
	}

	.clients-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}

	.services-list {
		grid-template-columns: 1fr;
	}

	.masonry {
		column-count: 2;
	}
}

@media (max-width: 600px) {
	.masonry {
		column-count: 1;
	}
}
