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

@font-face {
	font-family: "Jost";
	src: url("font/Jost-SemiBold.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #171717;
	--muted: #5c5c5c;
	--paper: #f7fbfc;
	--panel: #ffffff;
	--line: #c9dce4;
	--accent: #5fb6cf;
	--accent-dark: #245f73;
	--accent-soft: #d9f0f6;
	--sun: #f3b44b;
	--sky: #eaf5f8;
	--shadow: 0 24px 60px rgba(36, 95, 115, 0.18);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Jost", Arial, sans-serif;
	color: var(--ink);
	background: var(--paper);
	line-height: 1.6;
}

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

a {
	color: inherit;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-header {
	min-height: 92vh;
	background:
		linear-gradient(90deg, rgba(247, 251, 252, 0.9), rgba(234, 245, 248, 0.42)),
		url("img/ciel_2.webp") center / cover no-repeat;
}

.navbar {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 18px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.brand img {
	width: 88px;
	height: 88px;
	object-fit: contain;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-links a,
.button {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(23, 23, 23, 0.78);
	text-decoration: none;
	font-size: 0.95rem;
	line-height: 1;
	transition:
		border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
		border-radius 280ms cubic-bezier(0.22, 1, 0.36, 1),
		color 280ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a {
	padding: 12px 16px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.button:hover,
.button:focus-visible {
	border-color: var(--ink);
	border-radius: 999px;
	color: var(--ink);
	outline: none;
}

.menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	border: 1px solid var(--ink);
	background: rgba(247, 251, 252, 0.8);
	cursor: pointer;
	transition:
		border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
		border-radius 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
	border-color: var(--accent-dark);
	border-radius: 999px;
	outline: none;
}

.menu-toggle span:not(.visually-hidden) {
	display: block;
	width: 22px;
	height: 2px;
	margin: 5px auto;
	background: var(--ink);
}

.hero {
	width: min(1120px, calc(100% - 32px));
	min-height: calc(92vh - 108px);
	margin: 0 auto;
	display: flex;
	align-items: center;
	padding: 42px 0 86px;
}

.hero-content {
	max-width: 760px;
}

.eyebrow,
.project-type {
	margin: 0 0 10px;
	color: var(--accent-dark);
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 18px;
	font-size: clamp(3.1rem, 9vw, 6.8rem);
	line-height: 0.92;
	font-weight: 600;
}

h2 {
	margin-bottom: 0;
	font-size: clamp(2rem, 5vw, 3.75rem);
	line-height: 1;
	font-weight: 600;
}

h3 {
	margin-bottom: 12px;
	font-size: 1.35rem;
	line-height: 1.2;
}

.hero-text {
	max-width: 690px;
	margin-bottom: 30px;
	color: #202020;
	font-size: clamp(1.2rem, 2.5vw, 1.85rem);
	line-height: 1.25;
	visibility: hidden;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.button {
	padding: 14px 22px;
	font-weight: 600;
}

.button.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: #10313d;
}

.button.secondary {
	background: rgba(247, 251, 252, 0.66);
}

.button.primary:hover,
.button.primary:focus-visible {
	background: var(--accent);
	border-color: var(--accent);
	color: #10313d;
}

.button.secondary:hover,
.button.secondary:focus-visible {
	background: rgba(247, 251, 252, 0.66);
	border-color: var(--ink);
	color: var(--ink);
}

.section {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 86px 0;
}

.section-heading {
	max-width: 800px;
	margin-bottom: 34px;
}

.intro-grid,
.contact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.intro-grid p,
.project-card p,
.site-footer p {
	color: var(--muted);
}

.projects-section {
	width: 100%;
	background: #fff;
	padding-left: max(16px, calc((100% - 1120px) / 2));
	padding-right: max(16px, calc((100% - 1120px) / 2));
	overflow: hidden;
}

.projects-section .eyebrow,
.projects-section .section-heading h2 {
	color: var(--ink);
}

.projects-showcase {
	position: relative;
	min-height: 720px;
	display: grid;
	place-items: center;
}

.projects-backdrop {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100%;
	margin: 0;
	color: rgba(23, 23, 23, 0.08);
	font-family: "Jost", Arial, sans-serif;
	font-size: clamp(4.2rem, 12vw, 9rem);
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	transform: translate(-50%, -50%);
	z-index: 2;
	pointer-events: none;
}

.projects-collage {
	position: relative;
	width: min(1030px, 100%);
	height: 660px;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 8px;
	box-shadow: none;
	z-index: 1;
	overflow: hidden;
}

.project-card {
	position: absolute;
	width: clamp(86px, 12vw, 150px);
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-decoration: none;
	transition:
		transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
		z-index 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card-one {
	left: 0;
	top: 0;
	width: clamp(100px, 13vw, 165px);
}

.project-card-two {
	left: 31%;
	top: -18px;
	width: clamp(78px, 9vw, 118px);
}

.project-card-three {
	left: 39%;
	top: 33%;
	width: clamp(145px, 18vw, 220px);
}

.project-card-four {
	right: 10%;
	top: 8%;
	width: clamp(92px, 11vw, 140px);
}

.project-card-five {
	right: -1%;
	top: 31%;
	width: clamp(130px, 17vw, 220px);
}

.project-card-six {
	left: 9%;
	bottom: 14%;
	width: clamp(90px, 11vw, 135px);
}

.project-card-seven {
	left: 66%;
	bottom: 5%;
	width: clamp(64px, 8vw, 96px);
}

.projects-collage:has(.project-card:hover) .project-card:not(:hover) {
	filter: none;
}

.project-card:hover,
.project-card:focus-within {
	z-index: 6;
	transform: scale(1.07) rotate(2deg);
}

.project-card img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--sky);
	border-radius: 2px;
	margin-bottom: 8px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.project-card h3 {
	display: none;
}

.project-card p:not(.project-type) {
	display: none;
}

.project-type {
	display: none;
}

.contact-section {
	border-top: 1px solid var(--line);
}

.contact-grid {
	margin-top: 20px;
}

.contact-grid a {
	min-height: 72px;
	display: flex;
	align-items: center;
	padding: 18px;
	border: 1px solid var(--line);
	background: #fff;
	text-decoration: none;
	font-weight: 600;
	transition:
		border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
		border-radius 280ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
		color 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-grid a:hover,
.contact-grid a:focus-visible {
	border-color: var(--accent-dark);
	border-radius: 999px;
	color: var(--accent-dark);
	outline: none;
}

.site-footer {
	padding: 28px 16px;
	text-align: center;
	border-top: 1px solid var(--line);
	background: #fff;
}

.site-footer a {
	display: inline-flex;
	margin-top: 8px;
	color: var(--accent-dark);
	font-weight: 600;
	text-decoration: none;
}

.project-page {
	background: #fff;
}

.project-header {
	background: #fff;
	border-bottom: 1px solid var(--accent);
}

.project-header .navbar {
	padding: 10px 0;
}

.project-header .brand img {
	width: 70px;
	height: 70px;
}

.project-main {
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

.project-layout {
	display: grid;
	grid-template-columns: 33.5% 25.5% 21.5% 19.5%;
	grid-template-rows: 40vh 26.5vh 26.5vh;
	height: calc(100vh - 91px);
	min-height: 560px;
	background: #f8f8f8;
	border: 0;
}

.project-cell {
	padding: 28px;
	border-right: 1px solid var(--accent);
	border-bottom: 1px solid var(--accent);
	background: #f8f8f8;
	color: #0f0f0f;
}

.project-visual-main {
	grid-column: 1;
	grid-row: 1 / 4;
	padding: 0;
	background: #dedede;
	position: relative;
}

.project-title-cell {
	grid-column: 2 / 4;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	justify-content: end;
}

.project-title-cell h1 {
	margin-bottom: 0;
	font-size: clamp(2.8rem, 6.4vw, 5.8rem);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
}

.project-title-cell h1 span {
	display: block;
	white-space: nowrap;
}

.project-title-compact {
	font-size: clamp(2.7rem, 5.2vw, 5.2rem);
	line-height: 1.04;
}

.project-kicker {
	margin: 0;
	max-width: 520px;
	color: var(--accent-dark);
	font-size: clamp(2.1rem, 4vw, 4.2rem);
	line-height: 1;
	text-transform: uppercase;
}

.project-description-cell {
	grid-column: 2;
	grid-row: 2 / 4;
	display: flex;
	flex-direction: column;
	justify-content: start;
	gap: 24px;
}

.project-description-cell p,
.project-info-cell p {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.1;
}

.project-info-cell h2 {
	margin-bottom: 14px;
	font-size: 0.88rem;
	line-height: 1;
	text-transform: uppercase;
}

.inline-project-link {
	color: var(--accent-dark);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 4px;
}

.project-visual-small {
	grid-column: 4;
	grid-row: 1;
	padding: 0;
	background: #e7e7e7;
}

.project-visual-medium {
	grid-column: 3;
	grid-row: 2 / 4;
	padding: 0;
	background: #e7e7e7;
}

.project-info-cell:nth-of-type(6) {
	grid-column: 4;
	grid-row: 2;
}

.project-info-cell:nth-of-type(7) {
	grid-column: 4;
	grid-row: 3;
	border-bottom: 0;
}

.project-title-cell,
.project-visual-medium {
	border-right: 1px solid var(--accent);
}

.project-visual-small,
.project-info-cell:nth-of-type(6),
.project-info-cell:nth-of-type(7) {
	border-right: 0;
}

.project-visual-main,
.project-description-cell,
.project-visual-medium,
.project-info-cell:nth-of-type(7) {
	border-bottom: 0;
}

.image-placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	padding: 24px;
	color: #555;
	background:
		linear-gradient(135deg, rgba(0, 0, 0, 0.08), transparent 42%),
		#e5e5e5;
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

.project-visual-main .image-placeholder {
	background:
		linear-gradient(135deg, rgba(0, 0, 0, 0.12), transparent 48%),
		#d9d9d9;
}

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

.project-image-contain {
	object-fit: contain;
	background: #fff;
}

.project-image-title {
	position: absolute;
	left: 8%;
	right: 8%;
	top: 50%;
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(2.5rem, 4.5vw, 5.2rem);
	font-weight: 600;
	line-height: 0.95;
	text-transform: uppercase;
	text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
	transform: translateY(-50%);
	pointer-events: none;
}

.project-visual-small .project-image {
	object-fit: contain;
	background: #fff;
}

.project-visual-medium .project-image {
	object-fit: contain;
	background: #fff;
}

.project-document-list {
	width: 100%;
	height: 100%;
	display: grid;
	align-content: center;
	gap: 14px;
	padding: 28px;
	background: #fff;
}

.project-document-list a {
	position: relative;
	display: inline-flex;
	width: fit-content;
	min-height: 44px;
	align-items: center;
	gap: 14px;
	padding-bottom: 6px;
	color: var(--accent-dark);
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
}

.project-document-list a::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 1px;
	background: var(--accent);
	transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-document-list a::after {
	content: "PDF";
	font-size: 0.7rem;
	color: var(--ink);
}

.project-document-list a:hover::before,
.project-document-list a:focus-visible::before {
	width: 100%;
}

.project-document-list a:focus-visible {
	outline: none;
}

.next-project {
	display: inline-flex;
	width: fit-content;
	min-height: 34px;
	align-items: center;
	gap: 16px;
	padding: 6px 14px;
	border: 1px solid var(--accent);
	border-radius: 999px;
	color: var(--accent-dark);
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	transition:
		border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
		color 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-nav-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.next-project:hover,
.next-project:focus-visible {
	background: var(--accent);
	border-color: var(--accent);
	color: #10313d;
	outline: none;
}

.project-page .back-link {
	margin: 0;
	border: 0;
	min-height: auto;
	padding: 0;
	text-decoration: none;
}

.char {
	display: inline-block;
	animation: revealChar 520ms ease forwards;
	opacity: 0;
	transform: translateY(22px);
}

.word {
	display: inline-block;
	white-space: nowrap;
}

@keyframes revealChar {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.char {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 760px) {
	.site-header {
		min-height: auto;
	}

	.navbar {
		align-items: flex-start;
		position: relative;
	}

	.menu-toggle {
		display: block;
	}

	.nav-links {
		position: absolute;
		top: 84px;
		right: 0;
		left: 0;
		display: none;
		padding: 12px;
		background: rgba(247, 251, 252, 0.97);
		border: 1px solid var(--line);
		box-shadow: var(--shadow);
	}

	.nav-links.is-open {
		display: grid;
	}

	.nav-links a {
		width: 100%;
		justify-content: flex-start;
	}

	.hero {
		min-height: auto;
		padding: 52px 0 76px;
	}

	.intro-grid,
	.contact-grid,
	.project-card {
		grid-template-columns: 1fr;
	}

	.projects-showcase {
		min-height: auto;
		display: block;
	}

	.projects-backdrop {
		position: static;
		margin-bottom: 28px;
		font-size: clamp(3.4rem, 18vw, 6rem);
		text-align: left;
		transform: none;
		color: rgba(23, 23, 23, 0.12);
	}

	.projects-collage {
		display: grid;
		width: 100%;
		height: auto;
		gap: 18px;
		padding: 18px;
		overflow: hidden;
	}

	.project-card,
	.project-card-one,
	.project-card-two,
	.project-card-three,
	.project-card-four,
	.project-card-five {
		position: static;
		width: 100%;
		min-height: 0;
		transform: none;
		background: transparent;
	}

	.project-card-six,
	.project-card-seven {
		position: static;
		width: 100%;
		opacity: 1;
	}

	.project-card:hover,
	.project-card:focus-within {
		transform: scale(1.02);
	}

	.project-card img {
		aspect-ratio: 16 / 10;
	}

	.project-card .project-type,
	.project-card h3,
	.project-card p {
		opacity: 1;
	}

	.projects-collage:has(.project-card:hover) .project-card:not(:hover) {
		opacity: 1;
		filter: none;
	}


	.section {
		padding: 64px 0;
	}

	.projects-section {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.project-main {
		padding: 34px 0 70px;
	}

	.project-layout {
		display: flex;
		flex-direction: column;
		grid-template-columns: 1fr;
		grid-template-rows: none;
		min-height: 0;
		height: auto;
		background: #fff;
	}

	.project-cell,
	.project-cell:nth-child(3n),
	.project-visual-main {
		border-right: 0;
		border-bottom: 0;
	}

	.project-visual-main,
	.project-title-cell {
		grid-column: auto;
		grid-row: auto;
	}

	.project-title-cell {
		order: 1;
		padding: 22px 16px 12px;
	}

	.project-description-cell {
		order: 2;
		padding: 12px 16px 28px;
		gap: 18px;
	}

	.project-visual-main {
		order: 3;
	}

	.project-visual-small {
		order: 4;
	}

	.project-visual-medium {
		order: 5;
	}

	.project-info-cell {
		order: 6;
		padding: 22px 16px;
		border-top: 1px solid var(--accent);
	}

	.project-visual-main,
	.project-visual-small,
	.project-visual-medium {
		min-height: 0;
		padding: 0;
	}

	.project-visual-main .project-image,
	.project-visual-small .project-image,
	.project-visual-medium .project-image {
		width: 100%;
		height: auto;
		max-height: none;
		object-fit: contain;
		background: #fff;
	}

	.project-title-cell h1 {
		margin-top: 0;
		font-size: clamp(2.3rem, 12vw, 4.1rem);
		line-height: 1.04;
	}

	.project-image-title {
		font-size: clamp(2.2rem, 12vw, 4.4rem);
	}

	.project-nav-actions {
		gap: 8px;
	}

	.next-project {
		min-height: 40px;
	}
}
