/*
Theme Name: Maria Gutierrez
Theme URI: https://mariagutierrez.fr/
Author: Valentin Gutierrez
Author URI: https://valentingutierrez.com/
Description: Lightweight one-page portfolio theme for Maria Gutierrez, costume designer and illustrator. Recreates the original Elementor design without a page builder: texts and images in the Customiser, featured case studies in Projects, illustrations in Gallery. Includes a GDPR cookie banner with Google Consent Mode and Contact Form 7 styling.
Version: 1.5.2
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maria-gutierrez
*/

/* ---------- Fonts: the same families as the original site, self-hosted ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url(assets/fonts/dm-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/dm-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/dm-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/dm-sans-latin-400-italic.woff2) format("woff2"); }

/* ---------- Tokens (colours measured from the original site) ---------- */
:root {
	--white: #ffffff;
	--black: #000000;
	--teal: #233737;      /* featured colour: header, footer, headings, buttons, icons */
	--slate: #50585e;     /* secondary text */
	--mist: #818b92;      /* soft accent */
	--sage: #b9bdb5;      /* soft accent: lines, hover */
	--navy: var(--teal);  /* kept as an alias */
	--alert: #b0244f;     /* form errors */
	--text: #50585e;      /* body copy */
	--icon: #54595f;      /* social icons */
	--line: #666666;      /* form borders */
	--pink: var(--teal);   /* alias: focus and accents */
	--logo: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
	--head: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
	--body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--container: 1170px;
	--gutter: 20px;
	--indent: 100px;
	--header-h: 120px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 14.4px; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 94px 0; }
.screen-reader-text, .anchor-alias { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--teal); color: var(--white); padding: 10px 16px; }
.skip-link:focus { left: 8px; }

/* Small heading with the dash before it: "—— Hello" */
.eyebrow { display: flex; align-items: center; gap: 20px; margin: 0 0 18px; font: 600 17.78px/1 var(--body); color: var(--navy); }
.eyebrow::before { content: ""; width: 65px; height: 2px; background: var(--navy); flex: none; }
.rule { display: block; width: 65px; height: 2px; background: var(--navy); margin-bottom: 18px; }
.section-title { font: 700 44.45px/1.3 var(--head); color: var(--navy); margin-bottom: 28px; text-wrap: balance; }
.section-title--cap { }
.indent { padding-left: var(--indent); }
.prose { color: var(--text); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--teal); color: var(--white); }
.site-header__inner {
	max-width: 1120px; margin: 0 auto; padding: 10px var(--gutter) 12px;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand { margin: 0; font-weight: 400; }
.brand a { display: block; text-decoration: none; color: var(--white); }
.brand__name { display: block; font: 800 32px/1.02 var(--logo); -webkit-text-stroke: .9px currentColor; paint-order: stroke fill; text-transform: uppercase; letter-spacing: .01em; }
.brand__name span { display: block; }
.brand__tagline { display: block; margin-top: 6px; font: 700 14px/1.2 var(--logo); letter-spacing: .01em; }

.site-nav .menu { display: flex; gap: 6px; }
.site-nav .menu a { display: block; padding: 13px 12px; font: 700 18px/1 var(--head); color: var(--white); text-decoration: none; position: relative; }
.site-nav .menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav .menu a:hover::after, .site-nav .menu a:focus-visible::after { transform: scaleX(1); }

.btn-pill {
	justify-self: end; display: inline-flex; align-items: center;
	padding: 20px 25px; border-radius: 50px;
	background: var(--white); color: var(--teal); border: 2px solid transparent;
	font: 700 16px/1 var(--head); text-decoration: none;
	box-shadow: 0 0 0 0 rgba(185, 189, 181, 0);
	transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}

/* Over the slideshow on the home page; becomes a black bar when scrolling */
.site-header--overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; transition: background .3s; }
.site-header--overlay.is-stuck { position: fixed; background: var(--teal); animation: mg-drop .35s var(--ease); }
.admin-bar .site-header--overlay { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header--overlay { top: 46px; } .admin-bar .site-header--overlay.is-stuck { top: 0; } }
@keyframes mg-drop { from { transform: translateY(-100%); } to { transform: none; } }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; justify-self: end; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--white); content: ""; transition: transform .3s var(--ease), background .2s; }
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { left: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; 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: 1180px) {
	.site-header__inner { grid-template-columns: 1fr auto auto; }
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--teal); padding: 8px var(--gutter) 24px;
		opacity: 0; visibility: hidden; transform: translateY(-6px);
		transition: opacity .25s, transform .25s var(--ease), visibility .25s;
	}
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { padding: 14px 0; font-size: 22px; }
	.site-nav .menu a::after { left: 0; right: auto; width: 40px; }
}
@media (max-width: 600px) {
	.brand__name { font-size: 24px; }
	.brand__tagline { font-size: 12px; }
	.btn-pill { padding: 13px 16px; font-size: 14px; }
}
@media (max-width: 400px) { .btn-pill { padding: 11px 13px; font-size: 13px; } .site-header__inner { gap: 10px; } }
@media (max-width: 330px) { .btn-pill { display: none; } }

/* ---------- Slideshow ---------- */
.hero { position: relative; height: 680px; overflow: hidden; background: #e9e6e1; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease, transform 7s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
@media (max-width: 1024px) { .hero { height: 520px; } }
@media (max-width: 600px) { .hero { height: 440px; } }

/* ---------- Mosaic: 2 rows, one wide tile per row, edge to edge ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 25vw; }
.mosaic__item { overflow: hidden; }
.mosaic__item--1, .mosaic__item--6 { grid-column: span 2; }
.mosaic__item a, .mosaic__item img { display: block; width: 100%; height: 100%; }
.mosaic__item img { object-fit: cover; transition: transform 1s var(--ease); }
.mosaic__item a:hover img { transform: scale(1.04); }
@media (max-width: 767px) {
	.mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 50vw; }
	.mosaic__item--1, .mosaic__item--6 { grid-column: span 2; }
}

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 687fr 453fr; gap: 30px; align-items: start; }
.about__photo img { width: 100%; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: var(--white); transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.social a:hover, .social a:focus-visible { background: var(--slate); transform: translateY(-3px); box-shadow: 0 8px 16px rgba(35, 55, 55, .25); }
.social svg { width: 19px; height: 19px; fill: currentColor; padding: 0 !important; }
.social svg.is-imdb { width: 27px; height: 13px; }
.social .social__imdb { fill: currentColor; font-family: var(--head); font-weight: 800; }
.social--light a { background: var(--sage); color: var(--teal); }
.social--light a:hover, .social--light a:focus-visible { background: var(--white); color: var(--teal); box-shadow: 0 8px 16px rgba(0, 0, 0, .25); }

/* ---------- Portfolio: six featured projects ---------- */
.portfolio { padding: 0 0 94px; }
.portfolio__head { margin-bottom: 50px; }
.portfolio .section-title { margin-bottom: 18px; }
.section-intro { max-width: 640px; margin: 0; color: var(--text); font-size: 17px; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 30px; }
.project-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); }
.project-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #eceae6; margin-bottom: 20px; }
.project-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease); }
.project-card__link:hover .project-card__media img, .project-card__link:focus-visible .project-card__media img { transform: scale(1.04); }
.project-card__title { font: 700 22px/1.25 var(--head); color: var(--navy); margin: 0 0 8px; text-wrap: balance; }
.project-card__text { display: block; margin-bottom: 14px; }
.project-card__more { margin-top: auto; font: 700 15px/1 var(--head); color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.project-card__link:focus-visible { outline-offset: 6px; }

.btn-outline { display: inline-flex; align-items: center; padding: 14px 24px; border: 2px solid var(--navy); border-radius: 50px; color: var(--navy); font: 700 15px/1 var(--head); text-decoration: none; transition: background .2s, color .2s; }

/* Popup */
.project-modal { width: min(1180px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 4px; background: var(--white); color: var(--text); overflow: auto; overscroll-behavior: contain; }
.project-modal::backdrop { background: rgba(10, 10, 20, .78); }
.project-modal[open] { animation: mg-pop .3s var(--ease); }
@keyframes mg-pop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }
.project-modal__close { position: sticky; top: 0; float: right; z-index: 3; width: 52px; height: 52px; margin: 8px 8px -60px 0; border-radius: 50%; background: var(--white); color: var(--navy); font-size: 34px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.project-modal__close:hover { background: var(--navy); color: var(--white); }
.project-modal__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; padding: 40px; align-items: start; }
.project-modal__media { position: sticky; top: 0; }
.project-modal__title { font: 700 34px/1.2 var(--head); color: var(--navy); margin: 0 0 14px; padding-right: 50px; text-wrap: balance; }
.project-lead { font-size: 18px; color: var(--navy); margin-bottom: 20px; }
.project-body h2 { font: 700 20px/1.3 var(--head); color: var(--navy); margin: 26px 0 8px; }
.project-body h3 { font: 600 17px/1.3 var(--head); color: var(--navy); margin: 20px 0 6px; }
.project-body p:empty { display: none; }
.project-modal__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.project-modal__page { color: var(--navy); font: 600 15px/1.3 var(--head); }

.project-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0 0 22px; padding: 16px 0; border-top: 1px solid #e3e4e8; border-bottom: 1px solid #e3e4e8; }
.project-facts dt { font: 600 12px/1.3 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.project-facts dd { margin: 2px 0 0; color: var(--navy); font-weight: 400; }

.project-gallery__stage { background: #f2f1ee; }
.project-gallery__slide { margin: 0; }
.project-gallery--modal .project-gallery__slide img { width: 100%; max-height: calc(100dvh - 230px); object-fit: contain; }
.project-gallery--modal .project-gallery__zoom { cursor: e-resize; display: block; }
.project-gallery__slide figcaption { padding: 8px 12px; font-size: 14px; }
.project-gallery__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.project-gallery__arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d3d6d0; border-radius: 50%; color: var(--navy); transition: background .2s, color .2s; }
.project-gallery__arrow svg, .lightbox__nav svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.project-gallery__arrow:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.project-gallery__count { font: 600 14px/1 var(--head); color: var(--navy); font-variant-numeric: tabular-nums; }
.project-gallery__thumbs { display: flex; gap: 10px; margin: 6px 0 0; overflow-x: auto; padding: 6px 4px 8px; list-style: none; }
.project-gallery__thumbs li { flex: 0 0 auto; }
.project-gallery__thumbs button { display: block; width: 64px; height: 64px; padding: 0; opacity: .55; outline-offset: 3px; transition: opacity .2s; }
.project-gallery__thumbs button[aria-current="true"], .project-gallery__thumbs button:hover { opacity: 1; box-shadow: 0 0 0 2px var(--navy); }
.project-gallery__thumbs img { width: 64px; height: 64px; object-fit: cover; }

/* Project page (same content as the popup, on its own URL) */
.project-page { padding: 50px 0 94px; }
.site-header:not(.site-header--overlay) + .site-main .project-page { padding-top: 40px; }
.breadcrumbs { display: flex; gap: 8px; font-size: 14px; margin-bottom: 30px; }
.breadcrumbs a { color: var(--text); }
.project-page__header { margin-bottom: 40px; }
.project-page__header .project-lead { max-width: 720px; }
.project-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.project-gallery--page .project-gallery__stage { display: grid; gap: 15px; background: none; }
.project-gallery--page .project-gallery__slide img { width: 100%; }
.project-layout__text { position: sticky; top: 120px; }
.project-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 70px; padding-top: 30px; border-top: 1px solid #e3e4e8; }
.project-pager a { color: var(--navy); font: 700 18px/1.3 var(--head); text-decoration: none; }
.project-pager a span { display: block; font: 400 13px/1.4 var(--body); color: var(--text); text-transform: uppercase; letter-spacing: .06em; }
.project-pager a[rel="next"] { text-align: right; }
.project-pager__all { font-size: 15px !important; text-decoration: underline !important; }

/* ---------- Illustration gallery: random order and sizes (set by the inline script) ---------- */
.illustrations { padding: 30px 0 94px; }
.illustrations__head { margin-bottom: 40px; }
.illustrations .section-title { margin-bottom: 18px; }
/* Without JavaScript: simple masonry columns */
.gallery-grid { padding: 0 10px; columns: 4 260px; column-gap: 15px; }
.gallery-grid__item { break-inside: avoid; margin-bottom: 15px; }
.gallery-grid__item a { display: block; overflow: hidden; background: #f2f1ee; }
.gallery-grid__item img { width: 100%; transition: transform .9s var(--ease); }
.gallery-grid__item a:hover img { transform: scale(1.03); }
/* With JavaScript: grid of 4px rows; each tile spans the rows its image needs, some tiles span two columns */
.gallery-grid.is-dynamic { columns: auto; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-rows: 4px; grid-auto-flow: row dense; column-gap: var(--g, 15px); row-gap: 0; }
.gallery-grid.is-dynamic .gallery-grid__item { margin: 0; padding-bottom: var(--g, 15px); min-height: 0; }
.gallery-grid.is-dynamic .gallery-grid__item a { height: 100%; }
.gallery-grid.is-dynamic .gallery-grid__item img { height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 570fr 585fr; gap: 15px; align-items: start; }

/* Contact Form 7, styled like the original: boxed fields with placeholders, pink outlined "Send" */
.wpcf7 form > p, .wpcf7 form .mg-field { margin: 0 0 14px; }
.wpcf7 label { display: block; font: 600 14px/1.4 var(--body); color: var(--navy); }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; max-width: 100%; min-height: 46px; padding: 10px 16px;
	font: 400 16px/1.5 var(--body); color: var(--black);
	background: var(--white); border: 1px solid var(--line); border-radius: 16px;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
.wpcf7 textarea { height: 200px; min-height: 160px; resize: vertical; display: block; border-radius: 20px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 30, 45, .12); }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: #767c84; opacity: 1; }
.wpcf7 .wpcf7-not-valid { border-color: var(--alert); }
/* Send button. !important because page builders (Elementor kit, ElementsKit) style every submit button site-wide. */
.wpcf7 input[type="submit"], .wpcf7 button[type="submit"], .wpcf7 .wpcf7-submit {
	min-height: 46px !important; padding: 10px 26px !important; cursor: pointer; border-radius: 50px !important;
	font: 600 15px/1.2 var(--head) !important; letter-spacing: .04em; text-transform: uppercase;
	color: var(--navy) !important; background: transparent !important; border: 2px solid var(--navy) !important; box-shadow: none !important; text-shadow: none !important;
	transition: background .2s, color .2s;
}
.wpcf7 input[type="submit"]:disabled { opacity: .6; cursor: progress; }
.wpcf7 .screen-reader-response, .wpcf7 .hidden-fields-container { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); }
.wpcf7-not-valid-tip { font-size: 14px; color: #b0244f; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 16px; border-radius: 3px; font-size: 15px; line-height: 1.5; color: var(--navy); }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2f7d4f; background: #eef7f1; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output { border-color: #c4a000; background: #fff9e0; }
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: var(--alert); background: #fdf0f4; }
.wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.form-notice { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--text); max-width: 520px; }
.form-notice a { color: var(--navy); }
.form-notice--recaptcha { font-size: 12.5px; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3cbc9; padding: 70px 0 110px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; max-width: 1150px; }
.site-footer__name { margin: 0 0 6px; font: 600 19.55px/1.3 var(--head); color: var(--white); }
.site-footer__copy { margin: 0; font-size: 15px; }
.site-footer .social { margin-top: 0; }

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 14px; }
.site-footer__legal a, .site-footer__legal button { color: #c9cbd6; text-decoration: underline; text-underline-offset: 3px; font: inherit; padding: 0; }
.site-footer__legal a:hover, .site-footer__legal button:hover { color: var(--white); }

/* ---------- Cookie banner ---------- */
.consent { position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; max-width: 980px; margin: 0 auto; background: var(--white); color: var(--text); border-radius: 6px; box-shadow: 0 10px 40px rgba(10, 10, 20, .25); opacity: 0; transform: translateY(20px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.consent.is-visible { opacity: 1; transform: none; }
.consent__inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 30px; padding: 22px 26px; align-items: center; max-height: calc(100dvh - 32px); overflow: auto; }
.consent__title { font: 700 18px/1.3 var(--head); color: var(--navy); margin: 0 0 6px; }
.consent__copy p { font-size: 15px; line-height: 1.55; margin: 0; }
.consent__copy a { color: var(--navy); }
.consent__actions { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
.consent__btn { min-height: 44px; padding: 10px 20px; border-radius: 50px; background: var(--navy); color: var(--white); font: 700 15px/1.2 var(--head); border: 2px solid var(--navy); transition: background .2s, color .2s; }
.consent__btn:hover { background: var(--white); color: var(--navy); }
.consent__link { font: 600 14px/1.3 var(--head); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.consent__prefs { margin-top: 16px; display: grid; gap: 4px; }
.consent__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 0; border-top: 1px solid #e3e4e8; }
.consent__label { display: block; font: 700 15px/1.3 var(--head); color: var(--navy); margin: 0 0 2px; }
.consent__desc { font-size: 14px !important; }
.consent__always { font: 600 13px/1 var(--head); color: #2f7d4f; white-space: nowrap; }
.switch { position: relative; flex: none; width: 50px; height: 28px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 28px; background: #b9bcc4; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (max-width: 767px) {
	.consent { left: 0; right: 0; bottom: 0; border-radius: 6px 6px 0 0; }
	.consent__inner { grid-template-columns: 1fr; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
	.consent__actions { flex-direction: row; flex-wrap: wrap; }
	.consent__btn { flex: 1 1 130px; }
	.consent__link { flex-basis: 100%; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(0, 0, 0, .92); color: var(--white); opacity: 0; transition: opacity .25s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0; min-width: 0; }
.lightbox__img { max-height: calc(100dvh - 100px); max-width: 100%; width: auto; object-fit: contain; }
.lightbox__caption { font: 600 16px/1.3 var(--head); margin-top: 14px; text-align: center; padding: 0 12px; }
.lightbox__close { position: absolute; top: 10px; right: 14px; width: 52px; height: 52px; font-size: 40px; line-height: 1; z-index: 2; }
.lightbox__nav { height: 100%; display: grid; place-items: center; opacity: .65; transition: opacity .2s; }
.lightbox__nav:hover { opacity: 1; }
.lightbox button { color: var(--white); }
body.lb-open { overflow: hidden; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 36px 1fr 36px; } .lightbox__nav svg { width: 24px; height: 24px; } }

/* ---------- Generic pages ---------- */
.page-wrap { padding-top: 70px; padding-bottom: 94px; }
.entry + .entry { margin-top: 60px; padding-top: 60px; border-top: 1px solid #e3e4e8; }
.entry__title { font: 700 32px/1.25 var(--head); color: var(--navy); margin-bottom: 10px; }
.entry__title a { text-decoration: none; }
.entry__image { margin: 0 0 30px; }
.prose h2 { font: 700 30px/1.3 var(--head); color: var(--navy); margin: 1.4em 0 .5em; }
.prose h3 { font: 600 22px/1.3 var(--head); color: var(--navy); margin: 1.3em 0 .4em; }
.notice-empty { padding: 20px; border: 1px dashed currentColor; }
.btn { display: inline-flex; padding: 14px 24px; border-radius: 50px; background: var(--navy); color: var(--white); font: 700 16px/1 var(--head); text-decoration: none; }

/* ---------- Entrance animation (content is visible without JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(46px) scale(.985); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--img { transform: translateY(40px) scale(.96); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive layout ---------- */
@media (max-width: 1024px) {
	:root { --indent: 60px; }
	.section-title { font-size: 38px; }
	.projects { grid-template-columns: repeat(2, 1fr); }
	.project-modal__grid { grid-template-columns: 1fr; padding: 30px; }
	.project-modal__media { position: static; }
	.project-layout { grid-template-columns: 1fr; }
	.project-layout__text { position: static; }
}
@media (max-width: 767px) {
	:root { --indent: 0px; }
	.section { padding: 64px 0; }
	.section-title { font-size: 32px; }
	.about__grid, .contact__grid, .site-footer__inner { grid-template-columns: 1fr; }
	.about__grid { gap: 36px; }
	.about__photo { max-width: 420px; }
	.projects { grid-template-columns: 1fr; gap: 40px; }
	.project-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
	.project-modal__grid { padding: 20px 16px 40px; gap: 24px; }
	.project-modal__title { font-size: 26px; }
	.project-gallery--modal .project-gallery__slide img { max-height: 60dvh; }
	.project-facts { grid-template-columns: 1fr; }
	.project-pager { grid-template-columns: 1fr 1fr; }
	.project-pager__all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
	.contact__grid { gap: 30px; }
	.site-footer { padding: 50px 0 70px; }
}

/* ---------- Featured colour touches ---------- */
.eyebrow::before, .rule { background: var(--teal); box-shadow: 14px 0 0 -0px var(--sage); width: 51px; }
.project-card__more { padding-bottom: 4px; border-bottom: 2px solid var(--sage); align-self: flex-start; transition: border-color .2s; }
.project-card:hover .project-card__more, .project-card__more:hover { border-color: var(--teal); }
.about p a, .section-intro a, .project-body a, .form-notice a { color: var(--teal); text-decoration-color: var(--sage); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.about p a:hover, .section-intro a:hover, .project-body a:hover, .form-notice a:hover { text-decoration-color: var(--teal); }
.project-facts { border-color: var(--sage); }
.project-facts dt { color: var(--slate); }

/* ---------- One hover effect for every button: a spring "pop" from its own position ---------- */
.btn-pill, .btn-outline, .wpcf7 input[type="submit"], .wpcf7 button[type="submit"], .wpcf7 .wpcf7-submit {
	transition: transform .4s cubic-bezier(.34, 1.7, .5, 1), background-color .2s, color .2s, border-color .2s, box-shadow .3s !important;
	will-change: transform;
}
.btn-pill:hover, .btn-pill:focus-visible, .btn-outline:hover, .btn-outline:focus-visible,
.wpcf7 input[type="submit"]:hover, .wpcf7 input[type="submit"]:focus-visible, .wpcf7 button[type="submit"]:hover, .wpcf7 .wpcf7-submit:hover {
	transform: scale(1.09); background: var(--sage) !important; color: var(--teal) !important; border-color: var(--teal) !important;
	box-shadow: none !important;
}
.btn-pill:hover, .btn-pill:focus-visible { border-color: transparent !important; }
.btn-pill:active, .btn-outline:active, .wpcf7 .wpcf7-submit:active { transform: scale(.97); transition-duration: .1s !important; }

/* ---------- Language switch (EN / FR, text only) ---------- */
.header-actions { display: flex; align-items: center; justify-self: end; gap: 18px; }
.lang-switch { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; font: 700 14px/1 var(--head); letter-spacing: .08em; }
.lang-switch li + li::before { content: ""; display: inline-block; width: 1px; height: 14px; margin: 0 10px; background: currentColor; opacity: .45; vertical-align: -2px; }
.lang-switch a { color: var(--white); text-decoration: none; opacity: .7; padding: 8px 0; position: relative; transition: opacity .2s; }
.lang-switch a:hover, .lang-switch a:focus-visible { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; }
.lang-switch a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; }
.lang-switch--nav { display: none; }
@media (max-width: 1180px) { .header-actions { gap: 14px; } }
@media (max-width: 600px) {
	.lang-switch--bar { display: none; }
	.lang-switch--nav { display: flex; margin-top: 18px; font-size: 16px; }
}
body.lang-fr .eyebrow { text-transform: none; }

/* ---------- Header v2: one calm line. Logo left; menu, EN/FR and button grouped on the right ---------- */
.site-header__inner { display: flex; align-items: center; gap: 0; padding: 14px var(--gutter); transition: padding .3s var(--ease); }
.brand { margin-right: auto; }
.brand__name { font-size: 25px; line-height: 1; letter-spacing: .02em; -webkit-text-stroke: .5px currentColor; white-space: nowrap; }
.brand__name span { display: inline; }
.brand__tagline { margin-top: 6px; font: 500 13.5px/1.2 var(--body); letter-spacing: .01em; opacity: .9; transition: opacity .25s, max-height .3s, margin .3s; max-height: 20px; overflow: hidden; }
.site-nav { margin-right: 22px; }
.site-nav .menu { gap: 2px; }
.site-nav .menu a { padding: 12px 14px; font: 600 17px/1 var(--head); opacity: .88; transition: opacity .2s; }
.site-nav .menu a:hover, .site-nav .menu a:focus-visible, .site-nav .menu a.is-current, .site-nav .menu a[aria-current] { opacity: 1; }
.site-nav .menu a::after { left: 14px; right: 14px; bottom: 5px; }
.site-nav .menu a.is-current::after, .site-nav .menu a[aria-current]::after { transform: scaleX(1); }
.header-actions { gap: 0; }
.header-actions .lang-switch { padding-left: 22px; margin-left: 4px; margin-right: 22px; border-left: 1px solid rgba(255, 255, 255, .28); }
.btn-pill { padding: 14px 24px; font-size: 16px; }
.site-header--overlay.is-stuck .site-header__inner { padding-top: 8px; padding-bottom: 8px; }
.site-header--overlay.is-stuck .brand__tagline { opacity: 0; max-height: 0; margin-top: 0; }
.nav-toggle { margin-left: 12px; }
@media (max-width: 1180px) {
	.site-nav { margin-right: 0; }
	.site-nav .menu a { padding: 14px 0; font-size: 22px; opacity: 1; }
	.site-nav .menu a::after { left: 0; right: auto; width: 40px; bottom: 6px; }
	.header-actions .lang-switch { padding-left: 0; margin-left: 0; margin-right: 16px; border-left: 0; }
}
@media (max-width: 860px) { .brand__name { font-size: 22px; } .brand__tagline { font-size: 12.5px; } }
@media (max-width: 600px) {
	.brand__name { font-size: 19px; }
	.brand__name span { display: block; }
	.brand__tagline { font-size: 11.5px; white-space: nowrap; }
	.btn-pill { padding: 11px 16px; font-size: 14px; }
	.nav-toggle { margin-left: 6px; }
}
@media (max-width: 400px) { .brand__name { font-size: 17px; } .brand__tagline { font-size: 10.5px; } .btn-pill { padding: 10px 13px; font-size: 13px; } }

/* Bigger logo while the header sits over the slideshow; it settles to the compact size once the bar sticks */
.brand__name { transition: font-size .3s var(--ease); }
.site-header--overlay:not(.is-stuck) .site-header__inner { padding-top: 24px; padding-bottom: 20px; }
.site-header--overlay:not(.is-stuck) .brand__name { font-size: 34px; -webkit-text-stroke-width: .7px; }
.site-header--overlay:not(.is-stuck) .brand__tagline { font-size: 16px; margin-top: 8px; max-height: 26px; }
@media (max-width: 1024px) { .site-header--overlay:not(.is-stuck) .brand__name { font-size: 32px; } .site-header--overlay:not(.is-stuck) .brand__tagline { font-size: 15px; } }
@media (max-width: 860px) { .site-header--overlay:not(.is-stuck) .brand__name { font-size: 26px; } .site-header--overlay:not(.is-stuck) .brand__tagline { font-size: 14px; } }
@media (max-width: 600px) { .site-header--overlay:not(.is-stuck) .brand__name { font-size: 22px; } .site-header--overlay:not(.is-stuck) .brand__tagline { font-size: 12.5px; margin-top: 6px; } .site-header--overlay:not(.is-stuck) .site-header__inner { padding-top: 16px; padding-bottom: 14px; } }
@media (max-width: 400px) { .site-header--overlay:not(.is-stuck) .brand__name { font-size: 19px; } .site-header--overlay:not(.is-stuck) .brand__tagline { font-size: 11px; } }

/* ---------- Poster: small, next to the project name, below the illustrations in hierarchy ---------- */
.project-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.project-head .project-modal__title, .project-head .section-title { margin: 0; flex: 1 1 auto; min-width: 0; }
.project-poster { flex: 0 0 auto; width: 64px; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(35, 55, 55, .22); pointer-events: none; user-select: none; }
.project-page .project-poster { width: 80px; }
@media (max-width: 600px) { .project-poster, .project-page .project-poster { width: 52px; } .project-head { gap: 14px; } }

.lightbox__nav svg { width: 34px; height: 34px; stroke-width: 1.8; }
@media (max-width: 600px) { .lightbox__nav svg { width: 24px; height: 24px; } }

/* Logo: no stroke trick (it made the edges look rough); the 800 weight is bold enough. Menu never wraps. */
.brand__name { -webkit-text-stroke: 0 !important; text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; }
.site-nav .menu a, .btn-pill, .lang-switch a { white-space: nowrap; }

/* Inner pages (policies, portfolio pages): slim header stays visible while scrolling */
.site-header:not(.site-header--overlay) { position: sticky; top: 0; }
.admin-bar .site-header:not(.site-header--overlay) { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header:not(.site-header--overlay) { top: 46px; } }
.site-header:not(.site-header--overlay) .site-header__inner { padding-top: 8px; padding-bottom: 8px; }
.site-header:not(.site-header--overlay) .brand__tagline { display: none; }
.mosaic__item img { object-position: 50% 20%; }
