/* ==========================================================================
   Lina Jabre Interiors — redesign preview, direction 2

   Built from the logo: beige square #D5C9A8, gold #957825, charcoal #404041,
   Playfair Display + Montserrat. The square is the recurring motif.
   ========================================================================== */

:root {
	--bg: #f7f4ee;
	--bg-2: #efe9dd;
	--beige: #d5c9a8;
	--gold: #957825;
	--gold-t: #7f6620;
	--gold-l: #c2a55c;
	--ink: #404041;
	--ink-h: #2f2f30;
	--char: #2b2b2c;
	--text: #5b5a58;
	--muted: #8b8984;
	--line: rgba(64, 64, 65, .14);
	--line-l: rgba(247, 244, 238, .16);

	--serif: 'Playfair Display', Georgia, serif;
	--sans: 'Montserrat', 'Segoe UI', Arial, sans-serif;

	--gutter: clamp(20px, 4vw, 64px);
	--max: 1400px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--beige); color: var(--ink-h); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.label {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--gold-t);
	line-height: 1.5;
}
.label::before { content: ''; width: 8px; height: 8px; background: var(--beige); flex: none; }
.label--light { color: var(--gold-l); }
.label--light::before { background: var(--gold-l); }

.h1, .h2, .h3 { font-family: var(--serif); font-weight: 400; color: var(--ink-h); letter-spacing: -.005em; }
.h1 { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.1; }
.h2 { font-size: clamp(30px, 3.1vw, 48px); line-height: 1.15; }
.h3 { font-size: clamp(21px, 1.7vw, 27px); line-height: 1.35; }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--gold); }
.dark .h1, .dark .h2, .dark .h3 { color: #fff; }
.dark .h1 em, .dark .h2 em, .dark .h3 em { color: var(--gold-l); }
.lead { font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.85; color: var(--text); max-width: 36em; }
.dark .lead, .dark p { color: rgba(247, 244, 238, .72); }
.stack > * + * { margin-top: 20px; }
.stack > .label + .h1, .stack > .label + .h2 { margin-top: 16px; }

/* ---------- Buttons & links ---------- */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: 52px;
	padding: 0 30px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #fff;
	background: var(--ink);
	overflow: hidden;
	isolation: isolate;
	transition: color .6s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn i { width: 18px; height: 1px; background: currentColor; position: relative; transition: width .6s var(--ease); }
.btn i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover i { width: 26px; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: #fff; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); }
.btn svg { width: 14px; height: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.more {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ink);
	padding-bottom: 6px;
	background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat;
	transition: background-size .7s var(--ease), color .4s;
}
.more:hover { background-size: 30% 1px; color: var(--gold-t); }
.dark .more { color: #fff; }

/* ---------- Header ---------- */
.header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--header-h);
	display: flex;
	align-items: center;
	transition: transform .7s var(--ease), background-color .5s, box-shadow .5s, height .5s var(--ease);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: none; }
.header.is-scrolled { background: rgba(247, 244, 238, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); height: 70px; }
.header.is-hidden { transform: translateY(-100%); }
.logo { position: relative; display: block; flex: none; }
.logo img { height: 38px; width: auto; transition: opacity .4s, height .5s var(--ease); }
.header.is-scrolled .logo img { height: 32px; }
.logo__light { position: absolute; left: 0; top: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav a:not(.btn) {
	position: relative;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ink);
	padding: 6px 0;
	transition: color .4s;
}
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { height: 42px; padding: 0 20px; font-size: 10px; }
[data-header="light"] .header:not(.is-scrolled) .logo__dark { opacity: 0; }
[data-header="light"] .header:not(.is-scrolled) .logo__light { opacity: 1; }
[data-header="light"] .header:not(.is-scrolled) .nav a:not(.btn) { color: #fff; }
[data-header="light"] .header:not(.is-scrolled) .nav .btn { background: #fff; color: var(--ink); }
[data-header="light"] .header:not(.is-scrolled) .nav .btn:hover { color: #fff; }
[data-header="light"] .header:not(.is-scrolled) .burger { color: #fff; }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); }
.burger span { position: relative; width: 24px; height: 9px; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.burger span::before { top: 0; }
.burger span::after { bottom: 0; }
.menu-open .burger span::before { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-3.75px) rotate(-45deg); }
.menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .header .logo__dark { opacity: 0; }
.menu-open .header .logo__light { opacity: 1; }
.menu-open .burger { color: #fff; }

.menu {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: var(--char);
	color: #fff;
	padding: 110px var(--gutter) 36px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	clip-path: inset(0 0 100% 0);
	transition: clip-path .8s var(--ease-io);
	pointer-events: none;
}
.menu-open .menu { clip-path: inset(0); pointer-events: auto; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); line-height: 1.35; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .8s var(--ease), color .3s; }
.menu nav a small { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; color: var(--gold-l); }
.menu nav a:hover { color: var(--gold-l); }
.menu-open .menu nav a { opacity: 1; transform: none; }
.menu-open .menu nav a:nth-child(2) { transition-delay: .06s; }
.menu-open .menu nav a:nth-child(3) { transition-delay: .12s; }
.menu-open .menu nav a:nth-child(4) { transition-delay: .18s; }
.menu-open .menu nav a:nth-child(5) { transition-delay: .24s; }
.menu__foot { display: grid; gap: 4px; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- Loader & transition ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-items: center; }
.loader__logo { width: clamp(220px, 26vw, 360px); clip-path: inset(0 100% 0 0); }
.loader__bar { position: absolute; left: 50%; top: calc(50% + clamp(50px, 5vw, 70px)); width: 140px; height: 1px; margin-left: -70px; background: var(--line); overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.shutter { position: fixed; inset: 0; z-index: 999; display: grid; grid-template-columns: repeat(var(--cols, 8), 1fr); grid-auto-rows: 1fr; pointer-events: none; }
.shutter i { background: var(--beige); transform: scale(0); }
.shutter i:nth-child(3n) { background: #cdbf9b; }
html.is-entering .shutter i { transform: scale(1.02); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 1001; pointer-events: none; }
.cursor__sq {
	position: absolute;
	width: 12px; height: 12px;
	margin: -6px 0 0 -6px;
	border: 1px solid var(--gold);
	transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .5s, border-color .5s;
	display: grid;
	place-items: center;
}
.cursor__sq span { font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-link .cursor__sq { width: 30px; height: 30px; margin: -15px 0 0 -15px; background: rgba(213, 201, 168, .35); border-color: transparent; }
.cursor.has-label .cursor__sq { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: rgba(43, 43, 44, .88); border-color: transparent; }
.cursor.has-label .cursor__sq span { opacity: 1; transition-delay: .1s; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Motion primitives ---------- */
.js-motion [data-reveal] { opacity: 0; }
.js-motion [data-split] { visibility: hidden; }
.js-motion [data-split].is-split { visibility: visible; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em; margin: 0 -.06em -.12em; }
.w > span { display: inline-block; }

.media { position: relative; overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--parallax img { height: 116%; margin-top: -8%; }

/* Photograph with the logo's beige square set behind it. */
.framed { position: relative; isolation: isolate; }
.framed::before {
	content: '';
	position: absolute;
	z-index: -1;
	width: 62%;
	aspect-ratio: 1;
	left: calc(clamp(18px, 3vw, 44px) * -1);
	bottom: calc(clamp(18px, 3vw, 44px) * -1);
	background: var(--beige);
	transform-origin: left bottom;
	transform: scale(var(--sq, 1));
}
.framed--right::before { left: auto; right: calc(clamp(18px, 3vw, 44px) * -1); transform-origin: right bottom; }
.framed > .media { height: 100%; }

/* ---------- Sections ---------- */
.pad { padding: clamp(64px, 8vw, 120px) 0; }
.pad-s { padding: clamp(44px, 5vw, 76px) 0; }
.tint { background: var(--bg-2); }
.dark { background: var(--char); color: rgba(247, 244, 238, .72); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(30px, 3.5vw, 52px); }
.head .h2 { margin-top: 14px; }

/* Home hero: slideshow --------------------------------------------------- */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; background: var(--char); color: #fff; }
.hero__slide { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); }
.hero__slide.is-active { clip-path: inset(0); z-index: 1; }
.hero__slide.is-leaving { z-index: 0; clip-path: inset(0); }
.hero__slide img, .hero__slide video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(30, 30, 31, .62) 0%, rgba(30, 30, 31, .25) 55%, rgba(30, 30, 31, .1) 100%), linear-gradient(0deg, rgba(30, 30, 31, .55) 0%, rgba(30, 30, 31, 0) 40%); }
.hero__content { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(120px, 17vh, 170px); }
.hero__content .h1 { color: #fff; max-width: 13em; margin-top: 18px; }
.hero__content .h1 em { color: var(--gold-l); }
.hero__content .lead { color: rgba(255, 255, 255, .8); margin-top: 18px; max-width: 30em; }
.hero__content .btns { margin-top: 30px; }
.hero__nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; }
.hero__nav .wrap { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 20px; }
.hero__tab { text-align: left; color: rgba(255, 255, 255, .55); padding-top: 14px; position: relative; transition: color .4s; }
.hero__tab::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .25); }
.hero__tab i { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__tab b { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: .2em; }
.hero__tab span { display: block; font-family: var(--serif); font-size: 15px; margin-top: 2px; }
.hero__tab.is-active, .hero__tab:hover { color: #fff; }

/* Two-column split -------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split--wide { grid-template-columns: 5fr 6fr; }
.split__media { aspect-ratio: 4 / 5; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.stat { background: var(--bg-2); padding: 22px 20px; }
.stat__n { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); color: var(--ink-h); line-height: 1.15; font-variant-numeric: lining-nums; }
.stat__l { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* Quote panel ------------------------------------------------------------- */
.qpanel { display: block; }
.qpanel__body { background: var(--bg-2); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: clamp(80px, 11vw, 160px) var(--gutter); position: relative; overflow: hidden; }
.qpanel__body::after { content: ''; position: absolute; width: 22%; aspect-ratio: 1; right: -12%; bottom: -12%; background: var(--beige); opacity: .45; }
.qpanel__mark { width: 74px; margin-bottom: 30px; position: relative; z-index: 1; }
.qpanel blockquote { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 1.9vw, 28px); line-height: 1.5; color: var(--ink-h); }
.qpanel cite { position: relative; z-index: 1; display: block; margin-top: 26px; font-style: normal; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-t); }
.qpanel cite span { display: block; color: var(--muted); font-weight: 400; letter-spacing: .14em; margin-top: 4px; }

/* Project cards ----------------------------------------------------------- */
.card { position: relative; display: block; overflow: hidden; background: var(--bg-2); color: #fff; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 30, 31, .72) 0%, rgba(30, 30, 31, 0) 50%); transition: background-color .6s; }
.card:hover img { transform: scale(1.06); }
.card:hover::after { background-color: rgba(30, 30, 31, .18); }
.card__meta { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2vw, 28px); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; transform: translateY(8px); transition: transform .7s var(--ease); }
.card:hover .card__meta { transform: none; }
.card__t { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 24px); line-height: 1.25; }
.card__l { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-top: 6px; }
.card__go { flex: none; width: 42px; height: 42px; background: var(--beige); color: var(--ink); display: grid; place-items: center; transform: scale(0); transition: transform .6s var(--ease); }
.card:hover .card__go { transform: scale(1); }
.card__go svg { width: 16px; }
.card__type { position: absolute; z-index: 1; top: 16px; left: 16px; font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: rgba(247, 244, 238, .9); padding: 5px 10px; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(170px, 16vw, 250px); gap: clamp(10px, 1.1vw, 16px); }
.bento .card:nth-child(1) { grid-column: 1 / 8; grid-row: span 2; }
.bento .card:nth-child(2) { grid-column: 8 / 13; }
.bento .card:nth-child(3) { grid-column: 8 / 13; }
.bento .card:nth-child(4) { grid-column: 1 / 6; }
.bento .card:nth-child(5) { grid-column: 6 / 13; }

/* Services switcher ------------------------------------------------------- */
.svc { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc__list { margin-top: 30px; border-top: 1px solid var(--line); }
.svc__item { display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
.svc__item::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.svc__n { font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--muted); transition: color .4s; }
.svc__t { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 25px); color: var(--muted); transition: color .4s, transform .6s var(--ease); line-height: 1.3; }
.svc__sq { width: 10px; height: 10px; background: var(--beige); justify-self: end; transform: scale(0) rotate(45deg); transition: transform .6s var(--ease); }
.svc__item.is-active::before { transform: scaleX(1); }
.svc__item.is-active .svc__n { color: var(--gold-t); }
.svc__item.is-active .svc__t { color: var(--ink-h); transform: translateX(8px); }
.svc__item.is-active .svc__sq { transform: none; }
.svc__stage { position: sticky; top: 110px; aspect-ratio: 4 / 5; }
.svc__stage .media { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease-io); }
.svc__stage .media.is-active { clip-path: inset(0); z-index: 1; }
.svc__stage .media img { transition: transform 1.6s var(--ease); transform: scale(1.12); }
.svc__stage .media.is-active img { transform: none; }
.svc__cap { position: absolute; z-index: 2; left: 0; bottom: 0; background: var(--bg); padding: 14px 20px; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }

/* Philosophy -------------------------------------------------------------- */
.philo { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.philo__mark { width: 70px; margin-bottom: 30px; }
.philo .h3 { color: #fff; font-size: clamp(21px, 1.8vw, 28px); line-height: 1.55; }
.philo .h3 em { color: var(--gold-l); }
.philo__sig { margin-top: 28px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-l); }
.philo__pics { position: relative; height: clamp(380px, 38vw, 540px); }
.philo__pics .media { position: absolute; }
.philo__pics .media:first-child { width: 64%; height: 78%; right: 0; top: 0; }
.philo__pics .media:last-child { width: 48%; height: 54%; left: 0; bottom: 0; outline: 10px solid var(--char); }

/* Full-bleed CTA ---------------------------------------------------------- */
.cta { position: relative; overflow: hidden; color: #fff; text-align: center; padding: clamp(90px, 12vw, 170px) 0; }
.cta > .media { position: absolute; inset: 0; }
.cta > .media::after { content: ''; position: absolute; inset: 0; background: rgba(32, 32, 33, .62); }
.cta .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta .h2 { color: #fff; margin-top: 16px; max-width: 16em; }
.cta .h2 em { color: var(--gold-l); }
.cta p { color: rgba(255, 255, 255, .8); margin-top: 16px; max-width: 34em; }
.cta .btns { margin-top: 30px; justify-content: center; }

/* Footer ------------------------------------------------------------------ */
.footer { background: var(--char); color: rgba(247, 244, 238, .66); padding-top: clamp(56px, 6vw, 84px); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--line-l); }
.footer__logo img { width: clamp(220px, 20vw, 290px); }
.footer__tag { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 23px); color: #fff; max-width: 22em; line-height: 1.45; }
.footer__tag em { color: var(--gold-l); }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: clamp(36px, 4vw, 56px) 0; }
.footer h4 { display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-l); margin: 0 0 14px; }
.footer h4::before { content: ''; width: 7px; height: 7px; background: var(--gold-l); }
.footer li, .footer p { font-size: 14px; line-height: 2; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--gold-l); }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 26px; border-top: 1px solid var(--line-l); font-size: 12px; color: rgba(247, 244, 238, .42); }
.to-top:hover { color: var(--gold-l); }

/* ---------- Inner page heads ---------- */
.phead { padding: calc(var(--header-h) + clamp(40px, 5vw, 80px)) 0 clamp(40px, 5vw, 70px); }
.phead .h1 { margin-top: 16px; }
.crumbs { font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-top: 18px; }
.crumbs a:hover { color: var(--gold-t); }

.ihero { position: relative; height: 78vh; min-height: 520px; overflow: hidden; color: #fff; }
.ihero > .media { position: absolute; inset: 0; }
.ihero > .media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 30, 31, .7) 0%, rgba(30, 30, 31, .1) 55%, rgba(30, 30, 31, .35) 100%); }
.ihero__content { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(36px, 5vw, 64px); }
.ihero .h1 { color: #fff; margin-top: 14px; }
.ihero .h1 em { color: var(--gold-l); }
.ihero .crumbs { color: rgba(255, 255, 255, .7); }

.pquote { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.55; color: var(--ink-h); padding-left: 22px; border-left: 2px solid var(--beige); }

/* About */
.prose p { font-size: 15.5px; line-height: 1.9; }
.prose p + p { margin-top: 1em; }
.prose p:first-child { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.6; color: var(--ink-h); }
.sig { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.sig img { width: 58px; }
.sig b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink-h); }
.sig span { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.1vw, 16px); }
.tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 30, 31, .7), rgba(30, 30, 31, 0) 55%); }
.tile:hover img { transform: scale(1.06); }
.tile__t { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; font-family: var(--serif); font-size: clamp(18px, 1.5vw, 23px); }
.tile__n { position: absolute; z-index: 1; left: 20px; top: 16px; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; }

.steps { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); position: relative; }
.steps__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.steps__line i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.step { position: relative; padding: 36px 18px 0 0; }
.step::before { content: ''; position: absolute; left: 0; top: 0; width: 15px; height: 15px; background: var(--beige); }
.step__n { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; color: var(--gold-t); }
.step__t { font-family: var(--serif); font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-h); margin-top: 6px; line-height: 1.35; }

/* Services page */
.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.1vw, 16px); }
.scard { position: relative; background: var(--bg); padding: clamp(26px, 2.6vw, 40px); min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; overflow: hidden; isolation: isolate; }
.scard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--char); transform: translateY(101%); transition: transform .8s var(--ease); }
.scard:hover::before { transform: none; }
.scard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.scard__icon { width: 58px; height: 58px; background: var(--beige); display: grid; place-items: center; }
.scard__icon svg { width: 26px; height: 26px; stroke: var(--gold); }
.scard__n { font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--muted); transition: color .6s; }
.scard__t { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 25px); color: var(--ink-h); line-height: 1.3; transition: color .6s; }
.scard:hover .scard__t { color: #fff; }
.scard:hover .scard__n { color: var(--gold-l); }

.xfade { position: sticky; top: 110px; aspect-ratio: 4 / 5; }
.xfade .media { position: absolute; inset: 0; }
.xfade .media + .media { clip-path: inset(100% 0 0 0); }

.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.1vw, 16px); }
.mgrid .media { aspect-ratio: 1; }
.mgrid .media img { transition: transform 1.4s var(--ease); }
.mgrid .media:hover img { transform: scale(1.05); }

/* Projects page */
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 6px 30px; border-bottom: 1px solid var(--line); }
.filter { position: relative; padding: 14px 0; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.filter sup { font-size: 9px; color: var(--gold-t); margin-left: 3px; }
.filter:hover, .filter.is-active { color: var(--ink-h); }
.filters__bar { position: absolute; bottom: -1px; left: 0; height: 2px; background: var(--gold); width: 0; }
.count { font-family: var(--serif); font-size: clamp(40px, 4vw, 60px); color: var(--gold); line-height: 1; font-variant-numeric: lining-nums; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.1vw, 16px); margin-top: clamp(24px, 3vw, 40px); }
.pgrid .card { aspect-ratio: 4 / 5; }
.pgrid .card.is-hidden { display: none; }

/* Project page */
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 12px; }
.fact { background: var(--bg-2); padding: 20px 22px; }
.fact dt { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); }
.fact dd { font-family: var(--serif); font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-h); margin-top: 6px; }
.masonry { columns: 3; column-gap: clamp(10px, 1.1vw, 16px); }
.masonry .media { break-inside: avoid; margin-bottom: clamp(10px, 1.1vw, 16px); cursor: zoom-in; }
.masonry .media img { height: auto; transition: transform 1.4s var(--ease); }
.masonry .media:hover img { transform: scale(1.04); }
.next { display: grid; grid-template-columns: 1fr 1fr; height: clamp(340px, 38vw, 520px); }
.next > .media { height: 100%; }
.next > .media img { transition: transform 1.4s var(--ease); }
.next:hover > .media img { transform: scale(1.05); }
.next__body { background: var(--bg-2); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: clamp(36px, 5vw, 80px); }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(30, 30, 31, .96); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .5s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; }
.lightbox button { position: absolute; color: #fff; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; padding: 14px; }
.lb-close { top: 18px; right: calc(var(--gutter) - 14px); }
.lb-prev { left: calc(var(--gutter) - 14px); top: 50%; }
.lb-next { right: calc(var(--gutter) - 14px); top: 50%; }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .6); font-size: 12px; letter-spacing: .2em; }

/* Contact */
.chero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.chero__body { padding: calc(var(--header-h) + clamp(40px, 5vw, 70px)) clamp(24px, 5vw, 80px) clamp(40px, 5vw, 70px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; }
.chero__media { min-height: 420px; }
.chero__media img { object-position: 50% 25%; }
.clist { margin-top: 34px; border-top: 1px solid var(--line); }
.clist div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.clist dt { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); padding-top: 3px; }
.clist dd { font-family: var(--serif); font-size: 18px; color: var(--ink-h); }
.clist a:hover { color: var(--gold-t); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field > span { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: #fff; padding: 14px 16px; font: inherit; font-size: 15px; color: var(--ink-h); border-radius: 0; outline: none; transition: border-color .4s, box-shadow .4s; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(213, 201, 168, .5); }
.field textarea { min-height: 140px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); background: #fff; font-size: 13px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.igcard { display: flex; gap: 20px; align-items: center; background: var(--bg); padding: 22px; margin-top: 30px; }
.igcard img { width: 96px; height: 96px; flex: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 600; transform: translate(-50%, 160%); background: var(--char); color: #fff; padding: 14px 24px; font-size: 13px; transition: transform .7s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }

.preview-tag { position: fixed; right: 0; top: 50%; z-index: 400; transform: translateY(-50%); writing-mode: vertical-rl; background: var(--beige); color: var(--ink); font-size: 8.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; padding: 12px 5px; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.nav { display: none; }
	.burger { display: inline-flex; }
	.steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
	.steps__line { display: none; }
	.tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	:root { --header-h: 70px; }
	.logo img { height: 30px; }
	.split, .split--wide, .svc, .philo, .qpanel, .chero, .next { grid-template-columns: 1fr; }
	.next { height: auto; }
	.next > .media { height: 60vw; }
	.split__media { max-width: 520px; }
	.svc__stage { position: relative; top: 0; order: -1; aspect-ratio: 4 / 3; }
	.philo__pics { height: 90vw; max-height: 520px; }
	.hero__content { bottom: 110px; }
	.hero__shade { background: linear-gradient(0deg, rgba(30, 30, 31, .82) 0%, rgba(30, 30, 31, .45) 55%, rgba(30, 30, 31, .25) 100%); }
	.hero__nav .wrap { gap: 10px; }
	.hero__tab span { display: none; }
	.bento { grid-auto-rows: 44vw; }
	.bento .card:nth-child(n) { grid-column: 1 / -1; grid-row: auto; }
	.bento .card:nth-child(2), .bento .card:nth-child(3) { grid-column: span 6; }
	.scards { grid-template-columns: 1fr 1fr; }
	.xfade { position: relative; top: 0; aspect-ratio: 4 / 3; }
	.mgrid { grid-template-columns: 1fr 1fr; }
	.pgrid { grid-template-columns: 1fr 1fr; }
	.masonry { columns: 2; }
	.facts { grid-template-columns: 1fr 1fr; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.chero { min-height: 0; }
	.chero__media { order: -1; min-height: 0; aspect-ratio: 4 / 3; margin-top: var(--header-h); }
	.chero__body { padding: 40px var(--gutter); }
}
@media (max-width: 560px) {
	.stats { grid-template-columns: 1fr; }
	.scards, .pgrid, .form { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr 1fr; }
	.masonry { columns: 1; }
	.bento .card:nth-child(2), .bento .card:nth-child(3) { grid-column: 1 / -1; }
	.btn { height: 48px; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Late additions */
.card__t, .card__l { display: block; }
.qpanel__body::after { transform: translate(var(--qx, 0%), var(--qx, 0%)); }
html.is-entering .shutter { background: var(--beige); }


/* WordPress additions */
.admin-bar .header { top: 32px; }
.admin-bar .menu { top: 32px; }
@media (max-width: 782px) { .admin-bar .header, .admin-bar .menu { top: 46px; } }
.form-msg { padding: 14px 18px; margin-bottom: 18px; font-size: 14px; }
.form-msg--ok { background: #e9efe0; color: #3d4a26; border-left: 3px solid #7a8f3f; }
.form-msg--err { background: #f6e4e0; color: #6a2d22; border-left: 3px solid #b0482e; }
.prose--page h2, .prose--page h3 { font-family: var(--serif); font-weight: 400; color: var(--ink-h); margin: 1.6em 0 .5em; }
.prose--page ul, .prose--page ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose--page li { margin: .3em 0; }
.prose--page a { color: var(--gold-t); text-decoration: underline; }
.prose--page p:first-child { font-family: var(--sans); font-size: 15.5px; line-height: 1.9; color: var(--text); }
.ljd .ast-scroll-top-icon, .ljd #ast-scroll-top { display: none !important; }

/* ---------- Gallery by space ---------- */
.space-nav { position: sticky; top: 69px; z-index: 40; display: flex; flex-wrap: wrap; gap: 6px 30px; margin-bottom: clamp(8px, 1.5vw, 20px); background: var(--bg); border-bottom: 1px solid var(--line); transition: top .5s var(--ease); }
.space-nav button { position: relative; padding: 14px 0; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.space-nav button i { font-style: normal; font-size: 9px; vertical-align: super; color: var(--gold-t); margin-left: 3px; }
.space-nav button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.space-nav button:hover, .space-nav button.is-on { color: var(--ink-h); }
.space-nav button.is-on::after { transform: scaleX(1); }
.space[hidden], .masonry .media[hidden] { display: none; }
.space { padding-top: clamp(28px, 4vw, 56px); scroll-margin-top: calc(var(--header-h) + 12px); }
.space__head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 16px; margin-bottom: clamp(16px, 2vw, 26px); border-bottom: 1px solid var(--line); }
.space__no { font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: var(--gold); }
.space__head .h3 { flex: 1; }
.space__ct { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.masonry--two { columns: 2; }
@media (max-width: 700px) { .space-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); } .space-nav::-webkit-scrollbar { display: none; } .space-nav { gap: 0 22px; } .space-nav button { flex: none; white-space: nowrap; } .masonry--two { columns: 1; } }

/* ---------- Floating back-to-top (long pages) ---------- */
.fab-top { position: fixed; right: clamp(16px, 2.2vw, 32px); bottom: clamp(16px, 2.2vw, 32px); z-index: 60; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--ink-h); color: var(--bg); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s; }
.fab-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab-top:hover { background: var(--gold); }

/* ---------- Project gallery: rows in the order set in the editor ---------- */
.masonry.rows { --rowh: 420px; columns: auto; display: flex; flex-wrap: wrap; gap: clamp(10px, 1.1vw, 16px); }
.masonry.rows::after { content: ''; flex-grow: 1000000; }
.masonry.rows .media { margin: 0; flex: calc(var(--ar, 1) * 100) 1 calc(var(--ar, 1) * var(--rowh)); aspect-ratio: var(--ar, 1); min-width: 0; }
.masonry.rows .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 782px) { .masonry.rows { --rowh: 280px; } }
@media (max-width: 560px) { .masonry.rows { --rowh: 190px; } }

/* Portrait hero photos: keep the top (face) in view when cropped to landscape. */
.ihero--top > .media img { object-position: 50% 8%; }
