/*
Theme Name: Project Image Library
Theme URI: https://wa.me/917404640062
Author: SPL
Author URI: https://wa.me/917404640062
Description: A modern, team-friendly project media library for WordPress. Every project holds images, a video and a brochure, presented in three clear sections on a royal emerald-gold design with glass controls. Your team searches, browses, downloads any size and requests more via WhatsApp. Works with Elementor and Gutenberg out of the box.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pil-catalog
Tags: portfolio, gallery, custom-menu, custom-logo, translation-ready
*/

/* ---------------------------------------------------------
   1. Tokens — royal emerald + gold
--------------------------------------------------------- */
:root {
	--royal: #0a2b22;
	--royal-deep: #061a14;
	--royal-mid: #123a2e;
	--gold: #c9a227;
	--gold-soft: #e3c878;
	--gold-bright: #f0d894;
	--cream: #f7f2e6;
	--cream-dim: #e8e2d2;
	--muted: #cdd6c9;
	--glass: rgba(255, 255, 255, .07);
	--glass-2: rgba(255, 255, 255, .12);
	--glass-line: rgba(255, 255, 255, .16);
	--glass-line-soft: rgba(255, 255, 255, .09);
	--radius: 18px;
	--radius-sm: 12px;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--max: 1280px;
}

/* ---------------------------------------------------------
   2. Base
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	color: var(--cream);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	background-color: var(--royal-deep);
	background-image:
		radial-gradient(1100px 620px at 88% -12%, rgba(201, 162, 39, .38), transparent 62%),
		radial-gradient(900px 620px at 4% 6%, rgba(28, 92, 72, .85), transparent 66%),
		radial-gradient(1200px 800px at 50% 110%, rgba(18, 58, 46, .9), transparent 70%),
		linear-gradient(158deg, #0a2b22 0%, #071f19 48%, #0c332a 100%);
	background-attachment: fixed;
	min-height: 100vh;
}

body::before {
	content: "";
	position: fixed;
	inset: -15%;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(320px 320px at 14% 18%, rgba(240, 216, 148, .28), transparent 68%),
		radial-gradient(380px 380px at 86% 12%, rgba(201, 162, 39, .22), transparent 70%),
		radial-gradient(460px 460px at 74% 72%, rgba(36, 110, 86, .55), transparent 70%),
		radial-gradient(300px 300px at 30% 82%, rgba(240, 216, 148, .12), transparent 70%);
	filter: blur(30px) saturate(120%);
}
.pil-header, .pil-wrap, .pil-footer { position: relative; z-index: 1; }

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: .5;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.5'/></svg>");
	background-size: 180px 180px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-soft); }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.18; font-weight: 600; letter-spacing: -.01em; color: var(--cream); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
::selection { background: rgba(201, 162, 39, .35); color: #fff; }

.pil-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.pil-eyebrow {
	display: inline-block;
	font-size: 11.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold-soft);
	margin-bottom: 10px;
}

/* ---------------------------------------------------------
   3. Header / footer
--------------------------------------------------------- */
.pil-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(6, 26, 20, .72);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	box-shadow: 0 1px 0 rgba(201, 162, 39, .18), 0 12px 30px rgba(0, 0, 0, .28);
}
.pil-header-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 76px;
}
.pil-brand { display: flex; align-items: center; gap: 13px; font-size: 17px; letter-spacing: .01em; }
.pil-brand img { max-height: 44px; width: auto; }
.pil-brand-logo { height: 42px; width: auto; display: block; filter: drop-shadow(0 2px 10px rgba(201, 162, 39, .28)); }
.pil-brand-name {
	font-family: var(--serif);
	font-size: 19px;
	font-weight: 500;
	letter-spacing: .01em;
	color: var(--cream);
}
.pil-brand-mark {
	width: 38px; height: 38px; border-radius: 11px;
	background: linear-gradient(160deg, var(--gold), #8f6f18);
	color: #14200f;
	display: grid; place-items: center;
	font-family: var(--serif); font-size: 18px;
}
.pil-nav { margin-left: auto; }
.pil-nav ul { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.pil-nav a { color: var(--cream-dim); }
.pil-nav a:hover { color: var(--gold-soft); }
.pil-nav li.current-menu-item > a { color: var(--cream); font-weight: 600; }
.pil-header-cta { display: flex; align-items: center; gap: 10px; }
.pil-header-toggle {
	display: none; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 12px;
	border: 1px solid var(--glass-line); background: var(--glass);
	color: var(--cream); cursor: pointer;
}

.pil-footer {
	margin-top: 70px;
	padding: 30px 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	background: rgba(6, 26, 20, .55);
	backdrop-filter: blur(10px);
	color: var(--muted);
	font-size: 14px;
}
.pil-footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.pil-footer a { color: var(--cream-dim); }

/* ---------------------------------------------------------
   4. Glass buttons
--------------------------------------------------------- */
.pil-btn,
.pil-btn-ghost {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--cream);
	cursor: pointer;
	white-space: nowrap;
	border: 1px solid rgba(255, 255, 255, .3);
	border-top-color: rgba(255, 255, 255, .45);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .1) 45%, rgba(255, 255, 255, .05) 100%),
		rgba(12, 46, 37, .28);
	backdrop-filter: blur(18px) saturate(180%);
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 26px rgba(0, 0, 0, .26);
	transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.pil-btn:hover,
.pil-btn-ghost:hover {
	color: #fff;
	border-color: rgba(240, 216, 148, .65);
	background: linear-gradient(180deg, rgba(201, 162, 39, .34), rgba(201, 162, 39, .12));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 34px rgba(0, 0, 0, .34);
	transform: translateY(-1px);
}
.pil-btn:active,
.pil-btn-ghost:active { transform: translateY(0); }

.pil-btn {
	border-color: rgba(240, 216, 148, .5);
	background: linear-gradient(180deg, rgba(201, 162, 39, .8), rgba(148, 112, 22, .72));
	color: #fff8e2;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.pil-btn:hover {
	color: #fffdf3;
	border-color: var(--gold-bright);
	background: linear-gradient(180deg, rgba(222, 184, 66, .92), rgba(168, 128, 26, .88));
}
.pil-btn.is-accent { font-weight: 600; }
.pil-btn-sm, .pil-btn-ghost.pil-btn-sm { padding: 8px 14px; font-size: 13.5px; }
.pil-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.pil-wa .pil-icon { color: #7ee2a8; }

/* ---------------------------------------------------------
   5. Hero
--------------------------------------------------------- */
.pil-hero { padding: 54px 0 6px; }
.pil-hero h1 {
	font-family: var(--serif);
	font-size: clamp(32px, 4.6vw, 50px);
	font-weight: 500;
	letter-spacing: -.015em;
	margin-bottom: .3em;
	color: #fffdf6;
	text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.pil-hero p { color: var(--cream-dim); max-width: 64ch; font-size: 16.5px; }
.pil-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pil-pill {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 13px;
	color: var(--cream-dim);
	border: 1px solid var(--glass-line);
	background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}
.pil-pill strong { color: #fff; font-weight: 600; }
.pil-pill .pil-icon { color: var(--gold-soft); }

/* ---------------------------------------------------------
   6. Glass panels / request banner
--------------------------------------------------------- */
.pil-panel {
	position: relative;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .07) 38%, rgba(255, 255, 255, .03) 100%),
		rgba(10, 40, 32, .32);
	border: 1px solid rgba(255, 255, 255, .2);
	border-top-color: rgba(255, 255, 255, .34);
	border-radius: var(--radius);
	backdrop-filter: blur(24px) saturate(175%);
	-webkit-backdrop-filter: blur(24px) saturate(175%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .34),
		inset 0 -1px 0 rgba(255, 255, 255, .06),
		0 24px 60px rgba(0, 0, 0, .34);
}
.pil-panel::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(115deg, rgba(255, 255, 255, .1) 0%, transparent 32%);
}

.pil-request {
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px;
	margin: 28px 0 0;
	padding: 20px 24px;
	border-radius: var(--radius);
	border: 1px solid rgba(240, 216, 148, .34);
	background:
		linear-gradient(120deg, rgba(201, 162, 39, .22), rgba(255, 255, 255, .06) 55%),
		rgba(9, 34, 27, .5);
	backdrop-filter: blur(16px) saturate(150%);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 20px 46px rgba(0, 0, 0, .3);
}
.pil-request-text { flex: 1 1 320px; min-width: 240px; }
.pil-request-text strong { display: block; font-size: 16.5px; color: #fffdf6; font-weight: 600; }
.pil-request-text span { color: var(--cream-dim); font-size: 14px; }

/* ---------------------------------------------------------
   7. Toolbar (search / sort / chips)
--------------------------------------------------------- */
.pil-toolbar {
	margin: 30px 0 22px;
	padding: 16px;
	border-radius: var(--radius);
	border: 1px solid var(--glass-line);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .03) 100%),
		rgba(10, 40, 32, .3);
	backdrop-filter: blur(24px) saturate(170%);
	-webkit-backdrop-filter: blur(24px) saturate(170%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 18px 44px rgba(0, 0, 0, .3);
}
.pil-toolbar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pil-search {
	position: relative;
	flex: 1 1 320px;
	display: flex; align-items: center;
	border: 1px solid var(--glass-line);
	border-radius: 999px;
	padding: 0 8px 0 16px;
	background: rgba(255, 255, 255, .06);
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pil-search:focus-within {
	border-color: rgba(240, 216, 148, .7);
	background: rgba(255, 255, 255, .1);
	box-shadow: 0 0 0 4px rgba(201, 162, 39, .14);
}
.pil-search svg { width: 18px; height: 18px; color: var(--gold-soft); flex: 0 0 auto; }
.pil-search input[type="search"] {
	flex: 1 1 auto;
	border: 0; outline: 0; background: transparent;
	padding: 12px 8px;
	font-size: 15.5px;
	color: var(--cream);
	min-width: 0;
	-webkit-appearance: none;
}
.pil-search input::placeholder { color: rgba(247, 242, 230, .5); }
.pil-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pil-search .pil-clear {
	border: 0; background: transparent; color: var(--cream-dim); cursor: pointer;
	padding: 6px 10px; font-size: 18px; line-height: 1; display: none;
}
.pil-search.has-value .pil-clear { display: block; }
.pil-select {
	appearance: none;
	border: 1px solid var(--glass-line);
	border-radius: 999px;
	padding: 11px 36px 11px 16px;
	font-size: 14.5px;
	color: var(--cream);
	cursor: pointer;
	background: rgba(255, 255, 255, .06) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e3c878' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 14px center;
	backdrop-filter: blur(12px);
}
.pil-select option { background: #0a2b22; color: var(--cream); }
.pil-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.pil-chiprow:empty { display: none; }
.pil-chip {
	border: 1px solid var(--glass-line);
	border-radius: 999px;
	padding: 7px 15px;
	font-size: 13.5px;
	color: var(--cream-dim);
	cursor: pointer;
	background: rgba(255, 255, 255, .05);
	backdrop-filter: blur(10px);
	transition: all .15s ease;
}
.pil-chip:hover { color: #fff; border-color: rgba(240, 216, 148, .6); }
.pil-chip.is-active {
	color: #fff8e2;
	border-color: rgba(240, 216, 148, .6);
	background: linear-gradient(180deg, rgba(201, 162, 39, .55), rgba(201, 162, 39, .28));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}

.pil-resultbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; margin-bottom: 18px; font-size: 14px; color: var(--muted);
}
.pil-resultbar strong { color: var(--cream); font-weight: 600; }

/* ---------------------------------------------------------
   8. Catalog grid / cards
--------------------------------------------------------- */
.pil-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
	gap: 22px;
}
.pil-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .2);
	border-top-color: rgba(255, 255, 255, .34);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .07) 40%, rgba(255, 255, 255, .03) 100%),
		rgba(10, 40, 32, .3);
	backdrop-filter: blur(22px) saturate(170%);
	-webkit-backdrop-filter: blur(22px) saturate(170%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .32),
		0 18px 44px rgba(0, 0, 0, .3);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pil-card:hover {
	transform: translateY(-4px);
	border-color: rgba(240, 216, 148, .5);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 28px 60px rgba(0, 0, 0, .4);
}
.pil-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: rgba(6, 26, 20, .6);
}
.pil-card-media-bg {
	position: absolute;
	inset: -8%;
	background-size: cover;
	background-position: center;
	filter: blur(26px) saturate(125%) brightness(.55);
	transform: scale(1.06);
}
.pil-card-media img {
	position: relative;
	z-index: 1;
	width: 100%; height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform .5s ease;
}
.pil-card:hover .pil-card-media img { transform: scale(1.02); }
.pil-card-media::after { content: none; }
.pil-card-media.is-empty {
	display: grid; place-items: center;
	font-family: var(--serif); font-size: 34px;
	color: rgba(227, 200, 120, .75);
	background: radial-gradient(circle at 50% 40%, rgba(201, 162, 39, .22), rgba(255, 255, 255, .03));
}
.pil-badge {
	position: absolute;
	z-index: 3;
	display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 11.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .24);
	background: rgba(9, 34, 27, .6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.pil-badge.is-new {
	top: 12px; left: 12px;
	color: #1b1403;
	border-color: rgba(255, 255, 255, .4);
	background: linear-gradient(180deg, rgba(240, 216, 148, .95), rgba(201, 162, 39, .95));
}
.pil-badge.is-count { bottom: 12px; right: 12px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.pil-badge.is-media {
	bottom: 12px; left: 12px; text-transform: none; letter-spacing: 0; font-size: 11.5px;
	color: var(--cream-dim); gap: 6px;
}
.pil-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.pil-card-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.pil-card-title a { color: #fffdf6; }
.pil-card-title a:hover { color: var(--gold-soft); }
.pil-card-meta {
	margin: 0;
	font-size: 13.5px;
	color: var(--muted);
	display: flex; flex-wrap: wrap; gap: 4px 8px;
}
.pil-card-meta .pil-dot { color: rgba(255, 255, 255, .28); }
.pil-card-actions { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pil-card-actions .pil-btn,
.pil-card-actions .pil-btn-ghost { width: 100%; }

/* ---------------------------------------------------------
   9. Empty state / load more / skeleton
--------------------------------------------------------- */
.pil-empty {
	display: none;
	text-align: center;
	padding: 58px 22px;
	border-radius: var(--radius);
	border: 1px dashed rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .04);
	color: var(--cream-dim);
}
.pil-empty.is-visible { display: block; }
.pil-empty strong { display: block; color: #fffdf6; font-size: 17px; margin-bottom: 6px; }
.pil-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.pil-more-wrap[hidden] { display: none; }
.pil-grid.is-loading { opacity: .5; pointer-events: none; }
.pil-skeleton {
	border-radius: var(--radius);
	min-height: 260px;
	background: linear-gradient(90deg, rgba(255, 255, 255, .06) 25%, rgba(255, 255, 255, .14) 37%, rgba(255, 255, 255, .06) 63%);
	background-size: 400% 100%;
	animation: pil-shimmer 1.3s ease infinite;
}
@keyframes pil-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------
   10. Single project — hero
--------------------------------------------------------- */
.pil-back {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 28px 0 16px;
	font-size: 14px;
	color: var(--cream-dim);
}
.pil-back:hover { color: var(--gold-soft); }
.pil-project-head { padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pil-project-head h1 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(30px, 4vw, 46px);
	letter-spacing: -.015em;
	margin-bottom: .32em;
	color: #fffdf6;
}
.pil-project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pil-project-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pil-note {
	margin: 18px 0 0;
	padding: 13px 18px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	color: var(--gold-bright);
	border: 1px solid rgba(240, 216, 148, .35);
	background: rgba(201, 162, 39, .12);
	backdrop-filter: blur(10px);
}
.pil-note strong {
	display: block;
	font-size: 11.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold-soft);
	margin-bottom: 3px;
}
.pil-project-body { padding: 22px 0 0; max-width: 80ch; color: var(--cream-dim); }
.pil-project-body h2 { color: var(--cream); font-size: 21px; margin-top: 1.3em; }
.pil-project-body a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.pil-project-body blockquote {
	margin: 1.2em 0; padding: 4px 0 4px 18px;
	border-left: 2px solid var(--gold);
}

/* ---------------------------------------------------------
   11. Sections (01 Images / 02 Video / 03 Brochure)
--------------------------------------------------------- */
.pil-section { margin-top: 52px; }
.pil-section-head {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 12px 20px;
	padding-bottom: 15px;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.pil-section-head h2 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(23px, 2.6vw, 31px);
	color: #fffdf6;
}
.pil-section-head .pil-eyebrow { display: block; margin-bottom: 6px; }
.pil-section-head .pil-section-sub { color: var(--cream-dim); font-size: 14px; }
.pil-section-head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* 11a. Images — 4 / 2 / 1 per row */
.pil-media-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.pil-tile {
	position: relative;
	z-index: 1;
	margin: 0;
	border-radius: var(--radius-sm);
	overflow: visible;
	border: 1px solid var(--glass-line);
	background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 30px rgba(0, 0, 0, .25);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pil-tile:hover {
	border-color: rgba(240, 216, 148, .5);
	transform: translateY(-2px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 20px 44px rgba(0, 0, 0, .36);
}
.pil-tile:focus-within,
.pil-tile:has(details[open]) { z-index: 8; }
.pil-tile-img {
	position: relative;
	display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: rgba(6, 26, 20, .55);
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.pil-tile-bg {
	position: absolute;
	inset: -8%;
	background-size: cover;
	background-position: center;
	filter: blur(22px) saturate(120%) brightness(.5);
	transform: scale(1.06);
}
.pil-tile-img img {
	position: relative;
	z-index: 1;
	width: 100%; height: 100%;
	object-fit: contain;
	transition: transform .45s ease;
}
.pil-tile:hover .pil-tile-img img { transform: scale(1.02); }
.pil-tile-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 9px 11px;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	background: rgba(6, 26, 20, .28);
	backdrop-filter: blur(8px);
}
.pil-tile-tag {
	font-size: 12px; color: var(--cream-dim);
	border: 1px solid var(--glass-line-soft);
	border-radius: 999px; padding: 3px 10px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56%;
	background: rgba(255, 255, 255, .06);
}
.pil-tile-tag.is-empty { color: var(--muted); }
.pil-dl { position: relative; }
.pil-dl > summary {
	list-style: none; cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--cream);
	border: 1px solid rgba(255, 255, 255, .22);
	background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
	backdrop-filter: blur(12px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26);
}
.pil-dl > summary::-webkit-details-marker { display: none; }
.pil-dl > summary:hover,
.pil-dl[open] > summary { border-color: rgba(240, 216, 148, .7); color: #fff; }
.pil-dl-menu {
	position: absolute; right: 0; bottom: calc(100% + 8px);
	min-width: 190px;
	padding: 7px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, .22);
	background: rgba(8, 30, 23, .92);
	backdrop-filter: blur(18px) saturate(150%);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	box-shadow: 0 22px 48px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
	z-index: 12;
}
.pil-dl-menu a {
	display: flex; justify-content: space-between; gap: 14px;
	padding: 8px 10px;
	border-radius: 7px;
	font-size: 13px;
	color: var(--cream);
}
.pil-dl-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pil-dl-menu a span { color: var(--muted); font-size: 11.5px; }
.pil-dl-menu .pil-dl-name { font-weight: 500; color: var(--cream); }

/* 11b. Video section */
.pil-video-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 26px;
	padding: 22px;
}
.pil-player {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: #04120e;
	border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4);
}
.pil-player iframe,
.pil-player video,
.pil-player img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pil-video-info { display: flex; flex-direction: column; gap: 12px; align-content: start; }
.pil-video-info h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); margin: 0; color: #fffdf6; }
.pil-video-info p { color: var(--cream-dim); font-size: 14.5px; margin: 0; }
.pil-video-info .pil-video-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 6px; }
.pil-empty-inline {
	display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
	padding: 26px;
	border-radius: var(--radius-sm);
	border: 1px dashed rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .04);
	color: var(--cream-dim);
}
.pil-empty-inline strong { color: #fffdf6; font-size: 16px; }
.pil-empty-inline .pil-icon { width: 22px; height: 22px; color: var(--gold-soft); }

/* 11c. Brochure section */
.pil-brochure-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 22px; }
.pil-file-badge {
	flex: 0 0 auto;
	width: 62px; height: 74px;
	display: grid; place-items: center;
	border-radius: 10px;
	border: 1px solid rgba(240, 216, 148, .45);
	background: linear-gradient(160deg, rgba(201, 162, 39, .35), rgba(255, 255, 255, .06));
	color: var(--gold-bright);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.pil-file-badge span { font-size: 11px; letter-spacing: .12em; font-weight: 700; }
.pil-file-info { flex: 1 1 300px; min-width: 220px; }
.pil-file-info h3 { font-size: 16.5px; margin: 0 0 4px; color: #fffdf6; }
.pil-file-info p { margin: 0; font-size: 13.5px; color: var(--cream-dim); }
.pil-file-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.pil-brochure-panel .pil-empty-inline { flex: 1 1 100%; }

/* ---------------------------------------------------------
   12. Related projects
--------------------------------------------------------- */
.pil-related-head {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
	gap: 10px; margin: 54px 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.pil-related-head h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; }
.pil-related-head a { font-size: 14px; color: var(--gold-soft); }

/* ---------------------------------------------------------
   13. Lightbox
--------------------------------------------------------- */
.pil-lb {
	position: fixed; inset: 0; z-index: 9999;
	display: none;
	align-items: center; justify-content: center;
	padding: 20px;
	background: rgba(4, 16, 12, .92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.pil-lb.is-open { display: flex; }
.pil-lb-stage { max-width: min(1400px, 94vw); max-height: 90vh; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pil-lb-stage img {
	max-width: 100%; max-height: 76vh; object-fit: contain;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, .18);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
	background: #04120e;
}
.pil-lb-bar { display: flex; align-items: center; gap: 16px; color: var(--cream-dim); font-size: 13.5px; }
.pil-lb-bar a {
	color: var(--cream);
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .24);
	background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
	backdrop-filter: blur(12px);
}
.pil-lb-bar a:hover { border-color: rgba(240, 216, 148, .7); color: #fff; }
.pil-lb-close, .pil-lb-nav {
	position: absolute; border: 1px solid rgba(255, 255, 255, .22); cursor: pointer;
	background: rgba(255, 255, 255, .1); color: #fff;
	width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center; font-size: 20px; line-height: 1;
	backdrop-filter: blur(12px);
}
.pil-lb-close { top: 20px; right: 20px; }
.pil-lb-close:hover, .pil-lb-nav:hover { background: rgba(201, 162, 39, .35); border-color: rgba(240, 216, 148, .7); }
.pil-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.pil-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
body.pil-no-scroll { overflow: hidden; }

/* ---------------------------------------------------------
   14. Blog / default content
--------------------------------------------------------- */
.pil-page { padding: 44px 0; }
.pil-page-head { margin-bottom: 26px; }
.pil-page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(27px, 3.4vw, 38px); }
.pil-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.pil-post-card {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--glass-line);
	background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
	backdrop-filter: blur(14px);
}
.pil-post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pil-post-card div { padding: 16px 18px 20px; }
.pil-post-card time { font-size: 12px; color: var(--gold-soft); text-transform: uppercase; letter-spacing: .08em; }
.pil-post-card h2 { font-size: 18px; }
.pil-post-card p { color: var(--muted); font-size: 14.5px; }
.pil-entry { max-width: 80ch; color: var(--cream-dim); }
.pil-entry img { border-radius: var(--radius-sm); }
.pil-pagination { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.pil-pagination .page-numbers {
	display: inline-flex; padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--glass-line);
	background: rgba(255, 255, 255, .06);
	color: var(--cream);
	font-size: 14px;
}
.pil-pagination .page-numbers.current {
	color: #1b1403;
	border-color: rgba(255, 255, 255, .4);
	background: linear-gradient(180deg, rgba(240, 216, 148, .95), rgba(201, 162, 39, .9));
}

/* ---------------------------------------------------------
   15. Responsive
--------------------------------------------------------- */
@media (max-width: 1180px) {
	.pil-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.pil-header-inner { min-height: 66px; gap: 14px; }
	.pil-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		padding: 14px 22px 20px;
		background: rgba(6, 26, 20, .96);
		backdrop-filter: blur(20px);
		border-bottom: 1px solid rgba(255, 255, 255, .12);
	}
	.pil-nav.is-open { display: block; }
	.pil-nav ul { flex-direction: column; gap: 4px; }
	.pil-nav a { display: block; padding: 9px 0; }
	.pil-header-toggle { display: inline-flex; margin-left: auto; }
	.pil-header-cta { display: none; }
	.pil-hero { padding-top: 34px; }
	.pil-video-panel { grid-template-columns: 1fr; }
	.pil-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
	.pil-brand-logo { height: 36px; }
}
@media (max-width: 640px) {
	.pil-media-grid { grid-template-columns: 1fr; gap: 14px; }
	.pil-tile-img { aspect-ratio: 3 / 4; }
	.pil-card-media { aspect-ratio: 4 / 5; }
	.pil-toolbar { padding: 12px; }
	.pil-card-actions .pil-btn,
	.pil-card-actions .pil-btn-ghost { flex: 1 1 100%; }
	.pil-project-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.pil-project-actions > * { width: 100%; }
	.pil-project-actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
	.pil-brand-name { display: none; }
	.pil-brand-logo { height: 32px; }
	.pil-section { margin-top: 40px; }
	.pil-brochure-panel { padding: 18px; }
	.pil-lb-prev { left: 8px; }
	.pil-lb-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.pil-card, .pil-toolbar, .pil-panel, .pil-request, .pil-btn, .pil-btn-ghost, .pil-pill, .pil-chip {
		background: rgba(12, 44, 35, .92);
	}
}

/* ---------------------------------------------------------
   16. Elementor / Gutenberg
--------------------------------------------------------- */
.elementor-page .pil-wrap { padding-top: 0; }
.elementor-widget .pil-catalog { margin-top: 0; }
.alignwide { max-width: var(--max); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

/* About panel */
.pil-about { margin-top: 28px; padding: 24px 26px; }
.pil-about .pil-project-body { padding: 0; }
.pil-about .pil-project-body > :last-child { margin-bottom: 0; }

/* Card flags — kept out of the artwork so posters stay fully readable */
.pil-card-flags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-height: 27px;
	margin-bottom: 2px;
}
.pil-flag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--cream-dim);
	border: 1px solid var(--glass-line);
	background: rgba(255, 255, 255, .07);
	backdrop-filter: blur(8px);
}
.pil-flag-icon { padding: 4px 8px; }
.pil-flag-icon .pil-icon { width: 13px; height: 13px; color: var(--gold-soft); }
.pil-flag.is-new {
	color: #1b1403;
	font-weight: 700;
	border-color: rgba(255, 255, 255, .35);
	background: linear-gradient(180deg, rgba(240, 216, 148, .95), rgba(201, 162, 39, .92));
}
