/* =====================================================================
   Giulio Poletti — Contact Page Template Styles
   Loaded only on Pages using the "Contact Page" template (see functions.php).
   Ported from /homepage-design-draft/homepage.html and adapted for WP:
     • body-level rules scoped to body.page-template-contact
     • honeypot, error/success notices, sent-state for the PHP form
     • PIPEDA-aligned privacy modal preserved from the previous template
   ===================================================================== */

: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-contact {
	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-contact a { color: var(--blue); text-decoration: none; }
body.page-template-contact 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: 1180px; 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-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: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- Hero ---------- */
.hero {
	padding: 80px 0 72px;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 64px;
	align-items: center;
}
.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: 24px;
}
.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);
}
body.page-template-contact h1 {
	font-size: clamp(32px, 3.8vw, 44px);
	line-height: 1.05;
	letter-spacing: -0.03em;
	font-weight: 800;
	color: var(--slate);
	margin: 0 0 22px;
	text-wrap: pretty;
}
body.page-template-contact h1 .accent { color: var(--blue); }
body.page-template-contact h1 .teal { color: var(--teal); }
.lede {
	font-size: 18px;
	color: var(--slate-2);
	max-width: 560px;
	margin: 0 0 36px;
	line-height: 1.65;
}

.hero-ctas {
	display: flex; gap: 12px; flex-wrap: wrap;
	margin-bottom: 36px;
}
.hero-cta {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 22px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 14.5px;
	letter-spacing: -0.005em;
	transition: all 0.18s ease;
}
.hero-cta-primary {
	background: var(--blue);
	color: #fff !important;
}
.hero-cta-primary:hover {
	background: var(--blue-deep);
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -10px rgba(15,76,129,0.45);
}
.hero-cta-secondary {
	background: transparent;
	color: var(--slate) !important;
	border: 1px solid var(--line);
}
.hero-cta-secondary:hover {
	border-color: var(--teal);
	color: var(--teal) !important;
	transform: translateY(-2px);
}
.hero-cta svg { width: 16px; height: 16px; }

.hero-stats {
	display: flex; gap: 36px; flex-wrap: wrap;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.stat-item {
	display: flex; flex-direction: column; gap: 4px;
}
.stat-num {
	font-size: 24px; font-weight: 700;
	color: var(--blue);
	letter-spacing: -0.02em;
	line-height: 1;
}
.stat-num .plus { color: var(--teal); }
.stat-label {
	font-family: var(--mono); font-size: 10.5px;
	text-transform: uppercase; letter-spacing: 0.16em;
	color: var(--muted);
	margin-top: 6px;
	max-width: 150px;
	line-height: 1.45;
}

/* ---------- Headshot ---------- */
.portrait-stage {
	position: relative;
	aspect-ratio: 1 / 1;
	max-width: 420px;
	margin-left: auto;
}
.portrait-stage::before {
	content: "";
	position: absolute; inset: -10px;
	border-radius: 32px;
	background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
	opacity: 0.10;
	transform: rotate(-3deg);
}
.portrait-stage::after {
	content: "";
	position: absolute;
	width: 140px; height: 140px;
	bottom: -28px; left: -28px;
	border-radius: 24px;
	background: var(--teal);
	z-index: -1;
}
.portrait {
	position: relative;
	width: 100%; height: 100%;
	border-radius: 24px;
	overflow: hidden;
	background: var(--slate);
	box-shadow: 0 30px 60px -20px rgba(15,76,129,0.35), 0 10px 25px -10px rgba(30,41,55,0.2);
}
.portrait img {
	width: 100%; height: 100%; object-fit: cover;
	display: block;
}
.portrait-badge {
	position: absolute;
	bottom: 18px; left: 18px;
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 10px 14px;
	display: flex; align-items: center; gap: 10px;
	font-size: 12.5px; font-weight: 600;
	color: var(--slate);
	box-shadow: 0 8px 20px -4px rgba(0,0,0,0.15);
}
.pulse-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
	animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,0.2); }
	50%      { box-shadow: 0 0 0 8px rgba(16,185,129,0.05); }
}

/* ---------- Section base ---------- */
body.page-template-contact main.wrap > section {
	padding: 30px 0;
	border-top: 1px solid var(--line);
}
.section-head {
	display: flex; align-items: baseline; justify-content: space-between;
	margin-bottom: 44px;
	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);
}
body.page-template-contact h2 {
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 700;
	letter-spacing: -0.028em;
	color: var(--slate);
	margin: 10px 0 0;
	line-height: 1.1;
	max-width: 720px;
	text-wrap: pretty;
}
.section-head .right {
	font-size: 13px; color: var(--muted);
	font-family: var(--mono);
}

/* ---------- Who I Help (two columns) ---------- */
.who-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.who-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 36px;
	position: relative;
	overflow: hidden;
	transition: all 0.2s ease;
}
.who-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 40px -20px rgba(15,76,129,0.18);
	border-color: rgba(0,181,173,0.4);
}
.who-icon {
	width: 48px; height: 48px;
	border-radius: 12px;
	background: rgba(15,76,129,0.08);
	color: var(--blue);
	display: grid; place-items: center;
	margin-bottom: 20px;
}
.who-card:nth-child(2) .who-icon { background: rgba(0,181,173,0.10); color: var(--teal); }
.who-icon svg { width: 22px; height: 22px; }
.who-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--slate);
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}
.who-card:nth-child(2) .who-title { color: var(--blue); }
.who-body {
	color: var(--slate-2);
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 22px;
}
.who-list {
	list-style: none; padding: 0; margin: 0;
	display: grid; gap: 10px;
	padding-top: 22px;
	border-top: 1px dashed var(--line);
}
.who-list li {
	position: relative;
	padding-left: 22px;
	font-size: 13.5px;
	color: var(--slate-2);
}
.who-list li::before {
	content: ""; position: absolute;
	left: 0; top: 7px;
	width: 12px; height: 1.5px;
	background: var(--teal);
}

/* ---------- Skills bar ---------- */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.skill-col {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 24px;
}
.skill-head {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--blue);
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--line);
	display: flex; align-items: center; justify-content: space-between;
	gap: 10px;
}
.skill-head .num { color: var(--muted); }
.skill-list { display: flex; flex-direction: column; gap: 10px; }
.skill-item {
	display: flex; align-items: flex-start; gap: 10px;
	font-size: 13.5px; color: var(--slate-2);
	line-height: 1.4;
}
.skill-item::before {
	content: ""; flex-shrink: 0;
	width: 5px; height: 5px; border-radius: 50%;
	background: var(--teal);
	margin-top: 7px;
}

/* ---------- How I work ---------- */
.process-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.process-step {
	position: relative;
	padding: 28px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
}
.process-num {
	position: absolute;
	top: 20px; right: 24px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--teal);
	font-weight: 600;
	letter-spacing: 0.05em;
}
.process-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--slate);
	letter-spacing: -0.015em;
	margin: 0 0 10px;
	max-width: 80%;
}
.process-body {
	color: var(--slate-2);
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* ---------- Trusted by (client strip) ---------- */
.trust-strip .section-head { margin-bottom: 28px; }
.trust-lede {
	max-width: 760px;
	margin: 0 0 32px;
	color: var(--slate-2);
	font-size: 15.5px;
	line-height: 1.65;
}
.trust-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.trust-card {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px;
	padding: 16px 18px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.18s ease;
}
body.page-template-contact .trust-card,
body.page-template-contact .trust-card:hover { color: var(--slate); }
.trust-card:hover {
	transform: translateY(-2px);
	border-color: rgba(0,181,173,0.4);
	box-shadow: 0 12px 28px -16px rgba(15,76,129,0.2);
}
.trust-icon {
	flex-shrink: 0;
	width: 40px; height: 40px;
	border-radius: 10px;
	background: rgba(15,76,129,0.10);
	color: var(--blue);
	display: grid; place-items: center;
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-info {
	flex: 1; min-width: 0;
	display: flex; flex-direction: column; gap: 2px;
}
.trust-name {
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--slate);
}
.trust-domain {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.01em;
}
.trust-card:hover .trust-domain { color: var(--teal); }
.trust-arrow {
	flex-shrink: 0;
	width: 28px; height: 28px;
	border-radius: 8px;
	background: #f1f4f8;
	display: grid; place-items: center;
	color: var(--slate-2);
	transition: all 0.18s ease;
}
.trust-card:hover .trust-arrow {
	background: var(--teal); color: #fff;
}
.trust-arrow svg { width: 14px; height: 14px; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.testimonial-card {
	display: flex; flex-direction: column;
	margin: 0;
	padding: 32px 32px 26px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	transition: all 0.2s ease;
}
.testimonial-card:hover {
	transform: translateY(-3px);
	border-color: rgba(0,181,173,0.4);
	box-shadow: 0 20px 40px -20px rgba(15,76,129,0.18);
}
.testimonial-mark {
	font-family: 'Georgia', 'Times New Roman', serif;
	font-size: 56px;
	line-height: 0.6;
	color: var(--teal);
	opacity: 0.4;
	height: 22px;
	margin-bottom: 8px;
	user-select: none;
}
.testimonial-quote {
	margin: 0 0 22px;
	font-style: italic;
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--slate-2);
	flex: 1;
}
.testimonial-author {
	display: flex; flex-direction: column;
	gap: 4px;
	padding-top: 18px;
	border-top: 1px dashed var(--line);
}
.testimonial-name {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--slate);
}
.testimonial-role {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
}

/* ---------- 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;
}
.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; }
body.page-template-contact input[type="text"],
body.page-template-contact input[type="email"],
body.page-template-contact input[type="tel"],
body.page-template-contact select,
body.page-template-contact 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%;
}
body.page-template-contact textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.5;
}
body.page-template-contact input:focus,
body.page-template-contact select:focus,
body.page-template-contact textarea:focus {
	outline: none;
	border-color: var(--teal);
	box-shadow: 0 0 0 3px rgba(0,181,173,0.12);
	background: #fff;
}
body.page-template-contact input::placeholder,
body.page-template-contact textarea::placeholder { color: #98a3b3; }
body.page-template-contact 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;
}

/* Honeypot — hidden from real users, visible to spambots */
.gp-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
	opacity: 0;
}

/* Form notices (server-side validation) */
.form-notice {
	padding: 14px 16px;
	border-radius: 12px;
	margin-bottom: 18px;
	font-size: 14px;
	line-height: 1.55;
	text-align: left;
}
.form-notice.error {
	background: rgba(220,38,38,0.06);
	border: 1px solid rgba(220,38,38,0.25);
	color: var(--red);
}

/* 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 (rendered server-side after successful redirect with ?sent=1) */
.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-contact main.wrap > 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-contact main.wrap > footer .legal { letter-spacing: 0.04em; }
body.page-template-contact main.wrap > footer .footnav { display: flex; gap: 18px; align-items: center; }
body.page-template-contact main.wrap > footer .footnav a { color: var(--muted); }
body.page-template-contact main.wrap > 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;
}
.modal-contact small {
	display: block;
	color: var(--muted);
	font-size: 11.5px;
	font-family: var(--mono);
	margin-top: 4px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 0; }
	.portrait-stage { margin: 0 auto; max-width: 340px; }
	.who-grid { grid-template-columns: 1fr; }
	.skills-grid { grid-template-columns: repeat(2, 1fr); }
	.process-grid { grid-template-columns: 1fr; }
	.contact-grid { grid-template-columns: 1fr; gap: 36px; }
	.trust-grid { grid-template-columns: repeat(2, 1fr); }
	.testimonial-grid { grid-template-columns: 1fr; }
	.nav { display: none; }
}
@media (max-width: 600px) {
	.wrap { padding: 0 20px; }
	.topbar-inner { padding: 12px 20px; }
	.skills-grid { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
	.form-card { padding: 26px 22px; }
	.who-card { padding: 28px 22px; }
	.hero-stats { gap: 24px; }
	.trust-grid { grid-template-columns: 1fr; }
	.testimonial-card { padding: 26px 24px 22px; }
	.modal-content { padding: 30px 22px 26px; }
	.modal-content h2 { padding-right: 38px; font-size: 21px; }
}
