/* ==========================================================================
   Joshua Portfolio: main stylesheet
   Colours and spacing follow the Figma design (Tailwind-like scale).
   ========================================================================== */

:root {
	--blue: #3b82f6;
	--blue-600: #2563eb;
	--blue-700: #1d4ed8;
	--blue-800: #1e40af;
	--blue-50: #eff6ff;
	--blue-100: #dbeafe;

	--bg: #ffffff;
	--bg-muted: #f9fafb;
	--bg-tint: #eef4fe;
	--surface: #ffffff;
	--surface-muted: #f9fafb;
	--border: #e5e7eb;
	--border-strong: #d1d5db;
	--text: #111827;
	--text-body: #374151;
	--text-soft: #4b5563;
	--text-muted: #6b7280;
	--text-faint: #9ca3af;
	--footer: #111827;
	--footer-2: #1f2937;

	--c-blue-bg: #dbeafe;     --c-blue-fg: #1d4ed8;
	--c-green-bg: #dcfce7;    --c-green-fg: #15803d;
	--c-yellow-bg: #fef9c3;   --c-yellow-fg: #a16207;
	--c-purple-bg: #f3e8ff;   --c-purple-fg: #7e22ce;
	--c-red-bg: #fee2e2;      --c-red-fg: #dc2626;
	--c-indigo-bg: #e0e7ff;   --c-indigo-fg: #4338ca;
	--c-pink-bg: #fce7f3;     --c-pink-fg: #be185d;
	--c-gray-bg: #f3f4f6;     --c-gray-fg: #374151;

	--font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--font-serif: "Merriweather", Georgia, serif;
	--font-script: "Pacifico", cursive;

	--radius: 8px;
	--radius-lg: 12px;
	--shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
	--shadow: 0 1px 3px rgba(17, 24, 39, .08), 0 1px 2px rgba(17, 24, 39, .04);
	--shadow-lg: 0 10px 30px rgba(17, 24, 39, .12);
	--container: 1248px;
	--header-h: 72px;
}

[data-theme="dark"] {
	--bg: #0b1220;
	--bg-muted: #0f172a;
	--bg-tint: #10203d;
	--surface: #111a2e;
	--surface-muted: #162036;
	--border: #243049;
	--border-strong: #334155;
	--text: #f3f4f6;
	--text-body: #d1d5db;
	--text-soft: #cbd5e1;
	--text-muted: #94a3b8;
	--text-faint: #64748b;
	--footer: #070c17;
	--footer-2: #111a2e;
	--blue-50: #10203d;
	--blue-100: #1e3a8a;

	--c-blue-bg: rgba(59, 130, 246, .18);   --c-blue-fg: #93c5fd;
	--c-green-bg: rgba(34, 197, 94, .16);   --c-green-fg: #86efac;
	--c-yellow-bg: rgba(234, 179, 8, .16);  --c-yellow-fg: #fde047;
	--c-purple-bg: rgba(168, 85, 247, .18); --c-purple-fg: #d8b4fe;
	--c-red-bg: rgba(239, 68, 68, .16);     --c-red-fg: #fca5a5;
	--c-indigo-bg: rgba(99, 102, 241, .2);  --c-indigo-fg: #a5b4fc;
	--c-pink-bg: rgba(236, 72, 153, .18);   --c-pink-fg: #f9a8d4;
	--c-gray-bg: #1f2937;                   --c-gray-fg: #d1d5db;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--text-body);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--text); margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -9999px; }
.icon { width: 1em; height: 1em; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--text { max-width: 944px; }
.container--mid { max-width: 1072px; }
.container--narrow { max-width: 816px; }

.text--blue { color: var(--c-blue-fg) !important; }
.text--green { color: var(--c-green-fg) !important; }
.text--yellow { color: var(--c-yellow-fg) !important; }
.text--purple { color: var(--c-purple-fg) !important; }
.text--indigo { color: var(--c-indigo-fg) !important; }
.text--red { color: var(--c-red-fg) !important; }
.small { font-size: 13px; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent;
	font-size: 16px; font-weight: 400; line-height: 1; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-lg { height: 50px; padding: 0 32px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-left { justify-content: flex-start; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--blue-50); color: var(--blue-600); }
[data-theme="dark"] .btn-white:hover { background: #e0ecff; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .9); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row--center { justify-content: center; }
.btn-row--end { justify-content: flex-end; }
.link { color: var(--blue); font-weight: 500; }
.link--arrow { display: inline-flex; align-items: center; gap: 6px; }
.link--arrow .icon { width: 16px; height: 16px; transition: transform .15s; }
.link--arrow:hover .icon { transform: translateX(3px); }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; color: var(--text);
}
.icon-btn:hover { background: var(--bg-muted); color: var(--text); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 24px; }
.logo { font-family: var(--font-script); font-size: 26px; color: var(--blue); line-height: 1; white-space: nowrap; }
.logo:hover { color: var(--blue-600); }
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 32px; list-style: none; }
.nav-list a { color: var(--text-soft); font-size: 16px; padding: 6px 0; }
.nav-list a:hover { color: var(--blue); }
.nav-list .current-menu-item > a, .nav-list a[aria-current="page"] { color: var(--blue-800); font-weight: 500; }
[data-theme="dark"] .nav-list .current-menu-item > a { color: #93c5fd; }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { margin-left: 12px; }
.nav-toggle { display: none; }
.theme-toggle .when-dark, [data-theme="dark"] .theme-toggle .when-light { display: none; }
[data-theme="dark"] .theme-toggle .when-dark { display: block; }
.nav-toggle .when-open, .nav-open .nav-toggle .when-closed { display: none; }
.nav-open .nav-toggle .when-open { display: block; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 40px 0 64px; }
.section--muted { background: var(--bg-muted); }
.section--tint { background: var(--bg-tint); }
.section-head { margin: 0 auto 56px; max-width: 680px; }
.section-head--center { text-align: center; }
.section-title { font-size: 36px; letter-spacing: -.01em; }
.section-title--left { margin-bottom: 24px; }
.section-intro { margin: 16px 0 0; font-size: 20px; color: var(--text-soft); line-height: 1.45; }
.section-intro--left { margin: -8px 0 40px; }
.section-foot { margin-top: 48px; text-align: center; }
.title-rule { display: block; width: 80px; height: 4px; border-radius: 2px; background: var(--blue); margin: -40px auto 40px; }
.title-rule--top { margin: 0 auto 32px; }

.grid { display: grid; gap: 32px; list-style: none; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--spaced { margin-top: 48px; }

/* ---------- Tags, pills ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag {
	display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
	font-size: 14px; line-height: 1.5; background: var(--c-blue-bg); color: var(--c-blue-fg);
}
a.tag:hover { filter: brightness(.96); }
.tags--sm .tag { font-size: 12px; padding: 2px 8px; }
.tag--xs { font-size: 11px; padding: 1px 6px; }
.tag--blue { background: var(--c-blue-bg); color: var(--c-blue-fg); }
.tag--green { background: var(--c-green-bg); color: var(--c-green-fg); }
.tag--yellow { background: var(--c-yellow-bg); color: var(--c-yellow-fg); }
.tag--purple { background: var(--c-purple-bg); color: var(--c-purple-fg); }
.tag--red { background: var(--c-red-bg); color: var(--c-red-fg); }
.tag--indigo { background: var(--c-indigo-bg); color: var(--c-indigo-fg); }
.tag--pink { background: var(--c-pink-bg); color: var(--c-pink-fg); }
.tag--gray { background: var(--c-gray-bg); color: var(--c-gray-fg); }
.pills { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0 0 48px; }
.pill {
	padding: 9px 16px; border-radius: 6px; background: var(--surface); color: var(--blue);
	font-weight: 500; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}

/* ---------- Cards ---------- */
.card {
	background: var(--surface-muted); border-radius: var(--radius); box-shadow: var(--shadow-sm);
	border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
	overflow: hidden;
}
.card--white { background: var(--surface); }
.card-media { display: block; aspect-ratio: 395 / 256; overflow: hidden; background: var(--c-gray-bg); }
.card-media--short { aspect-ratio: 395 / 192; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 20px; margin: 0 0 12px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--blue); }
.card-text { color: var(--text-soft); margin-bottom: 16px; }
.project-card { background: var(--surface); display: flex; flex-direction: column; }
.project-card.is-hidden { display: none; }
.post-card { display: flex; flex-direction: column; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.meta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); }
.meta .icon { width: 14px; height: 14px; }

.icon-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; }
.icon-badge .icon { width: 50%; height: 50%; }
.icon-badge--sm { width: 40px; height: 40px; }
.icon-badge--md { width: 48px; height: 48px; }
.icon-badge--lg { width: 64px; height: 64px; }
.icon-badge--lg .icon { width: 28px; height: 28px; }
.icon-badge--xl { width: 80px; height: 80px; margin-bottom: 32px; }
.icon-badge--xl .icon { width: 40px; height: 40px; }
.icon-badge--blue { background: var(--c-blue-bg); color: var(--blue); }
.icon-badge--green { background: var(--c-green-bg); color: var(--c-green-fg); }
.icon-badge--yellow { background: var(--c-yellow-bg); color: var(--c-yellow-fg); }
.icon-badge--purple { background: var(--c-purple-bg); color: var(--c-purple-fg); }
.icon-badge--red { background: var(--c-red-bg); color: var(--c-red-fg); }
.icon-badge--indigo { background: var(--c-indigo-bg); color: var(--c-indigo-fg); }

.check-list { list-style: none; display: grid; gap: 14px; margin: 0 0 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-body); }
.check-list .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--blue); }
.check-list .is-excluded { color: var(--text-faint); }
.check-list .is-excluded .icon { color: var(--text-faint); }
.check-list--compact { gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 128px; overflow: hidden; }
.hero-title { font-size: 64px; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 32px; }
.hero-text { font-size: 20px; color: var(--text-body); max-width: 560px; margin-bottom: 36px; line-height: 1.45; }
.hero--home {
	background-color: #ebebec;
	background-image: linear-gradient(90deg, #ececed 0%, #ececed 38%, rgba(236, 236, 237, .85) 48%, rgba(236, 236, 237, 0) 72%), var(--hero-image);
	background-repeat: no-repeat;
	background-size: 100% 100%, max(66%, 586px) auto; background-position: 0 0, right center; padding: 88px 0 128px; min-height: 586px;
}
.hero--home .hero-copy { max-width: 780px; }
.hero--home .hero-title, .hero--home .hero-text { color: #111827; }
.hero--home .hero-text { color: #374151; }
[data-theme="dark"] .hero--home {
	background-color: #0b1220;
	background-image: linear-gradient(90deg, #0b1220 0%, rgba(11, 18, 32, .9) 42%, rgba(11, 18, 32, .35) 100%), var(--hero-image);
}
[data-theme="dark"] .hero--home .hero-title { color: #f3f4f6; }
[data-theme="dark"] .hero--home .hero-text { color: #cbd5e1; }
.hero--home .btn-outline { background: #fff; color: #111827; border-color: #e5e7eb; }

.hero-center { text-align: center; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-center .hero-text { margin-inline: auto; }
.hero--tint { background: linear-gradient(135deg, var(--bg-tint), color-mix(in srgb, var(--bg-tint) 60%, var(--bg))); padding: 32px 0 128px; }
.hero--tint .back-link { margin-bottom: 32px; }
.hero--waves { background: linear-gradient(135deg, #d6ecff 0%, #9ccfff 45%, #e8f3ff 100%); padding: 32px 0 160px; }
[data-theme="dark"] .hero--waves { background: linear-gradient(135deg, #0c2547 0%, #12407a 45%, #0b1a33 100%); }
.hero--waves .hero-title { margin-top: 24px; }
.hero--waves .hero-text { color: #1f2937; max-width: 720px; }
[data-theme="dark"] .hero--waves .hero-text { color: #dbeafe; }
.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; fill: #2b8af7; pointer-events: none; }
.hero--image {
	background: linear-gradient(rgba(17, 24, 39, .45), rgba(17, 24, 39, .45)), var(--hero-image) center / cover;
	padding: 32px 0 140px; text-align: center; color: #fff;
}
.hero--image .hero-title { color: #fff; margin-top: 28px; }
.hero--image .hero-text { color: #e5e7eb; margin-inline: auto; }
.hero--image .back-link { color: #fff; float: left; }
.hero--image .container::after { content: ""; display: block; clear: both; }
.hero--image .hero-title { clear: both; padding-top: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--blue); }
.back-link .icon { width: 16px; height: 16px; transition: transform .15s; }
.back-link:hover .icon { transform: translateX(-3px); }

.page-hero { padding: 24px 0 48px; border-bottom: 1px solid var(--border); text-align: center; }
.page-hero .back-link { float: left; }
.page-hero .container::after { content: ""; display: block; clear: both; }
.page-title { font-size: 40px; clear: both; padding-top: 24px; margin-bottom: 16px; }
.page-intro { font-size: 18px; color: var(--text-soft); margin: 0 auto; max-width: 640px; }
.page-hero--big { padding: 48px 0 32px; border-bottom: 0; }
.page-hero--big .page-title { font-size: 64px; padding-top: 0; }
.page-hero--big .page-intro { font-size: 24px; max-width: 860px; }
.error-code { font-size: 96px; font-weight: 700; color: var(--blue); margin: 0; line-height: 1; }

/* ---------- Home ---------- */
.clients { padding: 48px 0 56px; text-align: center; }
.clients-title { color: var(--text-muted); margin-bottom: 28px; }
.client-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 48px; list-style: none; }
.client-list li { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; color: var(--text-faint); }
.client-list .icon { width: 22px; height: 22px; }
.filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: -16px 0 48px; }
.filter-tab {
	padding: 10px 24px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface);
	color: var(--text-body); font-size: 16px; box-shadow: var(--shadow-sm);
}
.filter-tab:hover { border-color: var(--blue); color: var(--blue); }
.filter-tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.service-card { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.service-card .icon-badge { margin-bottom: 32px; }
.service-card .card-title { font-size: 22px; margin-bottom: 16px; }
.service-card .card-text { margin-bottom: 24px; }
.service-card .check-list { width: 100%; }
.service-card--home .btn { margin-top: auto; }
.service-card--archive .btn { margin-top: 0; }
.service-card--related { padding: 24px; }
.service-card--related .icon-badge { margin-bottom: 24px; }
.service-card--related .card-title { font-size: 20px; margin-bottom: 12px; }
.service-card--related .card-text { margin-bottom: 20px; }
.package-head { width: 100%; display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 500; color: var(--text); }
.package-head strong { color: var(--blue); }
.price-row { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); margin-top: auto; }
.price-row span { font-weight: 500; color: var(--text); }
.price-row strong { font-size: 24px; color: var(--blue); }
.price-note { font-size: 14px; color: var(--text-muted); margin: 12px 0 24px; }
.service-card--archive .price-row + .btn { margin-top: 24px; }

.testimonial-card { padding: 32px; display: flex; flex-direction: column; margin: 0; }
.testimonial-quote { margin: 20px 0 24px; color: var(--text-soft); font-size: 16px; line-height: 1.6; flex: 1; }
.stars { display: inline-flex; gap: 2px; color: #facc15; }
.star .icon { width: 17px; height: 17px; fill: currentColor; }
.star--empty .icon { fill: none; }
.star--half .icon { fill: url(#half) currentColor; fill: currentColor; clip-path: inset(0 50% 0 0); }
.star--half { position: relative; }
.star--half::after { content: ""; position: absolute; inset: 0; background: no-repeat center / 17px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23facc15' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8-6.2-3.2L5.8 21 7 14.2 2 9.3l6.9-1Z'/%3E%3C/svg%3E"); }
.person { display: flex; gap: 16px; align-items: center; }
.person strong { display: block; color: var(--text); font-size: 16px; }
.person small { display: block; color: var(--text-muted); font-size: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--c-gray-bg); color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .icon { width: 22px; height: 22px; }
.avatar--lg { width: 96px; height: 96px; }

.post-feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-muted); }
.post-feature-media { display: block; min-height: 380px; }
.post-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.post-feature-body { padding: 48px; display: flex; flex-direction: column; }
.post-feature-title { font-size: 30px; margin-bottom: 24px; }
.post-feature-title a { color: var(--text); }
.post-feature-body p { color: var(--text-soft); }
.post-feature-body .btn { margin-top: auto; }

.newsletter-box {
	margin-top: 48px; padding: 48px; border-radius: var(--radius); background: var(--surface-muted);
	display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.newsletter-box h2 { font-size: 24px; margin-bottom: 12px; }
.newsletter-box p { margin: 0; color: var(--text-soft); }
.newsletter-box--stack { grid-template-columns: 1fr; text-align: center; background: var(--surface); margin-top: 0; }
.newsletter-box--stack .inline-form { max-width: 560px; margin: 0 auto; }
.inline-form { display: flex; gap: 12px; }
.inline-form input { flex: 1; min-width: 0; }

.contact-split { display: grid; grid-template-columns: 416px 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.contact-split--page { grid-template-columns: 1.4fr 1fr; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }
.contact-split--page .contact-panel { order: 2; }
.contact-panel { background: var(--blue); color: #fff; padding: 48px; }
.contact-panel--contact { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-700) 100%); }
.contact-panel h3 { color: #fff; font-size: 24px; margin-bottom: 32px; }
.contact-panel--contact h3 { font-size: 30px; margin-bottom: 20px; }
.panel-intro { color: #e0ecff; margin-bottom: 40px; line-height: 1.6; }
.panel-list { list-style: none; display: grid; gap: 28px; }
.panel-list li { display: flex; gap: 16px; }
.panel-list strong { display: block; font-weight: 500; margin-bottom: 4px; }
.contact-panel--contact .panel-list strong { font-size: 20px; }
.panel-list li > div > span, .panel-list a:not(.btn) { display: block; color: #dbeafe; }
.panel-list a:not(.btn):hover { color: #fff; text-decoration: underline; }
.panel-list small { display: block; color: #bfdbfe; font-size: 13px; margin-top: 2px; }
.panel-list .btn { margin-top: 16px; }
.panel-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.contact-panel--contact .panel-icon { width: 48px; height: 48px; }
.panel-icon .icon { width: 18px; height: 18px; }
.panel-icon--lg { width: 64px; height: 64px; }
.panel-icon--lg .icon { width: 26px; height: 26px; }
.panel-social-title { margin: 48px 0 16px; font-weight: 500; }
.contact-panel--contact .panel-social-title { font-size: 20px; }
.form-card { padding: 48px; background: var(--surface); }
.form-title { font-size: 24px; margin-bottom: 28px; }
.contact-split--page .form-title { font-size: 30px; margin-bottom: 16px; }
.form-intro { color: var(--text-soft); margin-bottom: 32px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { margin: 0 0 24px; }
.field label, .slots legend { display: block; font-weight: 500; color: var(--text-body); margin-bottom: 8px; font-size: 15px; }
.req { color: #ef4444; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="date"], input[type="password"], select, textarea {
	width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 6px;
	background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
	transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 12px 16px; resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
select, .select {
	appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.select { width: auto; min-width: 160px; height: 40px; background-color: var(--c-gray-bg); border-color: transparent; }
.select--white { background-color: var(--surface); border-color: var(--border-strong); }
.select--sm { min-width: 72px; height: 36px; padding-left: 12px; }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.field--check label { font-weight: 400; margin: 0; }
.counter { display: block; margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.inline-form--dark input { background: var(--footer-2); border-color: var(--footer-2); color: #fff; }
.inline-form--dark { gap: 0; }
.inline-form--dark input { border-radius: 6px 0 0 6px; }
.inline-form--dark .btn { border-radius: 0 6px 6px 0; height: 48px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 15px; }
.notice .icon { width: 18px; height: 18px; margin-top: 2px; }
.notice--success { background: var(--c-green-bg); color: var(--c-green-fg); }
.notice--error { background: var(--c-red-bg); color: var(--c-red-fg); }

/* Booking */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cal-head h3, .booking-summary h3 { font-size: 18px; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav .icon-btn { width: 32px; height: 32px; }
.cal-nav .icon { width: 16px; height: 16px; }
.calendar { margin-bottom: 24px; }
.cal-month { text-align: center; font-weight: 500; margin-bottom: 12px; color: var(--text-body); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: 14px; color: var(--text-muted); padding: 6px 0; font-weight: 500; }
.cal-day { height: 40px; border: 0; background: transparent; border-radius: 6px; color: var(--text); font-size: 15px; }
.cal-day:disabled { color: var(--text-faint); opacity: .55; cursor: default; }
.cal-day:not(:disabled):hover { background: var(--blue-50); color: var(--blue); }
.cal-day.is-selected { background: var(--blue); color: #fff; }
.js .booking-form:not(.booking-form--compact) .date-field { display: none; }
.slots { border: 0; padding: 0; margin: 0; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.booking-form--compact .slot-grid { grid-template-columns: repeat(3, 1fr); gap: 8px 24px; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: block; text-align: center; padding: 8px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 14px; color: var(--text-body); cursor: pointer; background: var(--surface); }
.slot span:hover { border-color: var(--blue); }
.slot input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.summary-box { background: var(--surface-muted); padding: 16px; border-radius: 6px; color: var(--text-muted); margin: 16px 0 24px; }
.summary-box.has-value { color: var(--text); font-weight: 500; }
.booking-summary h4 { font-size: 16px; margin-bottom: 12px; }
.icon-list { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; color: var(--text-body); }
.icon-list li { display: flex; gap: 10px; }
.icon-list .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--text-muted); }
.info-box { display: flex; gap: 10px; background: var(--blue-50); border-radius: 6px; padding: 16px; font-size: 14px; color: var(--text-body); }
.info-box .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--blue); }
.booking-card { padding: 32px; }
.contact-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin-top: 48px; }
.contact-chip { display: flex; align-items: center; gap: 16px; color: var(--text-body); }
.contact-chip strong { display: block; color: var(--text); }
.contact-chip span span, .contact-chip > span:last-child { display: block; }

.modal { border: 0; border-radius: 16px; padding: 0; width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--text-body); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(17, 24, 39, .55); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 28px 32px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 20px; font-weight: 500; }
.modal-body { padding: 24px 32px 32px; }
.booking-form--compact .booking-grid { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #9ca3af; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-brand p { margin: 24px 0; line-height: 1.6; }
.footer-col h2 { color: #fff; font-size: 18px; margin-bottom: 28px; }
.footer-col ul { list-style: none; display: grid; gap: 14px; }
.footer-col a { color: #9ca3af; }
.footer-col a:hover { color: #fff; }
.footer-col p { line-height: 1.6; }
.footer-col .small { font-size: 13px; margin-top: 16px; }
.footer-col .notice { font-size: 14px; }
.footer-bottom { margin-top: 56px; padding-top: 32px; border-top: 1px solid #1f2937; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-bottom p { margin: 0; }
.legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: 24px; }
.legal-links a { color: #9ca3af; }
.legal-links a:hover { color: #fff; }
.socials { list-style: none; display: flex; gap: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s; }
.socials .icon { width: 17px; height: 17px; }
.socials--dark a { background: var(--footer-2); color: #fff; }
.socials--dark a:hover { background: var(--blue); color: #fff; }
.socials--light a { background: rgba(255, 255, 255, .2); color: #fff; }
.socials--light a:hover { background: #fff; color: var(--blue); }
.socials--text { margin-top: 8px; }
.socials--text a { width: 32px; height: 32px; background: var(--c-gray-bg); color: var(--text-soft); }
.socials--text a:hover { background: var(--blue); color: #fff; }

/* ---------- About ---------- */
.hero--about { background: var(--bg-tint); padding: 32px 0 120px; }
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 40px; }
.about-hero .hero-title { font-size: 60px; }
.about-hero-photo { position: relative; }
.about-hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.blob--one { width: 96px; height: 96px; left: -24px; top: -24px; background: var(--c-blue-bg); }
.blob--two { width: 128px; height: 128px; right: -24px; bottom: -48px; background: color-mix(in srgb, #99f6e4 50%, transparent); }
.prose--sans { font-family: var(--font); }
.timeline { list-style: none; position: relative; display: grid; gap: 48px; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; position: relative; }
.timeline-dot { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; z-index: 1; }
.timeline-dot .icon { width: 20px; height: 20px; }
.timeline-dot--blue { background: #3b82f6; }
.timeline-dot--green { background: #10b981; }
.timeline-dot--indigo { background: #6366f1; }
.timeline-dot--purple { background: #a855f7; }
.timeline-dot--yellow { background: #eab308; }
.timeline-card { background: var(--surface); padding: 24px; border-radius: var(--radius-lg); }
.timeline-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.timeline-head h3 { font-size: 20px; margin-bottom: 4px; }
.timeline-company { margin: 0; font-weight: 500; }
.timeline-card > p { color: var(--text-body); }
.timeline-card .check-list { margin: 0; gap: 10px; }
.skill-group { margin-bottom: 48px; }
.skill-group-title { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 500; margin-bottom: 24px; }
.skill-grid { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.skill-tile { background: var(--surface-muted); border-radius: var(--radius-lg); padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 14px; color: var(--text-body); font-weight: 500; }
.skill-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.skill-icon .icon { width: 20px; height: 20px; }
.soft-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.soft-tile { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface-muted); border-radius: var(--radius-lg); font-weight: 500; color: var(--text-body); }
.soft-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--c-purple-fg); box-shadow: var(--shadow-sm); }
.soft-icon .icon { width: 16px; height: 16px; }
.mission { text-align: center; }
.mission-quote { margin: 32px 0 48px; font-size: 24px; line-height: 1.65; color: var(--text-body); }
.mission-sub { font-size: 20px; margin-bottom: 16px; }
.mission-text { color: var(--text-body); line-height: 1.75; margin-bottom: 32px; }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.edu-card { padding: 24px; margin-bottom: 24px; border-radius: var(--radius-lg); }
.edu-card header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.edu-card h4 { font-size: 18px; font-weight: 500; }
.edu-card header span { font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.edu-sub { font-weight: 500; margin-bottom: 12px; }
.edu-card p:last-child { font-size: 14px; color: var(--text-soft); margin: 0; }
.work-together { display: grid; grid-template-columns: 2fr 1fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.work-together-main { padding: 56px 48px; background: linear-gradient(90deg, var(--blue), var(--blue-600)); color: #fff; }
.work-together-main h2 { color: #fff; font-size: 30px; margin-bottom: 16px; }
.work-together-main p { color: #eaf2ff; margin-bottom: 32px; }
.work-together-side { background: var(--blue-700); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; }
.work-together-side:hover { color: #fff; background: var(--blue-800); }
.work-together-side strong { font-weight: 500; font-size: 17px; margin-top: 12px; }
.work-together-side span:last-child { color: #dbeafe; overflow-wrap: anywhere; }

/* ---------- Projects ---------- */
.project-filters { display: block; }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.search-box input { padding-left: 46px; }
.search-box--wide { max-width: 672px; margin: 0 auto 32px; }
.search-box--wide input { text-align: center; }
.search-box--pill input { border-radius: 999px; height: 40px; background: var(--surface-muted); font-size: 14px; }
.filter-card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.filter-label { font-size: 20px; font-weight: 500; color: var(--text); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; background: var(--c-blue-bg); color: var(--c-blue-fg); }
.chip .icon { width: 14px; height: 14px; }
.sort-row { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; color: var(--text-body); }
.list-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; color: var(--text-body); }
.list-foot p { margin: 0; }
.list-foot-right { display: flex; align-items: center; gap: 12px; }
.pagination .page-numbers { list-style: none; display: flex; gap: 8px; margin: 0; }
.pagination a.page-numbers, .pagination span.page-numbers {
	min-width: 40px; height: 40px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text-body);
}
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; }
.pagination .icon { width: 16px; height: 16px; }
.list-count { text-align: center; color: var(--text-soft); margin: 48px 0 12px; font-size: 14px; }
.post-grid + .list-count + .pagination .page-numbers { justify-content: center; }
.empty-state { text-align: center; padding: 64px 16px; color: var(--text-soft); }
.empty-state .icon { width: 40px; height: 40px; color: var(--text-faint); margin-bottom: 12px; }
.empty-state h2 { font-size: 22px; margin-bottom: 8px; }

.project-hero { padding: 48px 0 72px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 100%); overflow: hidden; }
.project-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.project-hero .hero-title { font-size: 52px; margin: 32px 0 24px; }
.project-hero .pills { margin-bottom: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 24px; }
.fact { background: var(--surface); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.fact dt { font-weight: 500; color: var(--text); margin-bottom: 6px; }
.fact dd { margin: 0; color: var(--text-body); }
.project-hero .tags { margin-bottom: 24px; }
.project-hero-media { position: relative; padding-bottom: 32px; }
.browser { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); border: 1px solid var(--border); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--c-gray-bg); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.browser-bar span:nth-child(2) { background: #fbbf24; }
.browser-bar span:nth-child(3) { background: #34d399; }
.browser-bar em { font-style: normal; font-size: 12px; color: var(--text-muted); margin-left: 12px; background: var(--surface); padding: 2px 12px; border-radius: 999px; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hero-phone { position: absolute; right: -16px; bottom: 0; width: 26%; border-radius: 22px; overflow: hidden; border: 6px solid #111827; box-shadow: var(--shadow-lg); background: #111827; }
.hero-phone img { width: 100%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.icon-points { list-style: none; display: grid; gap: 18px; }
.icon-points li { display: flex; gap: 12px; color: var(--text-body); line-height: 1.55; }
.icon-points .icon { width: 17px; height: 17px; margin-top: 4px; }
.icon-points--red .icon { color: #ef4444; }
.icon-points--green .icon { color: #22c55e; }
.zigzag { list-style: none; position: relative; display: grid; gap: 64px; }
.zigzag::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--border); border-radius: 2px; }
.zigzag-item { display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; }
.zigzag-num { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; justify-self: center; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.zigzag-text h3 { font-size: 20px; margin-bottom: 10px; }
.zigzag-text p { color: var(--text-body); margin: 0; line-height: 1.6; }
.zigzag-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 377 / 256; object-fit: cover; object-position: top; width: 100%; }
.zigzag-item:nth-child(odd) .zigzag-text { text-align: right; }
.zigzag-item:nth-child(even) .zigzag-text { order: 3; }
.zigzag-item:nth-child(even) .zigzag-num { order: 2; }
.zigzag-item:nth-child(even) .zigzag-media { order: 1; }
.tech-card { padding: 32px; }
.tech-card .icon-badge { margin-bottom: 32px; }
.tech-card h3 { font-size: 20px; margin-bottom: 20px; }
.tech-card .check-list { margin: 0; }
.chart-card { margin-top: 64px; padding: 32px; }
.chart-card h3 { font-size: 20px; }
.chart-legend { display: flex; justify-content: center; gap: 16px; font-size: 13px; color: var(--text-body); margin: 24px 0; }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend::before { content: ""; width: 24px; height: 12px; border-radius: 3px; }
.legend--before::before { background: #fb8f67; }
.legend--after::before { background: #56b4e9; }
.bar-chart { display: flex; gap: 12px; align-items: flex-end; height: 260px; border-bottom: 1px solid var(--border-strong); padding: 0 8px; background: repeating-linear-gradient(to top, var(--border) 0 1px, transparent 1px 20%); }
.bar-group { flex: 1; display: flex; flex-direction: column; height: 100%; position: relative; }
.bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.bar { width: 34%; max-width: 44px; height: var(--v); border-radius: 3px 3px 0 0; position: relative; }
.bar em { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--text-muted); }
.bar--before { background: #fb8f67; }
.bar--after { background: #56b4e9; }
.bar-label { position: absolute; bottom: -28px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--text-body); }
.chart-card .bar-chart { margin-bottom: 36px; }
.gallery-card { margin: 0; background: var(--surface); }
.gallery-media { display: block; aspect-ratio: 368 / 320; overflow: hidden; }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery-card figcaption { padding: 16px; }
.gallery-card strong { display: block; color: var(--text); font-weight: 500; }
.gallery-card span { font-size: 14px; color: var(--text-soft); }
.result-card { padding: 32px; text-align: center; }
.result-value { display: block; font-size: 36px; color: var(--blue); margin-bottom: 8px; }
.result-card h3 { font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.result-card p { color: var(--text-soft); margin: 0; }
.impact-card { margin-top: 64px; padding: 32px; }
.impact-card h3 { font-size: 20px; margin-bottom: 20px; }
.quote-feature { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 48px; margin: 0; }
.quote-person { display: flex; flex-direction: column; gap: 4px; color: var(--text-soft); }
.quote-person .avatar { margin-bottom: 16px; }
.quote-person strong { color: var(--text); }
.rating-row { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text); }
.quote-feature blockquote { margin: 0; font-size: 18px; line-height: 1.75; color: var(--text-body); }
.quote-mark { width: 24px; height: 24px; color: var(--blue); margin-bottom: 16px; }
.post-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; }
.post-nav-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-body); }
.post-nav-link .icon { width: 16px; height: 16px; }
.post-nav-link:hover { color: var(--blue); }

.cta-band { background: var(--blue); color: #fff; text-align: center; padding: 80px 0; }
.cta-band h2 { color: #fff; font-size: 36px; margin-bottom: 24px; }
.cta-band p { color: #e6efff; font-size: 20px; margin-bottom: 40px; }

/* ---------- Services ---------- */
.process-cards { counter-reset: none; }
.process-card { padding: 32px; position: relative; overflow: visible; margin-top: 16px; }
.process-card .step-num { position: absolute; top: -16px; left: -16px; }
.process-card .icon-badge { margin-bottom: 32px; }
.process-card h3 { font-size: 20px; margin-bottom: 16px; }
.process-card p { color: var(--text-soft); margin: 0; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.faq { display: grid; gap: 24px; }
.faq-item { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.faq--muted .faq-item { background: var(--surface-muted); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 32px; cursor: pointer; font-weight: 500; font-size: 18px; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 16px; height: 16px; color: var(--text-muted); transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 32px 24px; color: var(--text-soft); line-height: 1.65; }
.faq-answer p { margin: 0; }
.value-cards { margin-top: 48px; }
.value-card { padding: 24px; }
.value-card .icon-badge { margin-bottom: 20px; }
.value-card h3 { font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.value-card p { color: var(--text-soft); margin: 0; }
.deliverables { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.deliverables li { display: flex; gap: 16px; }
.deliverables h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.deliverables p { color: var(--text-soft); margin: 0; line-height: 1.6; }
.tick { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }
.tick .icon { width: 14px; height: 14px; stroke-width: 3; }
.steps { list-style: none; display: grid; gap: 32px; position: relative; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: -32px; width: 2px; background: var(--border-strong); }
.step-card { padding: 24px; }
.step-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.step-card p { color: var(--text-soft); margin-bottom: 12px; }
.step-card small { color: var(--text-muted); }
.info-callout { display: flex; gap: 16px; padding: 24px; background: var(--blue-50); border-radius: var(--radius); margin-top: 48px; }
.info-callout--white { background: var(--surface); box-shadow: var(--shadow-sm); }
.info-callout h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.info-callout p { margin: 0; color: var(--text-body); }
.tool-grid { margin-bottom: 48px; gap: 24px; }
.tool-card { padding: 32px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.tool-icon .icon { width: 40px; height: 40px; color: var(--text-soft); stroke-width: 1.6; margin-bottom: 16px; }
.tool-card strong { color: var(--text); font-weight: 500; }
.tool-card > span:last-child { font-size: 14px; color: var(--text-soft); }
.list-card { padding: 24px; }
.list-card h3 { font-size: 20px; font-weight: 500; margin-bottom: 20px; }
.list-card .check-list { margin: 0; }
.slider { position: relative; overflow: visible; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; gap: 0; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; padding: 32px; }
.slide .testimonial-quote { font-size: 18px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.slider-btn .icon { width: 18px; height: 18px; }
.slider-btn--prev { left: -20px; }
.slider-btn--next { right: -20px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.slider-dots button { width: 24px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: var(--border-strong); }
.slider-dots button.is-active { width: 32px; background: var(--blue); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 0 0 24px; overflow: visible; position: relative; margin-top: 20px; }
.price-card.is-popular { border: 2px solid var(--blue); margin-top: 0; box-shadow: var(--shadow-lg); }
.popular-badge { position: absolute; top: -2px; right: -2px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 500; padding: 4px 16px; border-radius: 0 var(--radius) 0 var(--radius); }
.price-head { padding: 32px 24px 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.price-head h3 { font-size: 24px; margin-bottom: 12px; }
.price-head p { color: var(--text-soft); margin-bottom: 12px; }
.price { margin: 0 !important; }
.price strong { font-size: 36px; color: var(--blue); }
.price span { font-size: 15px; color: var(--text-muted); }
.price-card .check-list { padding: 0 24px; flex: 1; }
.price-card .btn { width: auto; margin: 0 24px; }

/* ---------- Blog ---------- */
.blog-toolbar { border-top: 12px solid var(--bg-muted); border-bottom: 1px solid var(--border); padding: 40px 0; }
.toolbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.toolbar-inner .search-box { width: 200px; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; justify-content: center; }
.cat-pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-body); background: var(--surface); }
.cat-pill:hover { border-color: var(--blue); color: var(--blue); }
.cat-pill.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.toolbar-right { display: flex; gap: 16px; align-items: center; }
.toolbar-right form { margin: 0; }
.view-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; }
.view-toggle button { width: 40px; height: 40px; border: 0; background: var(--surface); color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; }
.view-toggle button.is-active { background: var(--blue); color: #fff; }
.view-toggle .icon { width: 16px; height: 16px; }
.post-grid .post-card { background: var(--surface); }
.post-grid.is-list { grid-template-columns: 1fr; }
.post-grid.is-list .post-card { flex-direction: row; }
.post-grid.is-list .card-media { width: 34%; flex: none; aspect-ratio: auto; }
.pagination { display: flex; justify-content: center; }
.list-foot .pagination { justify-content: flex-end; }

.article-head { padding: 24px 0 56px; }
.article-title { font-size: 48px; max-width: 900px; margin: 56px 0 20px; letter-spacing: -.01em; }
.byline { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.byline img, .author-box img { border-radius: 50%; }
.byline strong { display: block; color: var(--text); }
.byline small { color: var(--text-muted); font-size: 14px; }
.article-hero { margin: 0; }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 72px minmax(0, 824px); justify-content: center; gap: 0; padding-top: 48px; padding-bottom: 64px; }
.share { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 16px; }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c-gray-bg); color: var(--text-soft); display: inline-flex; align-items: center; justify-content: center; }
.share a:hover, .share button:hover, .share button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.share .icon { width: 16px; height: 16px; }
.share .is-copied { background: var(--c-green-fg); color: #fff; }
.prose { font-family: var(--font-serif); font-size: 17px; line-height: 1.75; color: var(--text-body); }
.prose > * + * { margin-top: 1.3em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font); margin-top: 1.8em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 2px 0 2px 20px; border-left: 4px solid var(--blue); font-family: var(--font); font-weight: 500; color: var(--text-soft); }
.prose blockquote p { margin: 0; }
.prose pre { font-family: "SFMono-Regular", Menlo, Consolas, monospace; background: #1e293b; color: #e2e8f0; border-radius: var(--radius-lg); padding: 24px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.prose code { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: .88em; background: var(--c-gray-bg); padding: 2px 6px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prose .callout, .prose .wp-block-group.callout { background: var(--c-gray-bg); border-radius: var(--radius-lg); padding: 24px 28px; }
.prose .callout h3 { margin-top: 0; font-size: 19px; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 14px; color: var(--text-muted); text-align: center; margin-top: 8px; font-family: var(--font); }
.prose--sans { font-family: var(--font); font-size: 16px; line-height: 1.6; }
.prose--sans > * + * { margin-top: 1em; }
.tags--plain { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.author-box { display: flex; gap: 16px; padding: 24px; margin-top: 32px; background: var(--surface-muted); border-radius: var(--radius-lg); }
.author-box img { width: 64px; height: 64px; flex: none; }
.author-box strong { display: block; color: var(--text); }
.author-box small { color: var(--text-muted); }
.author-box p { margin: 8px 0 0; font-size: 15px; color: var(--text-soft); }
.related-posts .post-card { background: var(--surface-muted); }
.related-posts .card-title { font-size: 17px; }

.comments .comment-respond { padding: 24px; margin-bottom: 32px; }
.comment-reply-title { font-size: 19px; margin-bottom: 16px; }
.comment-reply-title small { margin-left: 8px; font-size: 14px; font-weight: 400; }
.comment-form p { margin-bottom: 16px; }
.comment-form .form-submit { margin: 0; }
.comment-list { list-style: none; display: grid; gap: 24px; }
.comment-list .children { list-style: none; margin: 16px 0 0 48px; padding-left: 24px; border-left: 2px solid var(--border); display: grid; gap: 16px; }
.comment-list > .comment-item > .comment-body { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.comment-body { display: flex; gap: 16px; }
.comment-body img { border-radius: 50%; flex: none; width: 40px; height: 40px; }
.comment-main { flex: 1; }
.comment-main header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comment-main header strong { color: var(--text); }
.comment-main header small { width: 100%; color: var(--text-muted); font-size: 13px; }
.comment-text { margin: 12px 0; color: var(--text-body); }
.comment-text p { margin: 0 0 .6em; }
.comment-reply a { font-size: 14px; color: var(--text-muted); }

/* ---------- Contact ---------- */
.section--overlap { padding-top: 0; }
.section--overlap .contact-split { margin-top: -88px; position: relative; }
.office { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.office-list { list-style: none; display: grid; gap: 32px; }
.office-list li { display: flex; gap: 16px; }
.office-list h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.office-list p { margin: 0 0 4px; color: var(--text-body); }
.office-list small { color: var(--text-muted); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 488 / 320; background: var(--c-gray-bg); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.map-foot strong { display: block; color: var(--text); font-weight: 500; }
.map-foot span { color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.nav-list { gap: 20px; }
	.skill-grid { grid-template-columns: repeat(4, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.contact-split { grid-template-columns: 1fr; }
	.contact-split--page .contact-panel { order: 0; }
	.project-hero-grid { grid-template-columns: 1fr; }
	.hero-phone { right: 8px; width: 22%; }
}

@media (max-width: 960px) {
	:root { --header-h: 64px; }
	.nav-toggle { display: inline-flex; }
	.header-cta { display: none; }
	.header-actions { margin-left: auto; gap: 4px; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; justify-content: flex-start;
		background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px 24px;
		box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
	}
	.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 18px; }
	.nav-cta { display: inline-flex; margin-top: 20px; }
	.grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero-title { font-size: 46px; }
	.page-hero--big .page-title { font-size: 48px; }
	.about-hero { grid-template-columns: 1fr; gap: 48px; }
	.about-hero-photo { max-width: 480px; }
	.post-feature { grid-template-columns: 1fr; }
	.post-feature-media { min-height: 260px; }
	.newsletter-box { grid-template-columns: 1fr; padding: 32px; }
	.pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
	.two-col, .office, .edu-grid { grid-template-columns: 1fr; }
	.work-together { grid-template-columns: 1fr; }
	.zigzag::before { left: 24px; }
	.zigzag-item, .zigzag-item:nth-child(even) { grid-template-columns: 48px 1fr; gap: 16px 20px; }
	.zigzag-item .zigzag-num, .zigzag-item:nth-child(even) .zigzag-num { order: 0; grid-row: 1 / span 2; align-self: start; }
	.zigzag-item .zigzag-text, .zigzag-item:nth-child(odd) .zigzag-text, .zigzag-item:nth-child(even) .zigzag-text { order: 1; text-align: left; }
	.zigzag-item .zigzag-media, .zigzag-item:nth-child(even) .zigzag-media { order: 2; grid-column: 2; }
	.quote-feature { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
	.deliverables { grid-template-columns: 1fr; }
	.soft-grid { grid-template-columns: repeat(2, 1fr); }
	.toolbar-inner { justify-content: center; }
	.toolbar-inner .search-box { width: 100%; }
	.article-layout { grid-template-columns: 1fr; }
	.share { position: static; display: flex; margin-bottom: 32px; }
	.article-title { font-size: 38px; margin-top: 32px; }
}

@media (max-width: 640px) {
	.container { padding: 0 20px; }
	.section { padding: 64px 0; }
	.section-title { font-size: 28px; }
	.section-intro { font-size: 17px; }
	.section-head { margin-bottom: 40px; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.hero { padding: 56px 0 80px; }
	.hero--home { min-height: 0; background-image: linear-gradient(rgba(236, 236, 237, .9), rgba(236, 236, 237, .9)), var(--hero-image); }
	[data-theme="dark"] .hero--home { background-image: linear-gradient(rgba(11, 18, 32, .88), rgba(11, 18, 32, .88)), var(--hero-image); }
	.hero-title, .about-hero .hero-title, .project-hero .hero-title { font-size: 36px; margin-bottom: 20px; }
	.hero-text { font-size: 17px; }
	.page-title { font-size: 32px; }
	.page-hero--big .page-title { font-size: 38px; }
	.page-hero--big .page-intro { font-size: 18px; }
	.pills { gap: 10px; margin-bottom: 32px; }
	.btn-row .btn { flex: 1 1 auto; }
	.form-grid { grid-template-columns: 1fr; }
	.form-card, .contact-panel { padding: 28px 20px; }
	.booking-grid { grid-template-columns: 1fr; }
	.booking-card { padding: 20px; }
	.inline-form { flex-direction: column; }
	.inline-form--dark { flex-direction: row; }
	.footer-grid { grid-template-columns: 1fr; }
	.skill-grid { grid-template-columns: repeat(2, 1fr); }
	.soft-grid { grid-template-columns: 1fr; }
	.facts { grid-template-columns: 1fr; }
	.timeline-head { flex-direction: column; }
	.work-together-main { padding: 36px 24px; }
	.post-feature-body { padding: 28px 20px; }
	.post-feature-title { font-size: 24px; }
	.post-grid.is-list .post-card { flex-direction: column; }
	.post-grid.is-list .card-media { width: 100%; aspect-ratio: 395 / 192; }
	.list-foot, .list-foot-right { flex-direction: column; align-items: flex-start; }
	.filter-row .select { flex: 1 1 140px; }
	.slider-btn--prev { left: 4px; }
	.slider-btn--next { right: 4px; }
	.post-nav { flex-wrap: wrap; gap: 16px; }
	.faq-item summary { padding: 20px; font-size: 16px; }
	.faq-answer { padding: 0 20px 20px; }
	.cta-band h2 { font-size: 28px; }
	.cta-band p { font-size: 17px; }
	.modal-head, .modal-body { padding-left: 20px; padding-right: 20px; }
	.booking-form--compact .slot-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.hero--image .back-link, .page-hero .back-link { float: none; }
}

/* ---------- Motion and polish ---------- */
@keyframes jp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes jp-zoom-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes jp-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* Hero entrance: each line appears a moment after the one before. */
.hero-copy > *, .about-hero-copy > *, .project-hero-copy > *, .page-hero .container > *, .article-head .container > *, .hero--image .container > *, .hero--tint .container > *, .hero--waves .container > * {
	animation: jp-rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-copy > :nth-child(2), .about-hero-copy > :nth-child(2), .project-hero-copy > :nth-child(2), .page-hero .container > :nth-child(2), .article-head .container > :nth-child(2), .hero--image .container > :nth-child(2), .hero--tint .container > :nth-child(2), .hero--waves .container > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3), .about-hero-copy > :nth-child(3), .project-hero-copy > :nth-child(3), .page-hero .container > :nth-child(3), .article-head .container > :nth-child(3), .hero--image .container > :nth-child(3), .hero--tint .container > :nth-child(3), .hero--waves .container > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4), .about-hero-copy > :nth-child(4), .project-hero-copy > :nth-child(4), .page-hero .container > :nth-child(4), .article-head .container > :nth-child(4), .hero--image .container > :nth-child(4), .hero--tint .container > :nth-child(4), .hero--waves .container > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(n+5), .about-hero-copy > :nth-child(n+5), .project-hero-copy > :nth-child(n+5), .page-hero .container > :nth-child(n+5), .article-head .container > :nth-child(n+5), .hero--image .container > :nth-child(n+5), .hero--tint .container > :nth-child(n+5), .hero--waves .container > :nth-child(n+5) { animation-delay: .32s; }
.project-hero-media, .about-hero-photo { animation: jp-zoom-in .9s .2s cubic-bezier(.2, .7, .2, 1) both; }

/* Fade-up on scroll (classes added by main.js, so content stays visible without JavaScript). */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0s); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Header gets slimmer with a soft shadow once you scroll. */
.header-inner { transition: height .25s ease; }
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(17, 24, 39, .08); }
.site-header.is-scrolled .header-inner { height: 60px; }

/* Cards lift on hover; images zoom gently inside their frame. */
.project-card, .post-card, .service-card, .result-card, .skill-tile { transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover, .post-card:hover, .service-card:hover, .result-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(17, 24, 39, .10); }
.skill-tile:hover { transform: translateY(-3px); }
.card-media img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.06); }
[data-theme="dark"] .project-card:hover, [data-theme="dark"] .post-card:hover, [data-theme="dark"] .service-card:hover, [data-theme="dark"] .result-card:hover { box-shadow: 0 16px 32px rgba(0, 0, 0, .4); }
.btn { transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }

/* "Read More" arrow slides right on hover. */
.card-foot .link::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform .2s; }
.card-foot .link:hover::after { transform: translateX(4px); }

/* Homepage project tabs fade instead of jumping. */
.project-card.is-fading { opacity: 0; transform: scale(.96); transition: opacity .2s ease, transform .2s ease; }

/* FAQ answers ease open. */
.faq-item[open] .faq-answer { animation: jp-rise .35s ease both; }

/* Reading progress bar on blog articles. */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .reading-progress { top: 32px; }
.reading-progress span { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }

/* "Available for work" badge. */
.availability-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #15803d; background: #dcfce7; white-space: nowrap; }
.availability-badge:hover { color: #166534; background: #bbf7d0; }
.availability-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: jp-pulse 2s infinite; }
[data-theme="dark"] .availability-badge { color: #86efac; background: rgba(34, 197, 94, .15); }

.project-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.project-actions .icon { width: 16px; height: 16px; }

@media (max-width: 1280px) {
	.availability-badge { display: none; }
}

/* Print and "Save as PDF": a clean case study without navigation or calls to action. */
@media print {
	.site-header, .site-footer, .reading-progress, .project-actions, .cta-band, .related-section, .skip-link, .back-link, dialog, .share, .newsletter-box, .comments-area { display: none !important; }
	html, body { background: #fff !important; color: #111 !important; }
	.section { padding: 24px 0 !important; background: #fff !important; }
	.card, .timeline-card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
	.project-hero { padding: 0 0 16px !important; background: #fff !important; overflow: visible !important; }
	.reveal, .hero-copy > *, .project-hero-copy > *, .project-hero-media { opacity: 1 !important; transform: none !important; animation: none !important; }
	a { color: #111 !important; text-decoration: none; }
	img { max-width: 100% !important; }
	h2, h3 { break-after: avoid; }
	.project-hero-grid { display: block !important; }
	.project-hero-media { max-width: 60%; margin: 8px auto 0; padding-bottom: 0 !important; background: none !important; }
	.browser { break-inside: avoid; box-shadow: none !important; }
	.hero-phone { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	html.js .reveal { opacity: 1; transform: none; }
}

/* Anything marked hidden stays hidden, even if a class gives it a display value. */
[hidden] { display: none !important; }

/* ---------- Small screens: nothing may be wider than the phone ---------- */
/* Safety net: stop any stray element from making the whole page scroll sideways.
   "clip" (unlike "hidden") keeps the sticky header working. */
html, body { overflow-x: clip; }
/* Grid and flex children may shrink below their content's natural width. */
.contact-split > *, .header-inner > * { min-width: 0; }
/* Long email addresses and links wrap instead of pushing the layout wider. */
.panel-list a, .form-card, .prose { overflow-wrap: anywhere; }

@media (max-width: 640px) {
	.blob--two { right: -8px; }
}

@media (max-width: 480px) {
	.container { padding: 0 16px; }
	.header-inner { gap: 8px; }
	.logo { font-size: 21px; overflow: hidden; text-overflow: ellipsis; }
	.header-actions .icon-btn { width: 36px; height: 36px; }
	/* Visitors do not need the login icon; the site owner can use /wp-admin. */
	.header-login { display: none; }
}

@media (max-width: 360px) {
	.logo { font-size: 19px; }
}
