/* ==========================================================================
   LCA — Livio Cioffi Architetto
   Editorial, image-led layout: warm paper tones, light serif display type,
   wide-tracked sans for navigation and labels.
   ========================================================================== */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
	--paper: #f6f3ee;
	--paper-2: #ece6dd;
	--ink: #1f1c18;
	--ink-2: #4a443c;
	--muted: #857c70;
	--line: #d8d0c4;
	--bronze: #8c6c47;
	--white: #fff;

	--serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;

	--gutter: clamp(16px, 4vw, 56px);
	--max: 1680px;
	--section: clamp(72px, 11vw, 168px);
	--header-h: 88px;
	--ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* --- Type ---------------------------------------------------------------- */
.display-1, .display-2, .display-3, .hero__title {
	font-family: var(--serif);
	font-weight: 300;
	letter-spacing: -0.01em;
	line-height: 1.04;
}
.display-1 { font-size: clamp(40px, 6.2vw, 96px); }
.display-2 { font-size: clamp(30px, 3.8vw, 58px); line-height: 1.1; }
.display-3 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.1; }

.eyebrow {
	display: inline-block;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--muted);
}
.eyebrow--light { color: rgba(255, 255, 255, .82); }

.prose { color: var(--ink-2); max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.prose a { border-bottom: 1px solid var(--line); }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 1.8em 0 .5em; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 24px; }
.prose ul { list-style: none; margin: 1em 0; }
.prose li { padding-left: 1.4em; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .85em; width: .7em; height: 1px; background: var(--muted); }
.columns-2 { max-width: none; }
@media (min-width: 1100px) { .columns-2 { columns: 2; column-gap: 48px; } .columns-2 p { break-inside: avoid; } }

/* --- Buttons & links ---------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 17px 34px;
	border: 1px solid var(--ink);
	background: var(--ink); color: var(--paper);
	font: 400 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
	cursor: pointer;
	transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
	font: 400 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
	display: inline-flex; align-items: center; gap: 14px;
}
.link-arrow::after { content: ""; width: 36px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.link-arrow:hover::after { width: 60px; }

/* --- Header ------------------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	color: var(--ink);
	background: rgba(246, 243, 238, .94);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.site-header__inner {
	max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
body:not(.has-hero) .site-main { padding-top: var(--header-h); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Transparent over the hero until the page scrolls. */
.has-hero .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; color: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header:not(.is-scrolled)::before {
	content: ""; position: absolute; inset: 0 0 -60px; z-index: -1; pointer-events: none;
	background: linear-gradient(rgba(0, 0, 0, .32), transparent);
}
.site-header.is-hidden { transform: translateY(-100%); }

.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; }
.logo__mark { width: clamp(190px, 21vw, 300px); height: auto; display: block; }
.logo__city { font: 400 8px/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; opacity: .85; }

.site-nav .menu { display: flex; gap: clamp(20px, 3vw, 44px); }
.site-nav a {
	font: 400 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
	position: relative; padding: 8px 0;
}
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .45s var(--ease); }
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after,
.site-nav .current-menu-ancestor > a::after,
.site-nav a[aria-current="page"]::after { right: 0; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
	:root { --header-h: 70px; }
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 2;
		background: none; border: 0; color: inherit; cursor: pointer; padding: 8px 0;
		font: 400 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
	}
	.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
	.nav-toggle__bars { position: relative; }
	.nav-toggle__bars::before { content: ""; position: absolute; top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(3px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

	/* Full-screen panel under the header bar. The header must not create a containing
	   block for fixed children while open (backdrop-filter / transform would clip it). */
	.site-nav {
		position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 1;
		background: var(--paper); color: var(--ink);
		display: flex; flex-direction: column; justify-content: space-between;
		padding: calc(var(--header-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
		overflow-y: auto;
		opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.nav-open .site-header {
		color: var(--ink) !important; background: var(--paper) !important; border-color: var(--line) !important;
		backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transform: none !important;
	}
	.nav-open .site-header::before { display: none; }
	.nav-open .logo { position: relative; z-index: 2; }
	.site-nav .menu { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
	.site-nav .menu li { border-bottom: 1px solid var(--line); }
	.site-nav .menu a {
		display: flex; justify-content: space-between; align-items: center; padding: 18px 0;
		font: 400 26px/1.1 var(--serif); letter-spacing: 0; text-transform: none;
	}
	.site-nav .menu a::after { position: static; content: "→"; width: auto; height: auto; background: none; font: 300 16px/1 var(--sans); color: var(--muted); }
	.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--bronze); }
	.site-nav__extra { display: grid; gap: 18px; margin-top: 40px; }
	.site-nav .site-nav__mail { font: 400 15px/1.4 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--ink-2); padding: 0; }
	.site-nav__extra a::after { display: none; }
	.site-nav__extra .social a { padding: 4px; }
	.site-nav__extra .social { gap: 14px; }
	.nav-open { overflow: hidden; }
}
@media (min-width: 861px) { .site-nav__extra { display: none; } }

/* --- Hero --------------------------------------------------------------- */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; align-items: flex-end;
	color: var(--white); background: #2b2621; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: hero-in 2.4s var(--ease) forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, 0) 70%); pointer-events: none; }
.hero__content { position: relative; z-index: 1; padding-bottom: clamp(36px, 7vh, 80px); }
.hero__title { font-size: clamp(38px, min(6.4vw, 9.5vh), 104px); max-width: 22ch; text-wrap: balance; }

/* Social icons */
.social { display: flex; gap: 18px; }
.social a { display: inline-flex; padding: 4px; opacity: .8; transition: opacity .3s; }
.social a:hover { opacity: 1; }
.contact__details .social { color: var(--ink); }
.hero__content { padding-top: calc(var(--header-h) + 24px); }
.hero__scroll {
	display: inline-flex; align-items: center; gap: 20px; margin-top: clamp(28px, 6vh, 64px);
	font: 400 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.hero__scroll span { width: 64px; height: 1px; background: currentColor; transform-origin: left; animation: line 2.6s var(--ease) infinite; }
.hero--project { min-height: 88vh; min-height: 88svh; }
.hero--project .hero__title { max-width: 18ch; margin-top: 14px; }

@keyframes hero-in { to { transform: scale(1); } }
@keyframes line { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__media img, .hero__scroll span { animation: none; transform: none; } }

/* --- Sections & grids --------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tight { padding-top: clamp(32px, 5vw, 64px); }
.section--rule { border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 72px); }

.grid-12 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) {
	.grid-12 { grid-template-columns: repeat(12, 1fr); gap: 0 32px; }
	.col-label { grid-column: 1 / span 3; }
	.col-body { grid-column: 5 / span 8; }
}
.col-body > * + * { margin-top: clamp(28px, 3vw, 44px); }

.page-head { padding-top: clamp(64px, 10vw, 150px); padding-bottom: clamp(48px, 6vw, 96px); }
.page-head .display-1 { margin-top: 22px; max-width: 18ch; text-wrap: balance; }
.page-head__intro { margin-top: 28px; max-width: 58ch; color: var(--ink-2); font-size: 18px; }
.page-head .btn { margin-top: 36px; }
.page-cover img { width: 100%; max-height: 80vh; object-fit: cover; }

/* --- Selected projects (editorial alternating) --------------------------- */
.feature-list { display: grid; gap: clamp(72px, 10vw, 160px); }
.feature__link { display: block; }
.feature__media { overflow: hidden; background: var(--paper-2); }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature__caption { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 20px; margin-top: 18px; }
.feature__index { font: 400 12px/1 var(--sans); letter-spacing: .2em; color: var(--muted); }
.feature__title { font: 300 clamp(24px, 2.4vw, 36px)/1.1 var(--serif); }
.feature__meta { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
@media (min-width: 900px) {
	.feature--1 { width: 72%; }
	.feature--2 { width: 46%; margin-left: auto; }
	.feature--2 .feature__media img { aspect-ratio: 4 / 5; }
	.feature--3 { width: 58%; margin-left: 12%; }
	.feature--4 { width: 100%; }
	.feature--4 .feature__media img { aspect-ratio: 21 / 9; }
}

/* Image hover zoom */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 1.4s var(--ease), opacity .6s; }
a:hover .img-zoom img { transform: scale(1.035); }

/* --- Collections -------------------------------------------------------- */
.collection-cards { display: grid; gap: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .collection-cards { grid-template-columns: 1fr 1fr; } .collection-card:nth-child(2) { margin-top: 120px; } }
.collection-card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.collection-card__body { margin-top: 24px; display: grid; gap: 8px; }
.collection-card__tag { color: var(--ink-2); max-width: 44ch; }
.collection-card__count { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.piece-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 16px; }
@media (min-width: 700px) { .piece-grid { grid-template-columns: repeat(3, 1fr); gap: 64px 28px; } }
@media (min-width: 1100px) { .piece-grid { grid-template-columns: repeat(4, 1fr); } }
.piece-card__media { background: var(--paper-2); }
.piece-card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.piece-card__title { font: 400 clamp(19px, 1.6vw, 24px)/1.2 var(--serif); margin-top: 16px; }
.piece-card__meta { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* --- Projects index ----------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; }
.filters a { font: 400 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.filters a:hover, .filters a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }

.project-grid { display: grid; gap: clamp(56px, 7vw, 110px) 32px; padding-bottom: var(--section); }
@media (min-width: 900px) {
	.project-grid { grid-template-columns: 1fr 1fr; }
	.project-card:nth-child(4n+2) { margin-top: 140px; }
	.project-card:nth-child(4n+3) { margin-top: -140px; }
	.project-card:nth-child(4n+3):first-child { margin-top: 0; }
}
.project-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-card:nth-child(4n+2) .project-card__media img,
.project-card:nth-child(4n+3) .project-card__media img { aspect-ratio: 4 / 5; }
.project-card__caption { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 20px; margin-top: 18px; }
.project-card__title { font: 300 clamp(24px, 2.2vw, 34px)/1.1 var(--serif); }

/* --- Single project ----------------------------------------------------- */
.facts { display: grid; gap: 22px; align-content: start; }
.facts dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { font-size: 16px; }
.facts a { border-bottom: 1px solid var(--line); }
.lead { color: var(--ink); text-wrap: pretty; }
.focus { border-top: 1px solid var(--line); padding-top: 28px; }
.focus ul { margin-top: 18px; display: grid; gap: 12px; }
.focus li { font: 400 clamp(19px, 1.6vw, 23px)/1.3 var(--serif); padding-left: 32px; position: relative; }
.focus li::before { content: ""; position: absolute; left: 0; top: .7em; width: 18px; height: 1px; background: var(--bronze); }

.gallery { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2.4vw, 32px); padding-bottom: var(--section); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
	.gallery { grid-template-columns: repeat(12, 1fr); }
	.gallery__item--wide { grid-column: 1 / -1; }
	.gallery__item--wide img { aspect-ratio: 16 / 9; }
	.gallery__item--half { grid-column: span 6; }
	.gallery__item--half img { aspect-ratio: 4 / 5; }
	.gallery__item--offset { grid-column: 3 / span 8; margin-block: clamp(24px, 4vw, 64px); }
	.gallery__item--offset img { aspect-ratio: 3 / 2; }
}
.gallery a, .piece__figure a { display: block; cursor: zoom-in; }

.next-project { position: relative; display: flex; align-items: flex-end; min-height: 70vh; color: var(--white); overflow: hidden; background: #2b2621; }
.next-project__media { position: absolute; inset: 0; }
.next-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.next-project:hover .next-project__media img { transform: scale(1.03); }
.next-project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 60%); }
.next-project__body { position: relative; z-index: 1; padding-bottom: clamp(36px, 6vw, 80px); display: grid; gap: 16px; }

/* --- Single piece ------------------------------------------------------- */
.piece { display: grid; gap: 40px; padding-top: clamp(32px, 5vw, 72px); padding-bottom: var(--section); }
@media (min-width: 900px) {
	.piece { grid-template-columns: 5fr 7fr; gap: 64px; }
	.piece__sticky { position: sticky; top: calc(var(--header-h) + 40px); }
}
.piece__sticky { display: grid; gap: 26px; justify-items: start; }
.piece .display-1 { font-size: clamp(40px, 4.6vw, 72px); }
.specs { width: 100%; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.piece__note { font-size: 13px; color: var(--muted); max-width: 52ch; }
.piece__gallery { display: grid; gap: 16px; }
@media (max-width: 899px) {
	/* Swipeable gallery above the product sheet, peeking at the next image. */
	.piece { padding-top: 16px; gap: 28px; }
	.piece__gallery {
		order: -1; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
		margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
		scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.piece__gallery::-webkit-scrollbar { display: none; }
	.piece__figure { flex: 0 0 86%; scroll-snap-align: start; }
	.piece__figure img { aspect-ratio: 4 / 5; object-fit: cover; }
}
.piece__figure img { width: 100%; background: var(--paper-2); }

/* --- Quote / CTA -------------------------------------------------------- */
.quote { text-align: center; }
.quote .wrap { display: grid; justify-items: center; gap: 48px; }
.quote blockquote { font-style: italic; max-width: 16ch; }

/* --- Contact form ------------------------------------------------------- */
.contact-form { display: grid; gap: 28px; max-width: 760px; }
.field-row { display: grid; gap: 28px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
	width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
	background: transparent; color: var(--ink); font: 300 18px/1.5 var(--sans);
	transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { margin-top: 5px; accent-color: var(--ink); }
.consent a { border-bottom: 1px solid var(--line); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-note { padding: 18px 22px; border: 1px solid var(--line); background: var(--paper-2); }
.form-note--error { border-color: #b4553f; }
.contact__details { display: grid; gap: 36px; align-content: start; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #d9d2c7; padding-top: clamp(64px, 8vw, 120px); }
.site-footer .eyebrow { color: #8f8578; margin-bottom: 14px; }
.site-footer a:hover { color: var(--white); }
.site-footer__grid { display: grid; gap: 40px; padding-bottom: clamp(48px, 6vw, 96px); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .logo { align-items: flex-start; color: var(--white); }
.site-footer .logo__city { padding-left: 0; }
.site-footer__tag { margin-top: 22px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #8f8578; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px; border-top: 1px solid #3a352f; font-size: 13px; color: #8f8578; }
.footer-menu { display: flex; gap: 24px; }

/* --- Reveal on scroll --------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* --- Lightbox ----------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 18, 15, .96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: calc(100vw - 2 * var(--gutter)); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #e8e2d8; cursor: pointer; font: 400 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 16px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #8f8578; font-size: 12px; letter-spacing: .2em; }

/* --- Cookie consent ----------------------------------------------------- */
.cc {
	position: fixed; z-index: 150; left: var(--gutter); bottom: var(--gutter);
	width: min(460px, calc(100vw - 2 * var(--gutter)));
	max-height: calc(100vh - 2 * var(--gutter)); overflow: auto;
	background: var(--paper); color: var(--ink);
	border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(31, 28, 24, .18);
	padding: 28px 28px 24px;
	opacity: 0; transform: translateY(16px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cc.is-open { opacity: 1; transform: none; }
.cc__close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 6px; }
.cc__close:hover { color: var(--ink); }
.cc__title { font: 400 26px/1.1 var(--serif); margin-bottom: 12px; padding-right: 28px; }
.cc__text { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.cc__text a { border-bottom: 1px solid var(--line); white-space: nowrap; }
.cc__prefs:not([hidden]) { display: grid; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.cc__cat { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.cc__cat input { margin-top: 4px; accent-color: var(--ink); }
.cc__cat small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.cc__btn { justify-content: center; padding: 14px 12px; font-size: 11px; }
.cc__btn[hidden], .cc__link[hidden] { display: none; }
.cc__btn--wide { grid-column: 1 / -1; justify-content: center; }
.cc__link { grid-column: 1 / -1; justify-self: center; background: none; border: 0; padding: 6px; cursor: pointer; font: 400 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; }
.cc__link:hover { color: var(--ink); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .cc { transition: none; } }

@media (max-width: 600px) {
	.cc { left: 0; right: 0; bottom: 0; width: 100%; max-height: 70vh; border-left: 0; border-right: 0; border-bottom: 0; padding: 20px var(--gutter) calc(16px + env(safe-area-inset-bottom)); }
	.cc__title { font-size: 21px; margin-bottom: 8px; }
	.cc__text { font-size: 13px; line-height: 1.5; }
	.cc__actions { margin-top: 16px; gap: 8px; }
	.cc__btn { padding: 13px 8px; }
}

@media (max-width: 899px) {
	/* Project facts: two columns instead of a tall single list. */
	.facts:not(.contact__details .facts) { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
	.page-head { padding-top: 48px; padding-bottom: 40px; }
	.hero--project { min-height: 72vh; min-height: 72svh; }
}
