/* =====================================================================
   Giulio Poletti — Portfolio Page Template Styles
   Loaded only on Pages using the "Portfolio Page" template (see functions.php).
   Ported from /page-templates/portfolio.html (Claude Design draft) and
   adapted for WP:
     • body-level rules scoped to body.page-template-portfolio
     • <image-slot> placeholders replaced by real <img> tags (object-fit: cover)
     • honeypot + error/success notices wired for the wp_mail PHP form
   ===================================================================== */

:root {
	--blue: #0F4C81;
	--blue-deep: #0a3a64;
	--teal: #00B5AD;
	--slate: #1E2937;
	--slate-2: #2c3a4d;
	--muted: #5b6776;
	--line: #e3e8ef;
	--bg: #F8FAFC;
	--card: #ffffff;
	--green: #10B981;
	--red: #b91c1c;
	--sans: 'Plus Jakarta Sans', system-ui, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

body.page-template-portfolio {
	background: var(--bg);
	color: var(--slate);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	margin: 0;
}
body.page-template-portfolio a { color: var(--blue); text-decoration: none; }
body.page-template-portfolio a:hover { color: var(--teal); }

/* ---------- Top bar ---------- */
.topbar {
	position: sticky; top: 0; z-index: 50;
	background: rgba(248, 250, 252, 0.85);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.topbar-inner {
	max-width: 1240px; margin: 0 auto;
	padding: 14px 32px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px;
}
.brand {
	display: flex; align-items: center; gap: 10px;
	font-weight: 700; color: var(--slate);
}
.brand-mark {
	width: 28px; height: 28px;
	border-radius: 8px;
	overflow: hidden;
	display: grid; place-items: center;
	flex-shrink: 0;
}
.brand-mark img {
	width: 100%; height: 100%;
	object-fit: contain;
	display: block;
}
.brand-name { font-size: 14px; letter-spacing: -0.01em; }
.brand-name span { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
	color: var(--slate-2);
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px; font-weight: 500;
	transition: all 0.15s ease;
}
.nav a:hover { background: #eef2f6; color: var(--blue); }
.nav a.current { color: var(--blue); }
.nav-cta {
	background: var(--slate);
	color: #fff !important;
	padding: 9px 16px !important;
}
.nav-cta:hover { background: var(--blue) !important; color: #fff !important; }

/* ---------- Page wrapper ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Hero ---------- */
.hero {
	padding: 72px 0 56px;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 56px;
	align-items: end;
}
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--teal);
	background: rgba(0,181,173,0.08);
	padding: 6px 12px; border-radius: 999px;
	margin-bottom: 22px;
}
.eyebrow::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%;
	background: var(--teal);
	box-shadow: 0 0 0 4px rgba(0,181,173,0.18);
}
.hero h1 {
	font-size: clamp(40px, 5.4vw, 60px);
	line-height: 1.02;
	letter-spacing: -0.035em;
	font-weight: 800;
	color: var(--slate);
	margin: 0 0 18px;
	text-wrap: pretty;
}
.hero h1 .accent { color: var(--blue); }
.hero h1 .teal { color: var(--teal); }
.lede {
	font-size: 17px;
	color: var(--slate-2);
	max-width: 540px;
	margin: 0;
	line-height: 1.6;
}

.hero-anchor {
	display: flex; flex-direction: column; gap: 10px;
	border-left: 2px solid var(--line);
	padding-left: 22px;
}
.hero-anchor a {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--card);
	border: 1px solid var(--line);
	font-size: 13.5px; font-weight: 600;
	color: var(--slate);
	transition: all 0.18s ease;
}
.hero-anchor a:hover {
	border-color: var(--teal); color: var(--blue);
	transform: translateX(4px);
}
.hero-anchor a .count {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--teal);
	padding: 3px 8px;
	background: rgba(0,181,173,0.08);
	border-radius: 999px;
	letter-spacing: 0.06em;
}

/* ---------- Section base ---------- */
section.cat { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head {
	display: flex; align-items: baseline; justify-content: space-between;
	margin-bottom: 40px;
	gap: 20px; flex-wrap: wrap;
}
.section-label {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--teal);
	display: flex; align-items: center; gap: 10px;
}
.section-label::before {
	content: ""; width: 28px; height: 1.5px; background: var(--teal);
}
h2 {
	font-size: clamp(28px, 3.4vw, 38px);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--slate);
	margin: 8px 0 0;
	line-height: 1.1;
	text-wrap: pretty;
}
.section-sub {
	color: var(--muted);
	font-size: 14.5px;
	margin: 12px 0 0;
	max-width: 540px;
	line-height: 1.5;
}
.section-head .right {
	font-size: 13px; color: var(--muted);
	font-family: var(--mono);
}

/* ---------- Project grid ---------- */
.project-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.project {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: all 0.22s ease;
}
.project:hover {
	transform: translateY(-3px);
	border-color: rgba(0,181,173,0.4);
	box-shadow: 0 20px 40px -20px rgba(15,76,129,0.18);
}
.project-media {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: linear-gradient(135deg, #eef2f7 0%, #e3e8ef 100%);
}
.project-media.square { aspect-ratio: 1 / 1; }
.project-media.landscape { aspect-ratio: 4 / 3; }
.project-media img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.project:hover .project-media img {
	transform: scale(1.03);
}

/* Image container is a <button> so the lightbox is keyboard-accessible — reset native button styling */
button.project-media {
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	display: block;
	width: 100%;
	text-align: left;
	cursor: zoom-in;
}
button.project-media:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 4px;
}
.project-body {
	padding: 22px 24px 24px;
	display: flex; flex-direction: column; gap: 10px;
	flex: 1;
}
.project-tag-row {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px;
}
.project-tag {
	font-family: var(--mono);
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--teal);
	font-weight: 500;
}
.project-num {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--muted);
	letter-spacing: 0.05em;
}
.project-title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--slate);
	margin: 0;
	line-height: 1.25;
}
.project-para {
	color: var(--slate-2);
	font-size: 13.5px;
	line-height: 1.6;
	margin: 0;
}
.project-para + .project-para {
	padding-top: 10px;
	border-top: 1px dashed var(--line);
}
.project-para .label {
	display: inline-block;
	font-family: var(--mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--blue);
	margin-right: 6px;
	font-weight: 600;
}

/* Mid-page divider strip */
.interlude {
	margin: 0;
	padding: 36px 40px;
	background: var(--slate);
	color: #cad6e3;
	border-radius: 18px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 28px;
}
.interlude .il-mono {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--teal);
}
.interlude .il-text {
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.4;
}
.interlude .il-text .muted { color: #97a4b5; font-weight: 500; }
.interlude .il-cta {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--teal);
	color: #fff !important;
	font-weight: 600;
	font-size: 13.5px;
	transition: all 0.18s ease;
}
.interlude .il-cta:hover { background: #00d2c9; transform: translateX(4px); }
.interlude .il-cta svg { width: 14px; height: 14px; }

/* ---------- PDF accessibility support ---------- */
.pdf-support-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.pdf-support-item {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 28px;
	transition: all 0.2s ease;
}
.pdf-support-item:hover {
	transform: translateY(-3px);
	border-color: rgba(0,181,173,0.42);
	box-shadow: 0 20px 40px -24px rgba(15,76,129,0.26);
}
.pdf-support-num {
	display: inline-flex;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--teal);
	letter-spacing: 0.12em;
	margin-bottom: 16px;
}
.pdf-support-item h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--slate);
	letter-spacing: -0.015em;
	line-height: 1.25;
	margin: 0 0 10px;
}
.pdf-support-item p {
	color: var(--slate-2);
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 48px;
	align-items: start;
}
.contact-intro h2 {
	margin-top: 8px;
}
.contact-intro p {
	color: var(--slate-2);
	font-size: 15.5px;
	line-height: 1.65;
	margin: 18px 0 28px;
}
.contact-direct {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 22px;
	display: flex; flex-direction: column; gap: 14px;
}
.contact-direct-row {
	display: flex; align-items: center; gap: 14px;
}
.contact-direct-icon {
	width: 36px; height: 36px;
	border-radius: 10px;
	background: rgba(15,76,129,0.08);
	color: var(--blue);
	display: grid; place-items: center;
	flex-shrink: 0;
}
.contact-direct-icon svg { width: 16px; height: 16px; }
.contact-direct-row:nth-child(2) .contact-direct-icon { background: rgba(0,181,173,0.10); color: var(--teal); }
.contact-direct-row:nth-child(3) .contact-direct-icon { background: rgba(30,41,55,0.08); color: var(--slate); }
.contact-direct-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-direct-label {
	font-family: var(--mono);
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
}
.contact-direct-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--slate);
	overflow: hidden; text-overflow: ellipsis;
}
.contact-direct-value a { color: var(--slate); }
.contact-direct-value a:hover { color: var(--blue); }

/* ---------- Form ---------- */
.form-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 36px;
	position: relative;
	overflow: hidden;
}
.form-card::before {
	content: "";
	position: absolute; left: 0; top: 0; bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--blue), var(--teal));
}
.form-title {
	font-size: 18px; font-weight: 700;
	color: var(--slate);
	letter-spacing: -0.015em;
	margin: 0 0 4px;
}
.form-sub {
	color: var(--muted);
	font-size: 13.5px;
	margin: 0 0 26px;
}

/* Inline error / notice */
.form-notice {
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.45;
	margin-bottom: 22px;
}
.form-notice.error {
	background: rgba(185,28,28,0.06);
	border: 1px solid rgba(185,28,28,0.25);
	color: var(--red);
}

/* Honeypot — invisible to humans, accessible to bots */
.gp-honeypot {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-label {
	font-family: var(--mono);
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
	font-weight: 500;
}
.form-label .req { color: var(--teal); margin-left: 2px; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
	font-family: var(--sans);
	font-size: 14.5px;
	color: var(--slate);
	background: #fbfcfe;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	transition: all 0.15s ease;
	width: 100%;
}
textarea {
	resize: vertical;
	min-height: 140px;
	line-height: 1.5;
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--teal);
	box-shadow: 0 0 0 3px rgba(0,181,173,0.12);
	background: #fff;
}
input::placeholder, textarea::placeholder { color: #98a3b3; }
select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6776' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	padding-right: 40px;
}

/* Custom checkbox */
.check-row {
	display: flex; align-items: flex-start;
	gap: 12px;
	padding: 16px;
	background: rgba(0,181,173,0.05);
	border: 1px dashed rgba(0,181,173,0.3);
	border-radius: 10px;
	margin-bottom: 22px;
	cursor: pointer;
	transition: all 0.15s ease;
}
.check-row:hover {
	background: rgba(0,181,173,0.08);
	border-color: var(--teal);
}
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
	flex-shrink: 0;
	width: 20px; height: 20px;
	border-radius: 6px;
	border: 1.5px solid #c0cad6;
	background: #fff;
	display: grid; place-items: center;
	margin-top: 1px;
	transition: all 0.15s ease;
}
.check-box svg {
	width: 12px; height: 12px;
	color: #fff;
	opacity: 0;
	transition: opacity 0.15s ease;
}
.check-row input:checked + .check-box {
	background: var(--teal);
	border-color: var(--teal);
}
.check-row input:checked + .check-box svg { opacity: 1; }
.check-label {
	font-size: 14px;
	color: var(--slate);
	font-weight: 600;
	line-height: 1.4;
}
.check-help {
	font-size: 12.5px;
	color: var(--muted);
	margin-top: 3px;
	font-weight: 400;
	line-height: 1.45;
}

.form-submit {
	width: 100%;
	background: var(--blue);
	color: #fff;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: -0.005em;
	border: none;
	padding: 16px 22px;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.18s ease;
	display: flex; align-items: center; justify-content: center; gap: 10px;
}
.form-submit:hover {
	background: var(--blue-deep);
	transform: translateY(-1px);
	box-shadow: 0 10px 25px -10px rgba(15,76,129,0.45);
}
.form-submit svg { width: 16px; height: 16px; }
.form-foot {
	margin-top: 14px;
	font-size: 12px;
	color: var(--muted);
	text-align: center;
	font-family: var(--mono);
	letter-spacing: 0.04em;
}

/* Sent state — server-rendered when ?sent=1 is present */
.form-sent {
	display: none;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 40px 20px;
}
.form-sent.show { display: flex; }
.form-card.sent .form-content { display: none; }
.sent-icon {
	width: 56px; height: 56px;
	border-radius: 50%;
	background: rgba(16,185,129,0.12);
	color: var(--green);
	display: grid; place-items: center;
	margin-bottom: 18px;
}
.sent-icon svg { width: 26px; height: 26px; }
.sent-title {
	font-size: 22px; font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--slate);
	margin: 0 0 8px;
}
.sent-body {
	color: var(--slate-2);
	font-size: 14.5px;
	line-height: 1.55;
	max-width: 360px;
	margin: 0;
}

/* ---------- Footer ---------- */
body.page-template-portfolio footer {
	padding: 36px 0 48px;
	border-top: 1px solid var(--line);
	display: flex; justify-content: space-between; align-items: center;
	gap: 16px; flex-wrap: wrap;
	color: var(--muted);
	font-size: 12.5px;
	font-family: var(--mono);
}
body.page-template-portfolio footer .legal { letter-spacing: 0.04em; }
body.page-template-portfolio footer .footnav { display: flex; gap: 18px; align-items: center; }
body.page-template-portfolio footer .footnav a { color: var(--muted); }
body.page-template-portfolio footer .footnav a:hover { color: var(--blue); }

/* Footer privacy trigger is a <button> for accessibility but should look like the sibling links */
.footnav-link {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: var(--muted);
	cursor: pointer;
	letter-spacing: inherit;
	transition: color 0.15s ease;
}
.footnav-link:hover { color: var(--blue); }
.footnav-link:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Privacy Modal (PIPEDA-aligned) ---------- */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(30, 41, 55, 0.55);
	backdrop-filter: saturate(160%) blur(6px);
	-webkit-backdrop-filter: saturate(160%) blur(6px);
	z-index: 1000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 20px;
	overflow-y: auto;
}
.modal-overlay.is-open {
	display: flex;
	animation: gp-fade-in 0.18s ease-out;
}
@keyframes gp-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.modal-content {
	position: relative;
	background: var(--card);
	border-radius: 18px;
	max-width: 620px;
	width: 100%;
	padding: 36px 36px 32px;
	box-shadow: 0 30px 80px -20px rgba(15,76,129,0.4);
	animation: gp-modal-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	max-height: 90vh;
	overflow-y: auto;
}
.modal-content:focus { outline: none; }
@keyframes gp-modal-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-content::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--blue), var(--teal));
	border-radius: 18px 18px 0 0;
}
.modal-close {
	position: absolute;
	top: 14px; right: 14px;
	width: 36px; height: 36px;
	border-radius: 10px;
	border: 0;
	background: #f1f4f8;
	color: var(--slate-2);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: all 0.15s ease;
}
.modal-close:hover { background: var(--slate); color: #fff; }
.modal-close:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}
.modal-close svg { width: 16px; height: 16px; }

.modal-eyebrow {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--teal);
	margin-bottom: 6px;
	display: inline-block;
}
.modal-content h2 {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--slate);
	margin: 0 0 8px;
	padding-right: 44px;
	line-height: 1.2;
	max-width: none;
}
.modal-content h3 {
	font-size: 13px;
	font-weight: 700;
	color: var(--slate);
	margin: 22px 0 6px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-family: var(--mono);
}
.modal-content p {
	font-size: 14px;
	color: var(--slate-2);
	line-height: 1.6;
	margin: 0 0 10px;
}
.modal-content ul {
	margin: 8px 0 12px;
	padding-left: 20px;
}
.modal-content ul li {
	font-size: 14px;
	color: var(--slate-2);
	line-height: 1.55;
	margin-bottom: 6px;
}
.modal-contact {
	margin-top: 24px;
	padding: 14px 16px;
	background: rgba(0,181,173,0.06);
	border-left: 3px solid var(--teal);
	border-radius: 8px;
}
.modal-contact .lbl {
	display: block;
	font-family: var(--mono);
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--teal);
	margin-bottom: 4px;
	font-weight: 600;
}
.modal-contact a {
	font-family: var(--mono);
	font-size: 14px;
	font-weight: 600;
}

/* Lock body scroll while the modal is open */
body.modal-is-open { overflow: hidden; }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.92);
	z-index: 1100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 4vh 5vw;
	cursor: zoom-out;
}
.lightbox-overlay.is-open {
	display: flex;
	animation: gp-fade-in 0.2s ease-out;
}
.lightbox-stage {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	cursor: default;
}
.lightbox-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: calc(100vh - 160px);
}
.lightbox-image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 160px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
	animation: gp-modal-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	cursor: default;
}
.lightbox-caption {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 100%;
	padding: 10px 18px;
	color: #fff;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 10px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: default;
}
.lightbox-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lightbox-counter {
	font-family: var(--mono);
	font-size: 11px;
	color: rgba(255,255,255,0.7);
	letter-spacing: 0.1em;
	padding-left: 14px;
	border-left: 1px solid rgba(255,255,255,0.25);
	flex-shrink: 0;
}

/* Close, Prev, Next buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: fixed;
	border: 0;
	background: rgba(255,255,255,0.12);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: all 0.15s ease;
	z-index: 1110;
}
.lightbox-close {
	top: 18px; right: 18px;
	width: 44px; height: 44px;
	border-radius: 12px;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-close svg { width: 18px; height: 18px; }

.lightbox-prev,
.lightbox-next {
	top: 50%;
	width: 52px; height: 52px;
	border-radius: 50%;
	transform: translateY(-50%);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover:not([disabled]),
.lightbox-next:hover:not([disabled]) {
	background: rgba(255,255,255,0.22);
	transform: translateY(-50%) scale(1.05);
}
.lightbox-prev svg,
.lightbox-next svg { width: 22px; height: 22px; }
.lightbox-prev[disabled],
.lightbox-next[disabled] {
	opacity: 0.25;
	cursor: not-allowed;
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; align-items: start; }
	.hero-anchor { border-left: 0; padding-left: 0; }
	.contact-grid { grid-template-columns: 1fr; gap: 36px; }
	.pdf-support-grid { grid-template-columns: 1fr; }
	.interlude { grid-template-columns: 1fr; text-align: left; gap: 16px; padding: 28px; }
	.nav { display: none; }
}
@media (max-width: 640px) {
	.wrap { padding: 0 20px; }
	.topbar-inner { padding: 12px 20px; }
	.project-grid { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
	.form-card { padding: 26px 22px; }
	.modal-content { padding: 30px 22px 26px; }
	.modal-content h2 { padding-right: 38px; font-size: 21px; }
	.lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
	.lightbox-prev { left: 8px; width: 42px; height: 42px; }
	.lightbox-next { right: 8px; width: 42px; height: 42px; }
	.lightbox-caption { font-size: 13px; padding: 8px 14px; }
}
