/* Mitritsakis theme. Colours: the logo (ink, steel blue) and a dusk over
   blue mountains (slate blues, coral). */

@font-face {
	font-family: "Commissioner";
	src: url("../fonts/commissioner-latin.woff2") format("woff2");
	font-weight: 300 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Commissioner";
	src: url("../fonts/commissioner-latin-ext.woff2") format("woff2");
	font-weight: 300 800;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Commissioner";
	src: url("../fonts/commissioner-greek.woff2") format("woff2");
	font-weight: 300 800;
	font-display: swap;
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
	--ink: #101318;
	--ink-2: #172029;
	--slate: #1f3a48;
	--blue: #2e5a6e;
	--blue-2: #45778c;
	--steel: #8caab5;
	--mist: #dde7eb;
	--paper: #f3f5f6;
	--white: #fff;
	--dusk: #e8927d;
	--dusk-2: #f2b6a4;
	--text: #1a2229;
	--muted: #56666f;
	--line: #d5dfe3;

	--font: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 4px;
	--header-h: 76px;
	--shadow: 0 10px 30px -12px rgba(16, 19, 24, 0.35);

	/* Layered mountains, as in the brand image. */
	--mountains: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath fill='%2345778c' fill-opacity='.35' d='M0 92 150 58l140 30 170-52 150 40 120-26 170 44 150-36 170 34 220-40v108H0z'/%3E%3Cpath fill='%232e5a6e' fill-opacity='.55' d='M0 118 180 84l160 26 200-46 170 50 190-38 160 34 190-30 190 36v44H0z'/%3E%3Cpath fill='%23101318' d='M0 140 210 112l190 22 230-34 190 30 220-26 200 24 200-18v50H0z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	overflow-x: clip;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--slate); }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.6em; color: var(--ink); }
p { margin: 0 0 1.1em; }

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

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(780px + 2 * var(--gutter)); }

/* ---------- Buttons ---------- */

.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 26px;
	border: 2px solid transparent; border-radius: var(--radius);
	font: 600 15px/1.2 var(--font); letter-spacing: 0.02em;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.button .icon { width: 18px; height: 18px; transition: transform .2s; }
.button:hover .icon { transform: translateX(3px); }
.button--primary { background: var(--blue); color: var(--white); }
.button--primary:hover { background: var(--slate); color: var(--white); }
.button--ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.button--ghost:hover { background: var(--white); color: var(--ink); }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 600; text-decoration: none; color: var(--blue); white-space: nowrap;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

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

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--ink);
	border-bottom: 1px solid rgba(140, 170, 181, 0.18);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.site-logo { display: block; flex: 0 0 auto; margin-right: auto; }
.site-logo__img { width: auto; height: 46px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-nav__list a {
	position: relative; display: block; padding: 10px 12px;
	color: #e8eef1; text-decoration: none; font-weight: 500; font-size: 16px;
}
.site-nav__list a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
	background: var(--dusk); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav__list a:hover { color: var(--white); }
.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after,
.site-nav__list .current_page_item > a::after,
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__list .current-menu-item > a,
.site-nav__list a[aria-current="page"] { color: var(--white); }

.lang-switch ul { display: flex; margin: 0; padding: 3px; list-style: none; border: 1px solid rgba(140, 170, 181, 0.4); border-radius: 999px; }
.lang-switch a {
	display: block; min-width: 38px; padding: 4px 10px; border-radius: 999px;
	color: var(--steel); text-align: center; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .04em;
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a[aria-current] { background: var(--steel); color: var(--ink); }

.nav-toggle {
	display: none; position: relative; width: 46px; height: 46px; padding: 0;
	background: transparent; border: 1px solid rgba(140, 170, 181, 0.4); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute; left: 12px; width: 20px; height: 2px; background: var(--white);
	transition: transform .25s, opacity .25s;
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	:root { --header-h: 66px; }
	.site-logo__img { height: 38px; }
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 12px var(--gutter) 24px;
		background: var(--ink); border-bottom: 1px solid rgba(140, 170, 181, 0.18);
		box-shadow: var(--shadow);
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .2s, transform .2s, visibility 0s .2s;
	}
	.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid rgba(140, 170, 181, 0.14); }
	.site-nav__list a::after { left: 4px; right: auto; width: 28px; bottom: 8px; }
	.lang-switch { align-self: flex-start; }
}
@media (max-width: 380px) {
	.site-logo__img { height: 32px; }
}

/* ---------- Section basics ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head--split > div { max-width: 680px; }

/* The logo's line ending in a diamond, under every section title. */
.section-title {
	position: relative; padding-bottom: 22px; margin-bottom: 18px;
	font-size: clamp(28px, 3.6vw, 42px);
}
.section-title::before {
	content: ""; position: absolute; left: 0; bottom: 5px; width: 72px; height: 2px; background: var(--steel);
}
.section-title::after {
	content: ""; position: absolute; left: 74px; bottom: 1px; width: 8px; height: 8px;
	border: 2px solid var(--dusk); transform: rotate(45deg);
}
.section-lead { color: var(--muted); font-size: 18px; margin: 0; }
.section-head__action { margin: 22px 0 0; }

.admin-hint {
	max-width: var(--wrap); margin: 24px auto; padding: 14px 18px;
	background: #fff6e5; border: 1px dashed #d9a441; border-radius: var(--radius); font-size: 15px;
}

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

.hero {
	position: relative; display: flex; align-items: flex-end;
	min-height: min(82vh, 760px); min-height: min(82svh, 760px);
	padding: calc(var(--header-h) + 40px) 0 clamp(72px, 10vw, 128px);
	overflow: hidden; background: var(--ink); color: var(--white);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(16, 19, 24, 0.88) 0%, rgba(31, 58, 72, 0.62) 45%, rgba(232, 146, 125, 0.12) 100%),
		linear-gradient(0deg, rgba(16, 19, 24, 0.7) 0%, rgba(16, 19, 24, 0) 45%);
}
.hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 7vw, 96px);
	background: var(--mountains) bottom / 100% 100% no-repeat;
	filter: brightness(0) invert(1);
}
.hero__content { position: relative; z-index: 1; }
.hero__kicker {
	display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
	color: var(--dusk-2); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero__kicker::before { content: ""; width: 40px; height: 2px; background: var(--dusk); }
.hero__title {
	max-width: 780px; margin-bottom: 20px; color: var(--white);
	font-size: clamp(36px, 6vw, 68px); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em;
}
.hero__text { max-width: 600px; margin-bottom: 32px; color: #dfe8ec; font-size: clamp(17px, 1.6vw, 20px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ---------- Workshop ---------- */

.workshop { padding-top: clamp(40px, 6vw, 72px); }
.workshop__grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
	margin: 0; padding: 0; list-style: none;
}
.workshop__item a { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.workshop__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.workshop__item a::after {
	content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 19, 24, 0.35), transparent 50%);
	opacity: 0; transition: opacity .3s;
}
.workshop__item a:hover img { transform: scale(1.04); }
.workshop__item a:hover::after { opacity: 1; }
@media (max-width: 640px) {
	.workshop__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ---------- Company ---------- */

.grow { background: var(--paper); }
.grow__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.grow__text p { color: #34424b; font-size: 18px; }
.grow__text .button { margin-top: 8px; }
.grow__media { position: relative; margin: 0; }
.grow__media::before {
	content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: 0;
	background: linear-gradient(135deg, var(--dusk-2), var(--blue-2));
	border-radius: var(--radius);
}
.grow__media img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 900px) {
	.grow__inner { grid-template-columns: 1fr; }
	.grow__media { margin-right: 24px; }
}

/* ---------- Project categories on the homepage ---------- */

.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cat-tile {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius);
	aspect-ratio: 3 / 4; background: var(--slate); color: var(--white); text-decoration: none;
}
.cat-tile__media, .cat-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-tile__media img { object-fit: cover; transition: transform .6s ease; }
.cat-tile__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(16, 19, 24, 0.92) 0%, rgba(31, 58, 72, 0.5) 45%, rgba(16, 19, 24, 0.08) 75%);
}
/* On hover the name and the description sit over more of the photo, so a
   second, darker wash fades in and keeps the white text readable. */
.cat-tile__media::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(0deg, rgba(16, 19, 24, 0.95) 10%, rgba(16, 19, 24, 0.78) 55%, rgba(16, 19, 24, 0.35) 100%);
	opacity: 0; transition: opacity .35s ease;
}
.cat-tile:hover .cat-tile__media::before,
.cat-tile:focus-visible .cat-tile__media::before { opacity: 1; }
.cat-tile__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 22px 24px; }
.cat-tile__name { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 12px rgba(16, 19, 24, .5); }
.cat-tile__name::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 12px; background: var(--dusk); transition: width .3s; }
.cat-tile__text {
	display: block; max-height: 0; overflow: hidden; margin-top: 10px; opacity: 0;
	color: #d6e1e5; font-size: 14.5px; line-height: 1.5;
	transition: max-height .4s, opacity .3s;
}
.cat-tile__more {
	position: absolute; right: 18px; bottom: 20px; display: grid; place-items: center;
	width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%;
	transition: background-color .3s, border-color .3s;
}
.cat-tile__more .icon { width: 18px; height: 18px; }
/* Without this the tile would take the site-wide link hover colour (dark blue)
   and the name would disappear into the photo. */
.cat-tile:hover, .cat-tile:focus-visible { color: var(--white); }
.cat-tile:hover .cat-tile__media img { transform: scale(1.06); }
.cat-tile:hover .cat-tile__name::after { width: 64px; }
.cat-tile:hover .cat-tile__text,
.cat-tile:focus-visible .cat-tile__text { max-height: 260px; opacity: 1; }
.cat-tile:hover .cat-tile__more { background: var(--dusk); border-color: var(--dusk); }
.cat-tile__body { padding-right: 66px; }
@media (max-width: 1000px) { .cat-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
	.section-head--split { flex-direction: column; align-items: flex-start; }
	.cat-tiles { gap: 10px; }
	.cat-tile { aspect-ratio: 4 / 5; }
	.cat-tile__body { padding: 16px 14px 18px; }
	.cat-tile__name { font-size: 19px; }
	.cat-tile__text, .cat-tile__more { display: none; }
}
@media (hover: none) {
	.cat-tile__text { max-height: none; opacity: 1; }
	.cat-tile__media::before { opacity: 1; }
}

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

.cta {
	position: relative; overflow: hidden;
	padding: clamp(56px, 8vw, 96px) 0 clamp(88px, 11vw, 140px);
	background: linear-gradient(180deg, #d9a293 0%, #9a8f9a 22%, var(--blue) 58%, var(--slate) 100%);
	color: var(--white);
}
.cta::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(48px, 7vw, 110px);
	background: var(--mountains) bottom / 100% 100% no-repeat;
}
.cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta__title { color: var(--white); font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 10px; }
.cta__text { max-width: 620px; margin: 0; color: #eef3f5; font-size: 18px; }
.cta .button--primary { background: var(--ink); flex: 0 0 auto; }
.cta .button--primary:hover { background: var(--white); color: var(--ink); }
@media (max-width: 760px) { .cta__inner { flex-direction: column; align-items: flex-start; } }

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

.site-footer { background: var(--ink); color: #b9c7cd; font-size: 15.5px; }
.site-footer a { color: #dfe8ec; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px;
	padding-top: 64px; padding-bottom: 48px;
}
.site-footer h2 {
	margin-bottom: 16px; color: var(--steel);
	font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-logo--footer { margin-bottom: 18px; }
.site-logo--footer .site-logo__img { height: 42px; }
.site-footer__brand p { max-width: 320px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(140, 170, 181, 0.35); border-radius: 50%; }
.social a:hover { background: var(--steel); color: var(--ink); text-decoration: none; }
.site-footer__legal {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	padding-top: 20px; padding-bottom: 24px;
	border-top: 1px solid rgba(140, 170, 181, 0.16); font-size: 14px; color: #8a9aa2;
}
.site-footer__legal p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; } }

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.contact-list .icon { flex: 0 0 auto; margin-top: 3px; color: var(--steel); }
.contact-list--large li { gap: 16px; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.contact-list--large li:first-child { padding-top: 0; }
.contact-list--large .icon { width: 24px; height: 24px; color: var(--blue); }
.contact-list--large a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list--large a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Inner page header ---------- */

.page-hero {
	position: relative; overflow: hidden;
	padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 10vw, 128px);
	background: linear-gradient(180deg, var(--ink) 0%, var(--slate) 100%);
	color: var(--white);
}
.page-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 90px);
	background: var(--mountains) bottom / 100% 100% no-repeat;
	filter: brightness(0) invert(1);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero__kicker { margin-bottom: 12px; color: var(--dusk-2); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.page-hero__kicker a { color: inherit; text-decoration: none; }
.page-hero__kicker a:hover { color: var(--white); }
.page-hero__kicker span { margin: 0 8px; color: var(--steel); }
.page-hero__title { max-width: 860px; margin: 0; color: var(--white); font-size: clamp(34px, 5vw, 56px); }
.page-hero__text { max-width: 640px; margin: 16px 0 0; color: #d4e0e5; font-size: 19px; }
.page-hero--404 .hero__actions { margin-top: 28px; }

/* ---------- Projects ---------- */

.project-filter ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.project-filter a {
	display: block; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
	color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px;
	transition: background-color .2s, border-color .2s, color .2s;
}
.project-filter a:hover { border-color: var(--blue); color: var(--blue); }
.project-filter a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
/* While the chosen category is being fetched. */
[data-projects] { transition: opacity .2s ease; }
[data-projects][aria-busy="true"] { opacity: .45; }
.project-filter.is-busy a { cursor: progress; }
@media (max-width: 1000px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }

.project-card__link { display: block; color: inherit; text-decoration: none; }
.project-card__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--mist); aspect-ratio: 4 / 3; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card__body { display: block; padding-top: 14px; }
.project-card__cat { display: block; margin-bottom: 4px; color: var(--blue-2); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.project-card__title { display: block; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.3; }
.project-card__link:hover img { transform: scale(1.04); }
.project-card__link:hover .project-card__title { color: var(--blue); }

.project__content { max-width: 1100px; }
.project__content > p { max-width: 760px; font-size: 19px; color: #34424b; }
.project__lead img { width: 100%; border-radius: var(--radius); }

.project-nav {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
	padding-bottom: clamp(48px, 7vw, 88px);
}
.project-nav a {
	display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--ink); text-decoration: none; font-weight: 600;
	transition: border-color .2s, background-color .2s;
}
.project-nav a:hover { border-color: var(--blue); background: var(--paper); }
.project-nav span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.project-nav__next { grid-column: 2; text-align: right; }
@media (max-width: 600px) {
	.project-nav { grid-template-columns: 1fr; }
	.project-nav__next { grid-column: auto; }
}

.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-links .page-numbers { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.nav-links .current { background: var(--ink); border-color: var(--ink); color: var(--white); }

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

/* ---------- Page content (blocks) ---------- */

.entry-content > * { margin-top: 0; }
.entry-content h2 { margin-top: 1.8em; font-size: clamp(24px, 2.6vw, 32px); }
.entry-content h3 { margin-top: 1.5em; font-size: 22px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--dusk); }
.entry-content figure { margin: 0 0 1.6em; }
.entry-content img { border-radius: var(--radius); }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: 8px; color: var(--muted); font-size: 14.5px; text-align: left; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--dusk); font-size: 19px; }
.entry-content .alignwide,
.wrap--text .wp-block-gallery {
	/* Wider than the text column, still centred on it. Margins rather than a
	   transform, so the arrive-on-scroll animation cannot cancel the centring. */
	max-width: none;
	margin-inline: calc((100% - min(1100px, 100vw - 2 * var(--gutter))) / 2);
}
.entry-content .alignfull { max-width: none; margin-inline: calc((100% - 100vw) / 2 + var(--scrollbar, 0px)); }
.entry-content .alignfull img, .entry-content .alignwide img { width: 100%; }

.entry-content .wp-block-gallery.has-nested-images {
	display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2em;
}
.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image {
	flex: 1 1 260px; margin: 0; max-width: 100%;
}
.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image > a,
.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image img {
	display: block; width: 100%; height: 100%; object-fit: cover;
}
.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image { aspect-ratio: 4 / 3; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { cursor: zoom-in; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--radius); transition: transform .5s ease; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.03); }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { overflow: hidden; border-radius: var(--radius); }

.post-list { margin: 0; padding: 0; list-style: none; }
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-list a { font-size: 20px; font-weight: 600; text-decoration: none; }

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

.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__form { padding: clamp(24px, 4vw, 40px); background: var(--paper); border-radius: var(--radius); border-top: 3px solid var(--dusk); }
.contact__form-title { font-size: 26px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.mitr-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.mitr-form .optional { color: var(--muted); font-weight: 400; }
.mitr-form input[type="text"],
.mitr-form input[type="email"],
.mitr-form input[type="tel"],
.mitr-form textarea {
	width: 100%; padding: 12px 14px;
	background: var(--white); color: var(--text);
	border: 1px solid #bccbd1; border-radius: var(--radius);
	font: 16px/1.5 var(--font);
	transition: border-color .2s, box-shadow .2s;
}
.mitr-form input:focus, .mitr-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 90, 110, 0.18); }
.mitr-form textarea { resize: vertical; min-height: 150px; }
.mitr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .mitr-form__row { grid-template-columns: 1fr; gap: 0; } }
.mitr-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mitr-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.mitr-form__privacy { flex: 1 1 220px; color: var(--muted); font-size: 14px; }
.form-notice { padding: 14px 16px; border-radius: var(--radius); font-weight: 500; }
.form-notice--ok { background: #e6f2ea; color: #1f5132; border-left: 4px solid #2f7a4a; }
.form-notice--error { background: #fbeae6; color: #7a2b1c; border-left: 4px solid var(--dusk); }

.map__frame { position: relative; height: clamp(320px, 45vw, 460px); background: var(--slate); }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
	padding: 24px; text-align: center; color: #d4e0e5;
	background:
		repeating-linear-gradient(0deg, rgba(140, 170, 181, 0.08) 0 1px, transparent 1px 48px),
		repeating-linear-gradient(90deg, rgba(140, 170, 181, 0.08) 0 1px, transparent 1px 48px),
		linear-gradient(180deg, var(--slate), var(--ink));
}
.map__placeholder > .icon { width: 44px; height: 44px; color: var(--dusk); }
.map__note { margin: 0; font-size: 14px; }
.map__note a { color: var(--white); }

/* ---------- Lightbox ---------- */

.lightbox {
	width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
	border: 0; background: rgba(10, 12, 16, 0.95); color: var(--white);
}
.lightbox::backdrop { background: rgba(10, 12, 16, 0.6); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 64px 72px; max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lightbox__caption { margin-top: 14px; color: #d4e0e5; font-size: 15px; text-align: center; }
.lightbox__count { position: absolute; top: 20px; left: 24px; margin: 0; color: var(--steel); font-size: 14px; letter-spacing: .08em; }
.lightbox__btn {
	position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
	background: rgba(255, 255, 255, 0.08); color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; cursor: pointer;
	transition: background-color .2s;
}
.lightbox__btn:hover { background: var(--dusk); border-color: var(--dusk); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 14px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }
@media (max-width: 640px) {
	.lightbox__figure { padding: 64px 12px 80px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
	.lightbox__prev { left: calc(50% - 60px); }
	.lightbox__next { right: calc(50% - 60px); }
}

/* ---------- Movement ---------- */

/* The banner settles into place as the page opens. */
@keyframes mitr-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mitr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mitr-zoom { from { transform: scale(1.07); } to { transform: none; } }
@keyframes mitr-draw { from { transform: scaleX(0); } to { transform: none; } }

.hero__img { animation: mitr-zoom 1.8s cubic-bezier(.2, .6, .2, 1) both; }
.hero__shade, .hero::after { animation: mitr-fade .9s ease both; }
.hero__kicker { animation: mitr-rise .7s .05s cubic-bezier(.22, .7, .3, 1) both; }
.hero__title { animation: mitr-rise .7s .14s cubic-bezier(.22, .7, .3, 1) both; }
.hero__text { animation: mitr-rise .7s .24s cubic-bezier(.22, .7, .3, 1) both; }
.hero__actions { animation: mitr-rise .7s .34s cubic-bezier(.22, .7, .3, 1) both; }
.page-hero__kicker { animation: mitr-rise .6s .04s cubic-bezier(.22, .7, .3, 1) both; }
.page-hero__title { animation: mitr-rise .6s .12s cubic-bezier(.22, .7, .3, 1) both; }
.page-hero__text { animation: mitr-rise .6s .2s cubic-bezier(.22, .7, .3, 1) both; }

/* Everything further down arrives as it is scrolled into view. Only with
   JavaScript running, so nothing can stay invisible without it. */
.has-reveal .reveal { opacity: 0; transform: translateY(22px); will-change: opacity, transform; }
.has-reveal .reveal.is-in {
	opacity: 1; transform: none;
	transition: opacity .7s ease, transform .7s cubic-bezier(.22, .7, .3, 1);
	transition-delay: var(--reveal-delay, 0ms);
	will-change: auto;
}
/* The line under a section title draws itself. */
.has-reveal .section-title.is-in::before { animation: mitr-draw .6s .15s cubic-bezier(.22, .7, .3, 1) both; transform-origin: left; }
.has-reveal .section-title.is-in::after { animation: mitr-fade .4s .5s ease both; }

/* A hint of depth once the page is scrolled. */
.site-header { transition: box-shadow .3s, background-color .3s; }
.site-header.is-stuck { box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .8); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
	.has-reveal .reveal { opacity: 1; transform: none; }
}
