/* ==========================================================================
   Adrian Górniak — Portfolio
   Paleta wyprowadzona z logo (jaszczurka): umbra, brąz, bursztyn, żar.
   ========================================================================== */

:root {
	--bg: #0b0a09;
	--bg-2: #100e0c;
	--surface: #161310;
	--surface-2: #1d1914;
	--surface-3: #252019;
	--line: rgba(244, 226, 200, 0.08);
	--line-strong: rgba(244, 226, 200, 0.16);

	--text: #f3ece2;
	--muted: #a99d8e;
	--dim: #73695d;

	--gold: #ffc93d;
	--amber: #f7931e;
	--ember: #f15a24;
	--bronze: #c69c6d;
	--umber: #754c24;

	--grad: linear-gradient(115deg, #ffd04a 0%, #f7931e 48%, #f15a24 100%);
	--grad-soft: linear-gradient(115deg, rgba(255, 208, 74, 0.16), rgba(241, 90, 36, 0.10));

	--font-sans: "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 16px;
	--radius-sm: 10px;
	--header-h: 76px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .entry-content a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(255, 201, 61, 0.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
p a:hover, .prose a:hover, .entry-content a:hover { text-decoration-color: var(--gold); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber); color: #120c05; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; 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:focus {
	position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: var(--gold); color: #120c05; border-radius: 8px; font-weight: 600;
}

/* ---------- Tło: siatka + poświata ---------- */
body::before {
	content: "";
	position: fixed; inset: 0; z-index: -2; pointer-events: none;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 88px 88px;
	mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
	opacity: .55;
}
body::after {
	content: "";
	position: fixed; z-index: -1; pointer-events: none;
	top: -30vh; right: -20vw; width: 80vw; height: 80vh;
	background: radial-gradient(closest-side, rgba(247, 147, 30, 0.13), transparent 70%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--bronze);
}
.eyebrow .num { color: var(--amber); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--plain::before { display: none; }

.section-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 16ch; margin: 0; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; font-size: 18px; }
@media (min-width: 900px) {
	.section-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; }
	.section-head--split .eyebrow { grid-column: 1 / -1; }
}

.grad-text {
	background: var(--grad); -webkit-background-clip: text; background-clip: text;
	color: transparent; -webkit-text-fill-color: transparent;
}
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---------- Przyciski ---------- */
.btn {
	--b-bg: var(--surface-2); --b-fg: var(--text); --b-bd: var(--line-strong);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 22px;
	background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
	border-radius: 999px; font-weight: 600; font-size: 15.5px; letter-spacing: -.005em;
	cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
	white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); border-color: rgba(244, 226, 200, .3); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
	--b-bg: var(--grad); --b-fg: #170e04; --b-bd: transparent;
	background: var(--grad);
	box-shadow: 0 10px 30px -12px rgba(247, 147, 30, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover { box-shadow: 0 14px 38px -12px rgba(247, 147, 30, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--ghost { --b-bg: transparent; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text);
	border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color .2s, color .2s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--gold); border-color: var(--gold); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled, .nav-open .site-header {
	background: rgba(11, 10, 9, .78);
	backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom-color: var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 4px 14px rgba(247, 147, 30, .25)); transition: transform .5s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-12deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 17.5px; letter-spacing: -.02em; }
.brand__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { list-style: none; display: flex; gap: 2px; }
.main-nav ul a {
	display: block; padding: 9px 14px; border-radius: 999px;
	color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s;
}
.main-nav ul a:hover { color: var(--text); background: rgba(244, 226, 200, .05); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a, .main-nav ul a[aria-current="page"] { color: var(--text); background: rgba(244, 226, 200, .07); }
.header-cta { margin-left: 10px; }

.nav-toggle {
	display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong);
	background: var(--surface); cursor: pointer; position: relative; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	position: absolute; left: 50%; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px;
	transform: translateX(-50%); transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; transform: none; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 20px var(--gutter) 28px;
		background: rgba(11, 10, 9, .97); border-bottom: 1px solid var(--line);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
	.main-nav ul { flex-direction: column; gap: 2px; }
	.main-nav ul a { padding: 14px 4px; border-radius: 0; font-size: 20px; color: var(--text); border-bottom: 1px solid var(--line); }
	.main-nav ul a:hover, .main-nav .current-menu-item > a, .main-nav ul a[aria-current="page"] { background: none; color: var(--gold); }
	.header-cta { margin: 8px 0 0; width: 100%; }
	.brand__role { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.25fr .75fr; gap: 40px; } }

.status-pill {
	display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
	border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(22, 19, 16, .7);
	font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #7bd88f; box-shadow: 0 0 0 4px rgba(123, 216, 143, .15); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(123, 216, 143, .15); } 50% { box-shadow: 0 0 0 7px rgba(123, 216, 143, .05); } }

.hero h1 {
	font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.045em; font-weight: 600;
	margin: 26px 0 26px; max-width: 16ch;
}
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 54ch; margin-bottom: 34px; }
.hero__lead strong { color: var(--text); font-weight: 600; }

.hero__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
.hero__visual::before {
	content: ""; position: absolute; inset: 6%; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(247, 147, 30, .28), rgba(117, 76, 36, .12) 55%, transparent 72%);
	filter: blur(6px);
}
.hero__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(198, 156, 109, .22); animation: spin 80s linear infinite; }
.hero__ring--2 { inset: 11%; border-style: solid; border-color: rgba(244, 226, 200, .06); animation-duration: 120s; animation-direction: reverse; }
.hero__ring::after {
	content: ""; position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; border-radius: 50%;
	background: var(--amber); box-shadow: 0 0 18px var(--amber);
}
.hero__ring--2::after { left: auto; right: -4px; top: 20%; width: 7px; height: 7px; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__logo { position: relative; width: 72%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
.hero__tag {
	position: absolute; z-index: 2; padding: 8px 12px; border-radius: 10px;
	background: rgba(22, 19, 16, .85); border: 1px solid var(--line-strong);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap;
}
.hero__tag b { color: var(--gold); font-weight: 500; }
.hero__tag--1 { top: 12%; left: -2%; }
.hero__tag--2 { bottom: 18%; right: -4%; }
.hero__tag--3 { bottom: 4%; left: 8%; }
@media (max-width: 979px) { .hero__visual { max-width: 380px; order: -1; } .hero__tag--1 { left: 0; } .hero__tag--2 { right: 0; } }
@media (max-width: 520px) { .hero__tag { display: none; } .hero__visual { max-width: 240px; } }

/* Pasek technologii */
.stack-strip { margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.stack-strip::before, .stack-strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.stack-strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.stack-strip::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.stack-strip__track { display: flex; gap: 0; width: max-content; animation: marquee 42s linear infinite; }
.stack-strip:hover .stack-strip__track { animation-play-state: paused; }
.stack-strip__item {
	display: inline-flex; align-items: center; gap: 14px; padding: 20px 28px;
	font-family: var(--font-mono); font-size: 14px; letter-spacing: .04em; color: var(--muted); white-space: nowrap;
}
.stack-strip__item::after { content: "✦"; color: var(--umber); font-size: 12px; margin-left: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Karty usług ---------- */
.pillars { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
	position: relative; display: flex; flex-direction: column; gap: 18px;
	padding: 32px 28px 28px; border-radius: var(--radius);
	background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
	border: 1px solid var(--line); overflow: hidden;
	transition: border-color .3s, transform .4s var(--ease);
}
.pillar::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(247, 147, 30, .12), transparent 45%);
	opacity: 0; transition: opacity .3s;
}
.pillar:hover { border-color: rgba(247, 147, 30, .32); transform: translateY(-3px); }
.pillar:hover::before { opacity: 1; }
.pillar__num { position: absolute; top: 26px; right: 26px; font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); }
.icon-box {
	width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
	background: var(--grad-soft); border: 1px solid rgba(247, 147, 30, .25); color: var(--gold);
}
.icon-box svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 25px; margin: 4px 0 0; }
.pillar > p { color: var(--muted); margin: 0; }
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 15.5px; color: #d9cfc2; line-height: 1.5; }
.ticks li::before {
	content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
	background: rgba(247, 147, 30, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc93d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.pillar .link-arrow { margin-top: auto; align-self: flex-start; }
.pillar__foot { margin-top: auto; padding-top: 8px; }

/* ---------- Power Platform spotlight ---------- */
.pp { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--bg-2); }
@media (min-width: 900px) { .pp { grid-template-columns: repeat(3, 1fr); } }
.pp__col { padding: 34px 30px; position: relative; }
.pp__col + .pp__col { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .pp__col + .pp__col { border-top: 0; border-left: 1px solid var(--line); } }
.pp__badge {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
	font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
}
.pp__badge i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.pp__col h3 { font-size: 23px; }
.pp__col > p { color: var(--muted); font-size: 16px; }
.pp__examples { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
.pp__examples li {
	padding: 11px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
	font-size: 14.5px; color: #d9cfc2; line-height: 1.45;
}
.pp__examples li::before { content: "→ "; color: var(--amber); font-family: var(--font-mono); }

/* ---------- Realizacje ---------- */
.projects { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .projects { grid-template-columns: repeat(2, 1fr); } }
.projects--3 { }
@media (min-width: 1100px) { .projects--3 { grid-template-columns: repeat(3, 1fr); } }

.project-card {
	display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
	background: var(--surface); border: 1px solid var(--line);
	transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.project-card:hover { border-color: rgba(247, 147, 30, .3); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card__media img, .project-card:hover .cover__window { transform: scale(1.03); }
.project-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.project-card h3 { font-size: 23px; margin: 2px 0 0; }
.project-card h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card { position: relative; }
.project-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.project-card__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--dim); }
.project-card__foot .arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text); transition: background .25s, color .25s, border-color .25s; }
.project-card__foot .arrow svg { width: 16px; height: 16px; }
.project-card:hover .arrow { background: var(--grad); color: #170e04; border-color: transparent; }

.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
	font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--bronze);
	background: rgba(198, 156, 109, .08); border: 1px solid rgba(198, 156, 109, .18); white-space: nowrap;
}
.chip--accent { color: var(--gold); background: rgba(255, 201, 61, .08); border-color: rgba(255, 201, 61, .22); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Okładka generowana, gdy brak obrazka wyróżniającego */
.cover {
	--c1: #f7931e; --c2: #754c24;
	position: absolute; inset: 0; display: grid; place-items: center; padding: 8% 9% 0;
	background:
		radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c1) 40%, transparent), transparent 60%),
		radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 60%),
		#14110e;
}
.cover::before {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.cover__window {
	position: relative; width: 100%; height: 100%; align-self: end;
	border-radius: 12px 12px 0 0; background: rgba(11, 10, 9, .82); border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0;
	box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .6); overflow: hidden; transition: transform .8s var(--ease); transform-origin: bottom center;
}
.cover__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.cover__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.cover__bar span { margin-left: 10px; flex: 1; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-family: var(--font-mono); font-size: 11px; color: rgba(243, 236, 226, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover__content { padding: 7% 8%; display: grid; gap: 10px; }
.cover__title { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--text); }
.cover__line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.cover__line--a { width: 80%; } .cover__line--b { width: 55%; }
.cover__btn { width: 90px; height: 22px; border-radius: 999px; background: linear-gradient(90deg, var(--c1), color-mix(in srgb, var(--c1) 60%, #fff)); margin-top: 6px; opacity: .9; }
.cover--maps .cover__content { grid-template-columns: 1fr; }
.cover__pin { position: absolute; right: 9%; bottom: 14%; width: 44px; height: 44px; color: var(--c1); filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); }

/* Filtry archiwum */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters a {
	padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 14.5px; font-weight: 500;
	transition: color .2s, border-color .2s, background .2s;
}
.filters a:hover { color: var(--text); border-color: rgba(244, 226, 200, .3); }
.filters a.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters a span { opacity: .55; font-family: var(--font-mono); font-size: 12px; margin-left: 4px; }

/* ---------- Proces ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 30px 26px 34px 0; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 1100px) { .step { border-bottom: 0; padding-right: 30px; } .step + .step { padding-left: 30px; border-left: 1px solid var(--line); } }
@media (min-width: 760px) and (max-width: 1099px) { .step:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--line); } }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--amber); display: block; margin-bottom: 40px; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- CTA ---------- */
.cta {
	position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px);
	padding: clamp(40px, 6vw, 72px); border: 1px solid rgba(247, 147, 30, .25);
	background:
		radial-gradient(80% 120% at 100% 0%, rgba(247, 147, 30, .22), transparent 60%),
		radial-gradient(60% 100% at 0% 100%, rgba(117, 76, 36, .35), transparent 60%),
		var(--surface);
	display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; } }
.cta h2 { font-size: clamp(30px, 4.2vw, 50px); max-width: 18ch; margin: 0 0 14px; }
.cta p { color: var(--muted); margin: 0; max-width: 50ch; }
.cta__logo { position: absolute; right: -60px; bottom: -80px; width: 300px; opacity: .07; pointer-events: none; filter: grayscale(.2); }
.cta .btn-row { position: relative; }

/* ---------- Nagłówek podstron ---------- */
.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); position: relative; }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 80px); letter-spacing: -.045em; line-height: 1; margin: 22px 0 22px; max-width: 16ch; }
.page-hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; margin: 0; }
.breadcrumbs { font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: var(--muted); } .breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { opacity: .5; }

/* ---------- O mnie ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; } }
.about-card {
	position: sticky; top: calc(var(--header-h) + 24px); align-self: start;
	padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
	display: grid; gap: 20px; text-align: left;
}
.about-card__avatar { width: 120px; height: 120px; border-radius: 28px; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(247,147,30,.25), transparent), var(--bg-2); border: 1px solid var(--line-strong); overflow: hidden; }
.about-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-card__avatar img.is-logo { width: 82%; height: auto; object-fit: contain; }
.about-card h2 { font-size: 30px; margin: 0; }
.about-card dl { margin: 0; display: grid; gap: 12px; }
.about-card dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.about-card dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.about-card dd { margin: 0; color: #d9cfc2; }
@media (max-width: 959px) { .about-card { position: static; } }

.prose { font-size: 18px; color: #ddd3c6; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.8em; color: var(--text); }
.prose h3 { font-size: 22px; margin-top: 1.6em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--amber); color: var(--text); font-size: 1.1em; }
.prose img { border-radius: var(--radius-sm); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.lead-big { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; color: var(--text); letter-spacing: -.015em; }

.values { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
@media (min-width: 700px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.value h3 { font-size: 18px; margin: 14px 0 8px; }
.value p { color: var(--muted); font-size: 15px; margin: 0; }
.value .icon-box { width: 44px; height: 44px; border-radius: 12px; }
.value .icon-box svg { width: 22px; height: 22px; }

.skills { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .skills { grid-template-columns: repeat(4, 1fr); } }
.skill-group { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.skill-group h3 { font-size: 13px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); font-weight: 500; margin-bottom: 18px; }
.skill-group ul { list-style: none; display: grid; gap: 10px; }
.skill-group li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.skill-group li:last-child { border-bottom: 0; padding-bottom: 0; }
.skill-group li small { white-space: nowrap; font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.skill-group--learning { background: transparent; border-style: dashed; }

/* ---------- Usługi (podstrona) ---------- */
.service-block { display: grid; grid-template-columns: 1fr; gap: 32px; padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.service-block:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .service-block { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.service-block__head { align-self: start; }
@media (min-width: 960px) { .service-block__head { position: sticky; top: calc(var(--header-h) + 24px); } }
.service-block__head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 18px 0 16px; }
.service-block__head p { color: var(--muted); }
.service-items { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .service-items { grid-template-columns: repeat(2, 1fr); } }
.service-item { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s; }
.service-item:hover { border-color: rgba(247, 147, 30, .28); }
.service-item h3 { font-size: 19px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.service-item h3 svg { width: 20px; height: 20px; color: var(--amber); flex: none; }
.service-item p { color: var(--muted); font-size: 15.5px; margin: 0; }
.service-item--wide { grid-column: 1 / -1; }
.service-note { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--grad-soft); border: 1px solid rgba(247, 147, 30, .2); font-size: 15px; color: #e9dfd2; }
.service-note a { color: var(--gold); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.toc a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 15px; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); border-color: var(--amber); }
.toc a svg { width: 16px; height: 16px; color: var(--amber); }

/* ---------- Pojedyncza realizacja ---------- */
.project-hero__media { position: relative; aspect-ratio: 16 / 8; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); margin-top: 48px; background: var(--surface-2); }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero__media .cover { padding: 6% 14% 0; }
@media (max-width: 700px) { .project-hero__media { aspect-ratio: 4 / 3; } .project-hero__media .cover { padding: 8% 6% 0; } }
.project-layout { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 960px) { .project-layout { grid-template-columns: 1fr 340px; gap: 72px; } }
.project-facts { align-self: start; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 18px; }
@media (min-width: 960px) { .project-facts { position: sticky; top: calc(var(--header-h) + 24px); } }
.project-facts dl { margin: 0; display: grid; gap: 0; }
.project-facts dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.project-facts dl > div:first-child { padding-top: 0; }
.project-facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.project-facts dd { margin: 0; color: var(--text); font-size: 15.5px; }
.project-facts .btn { width: 100%; }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-nav a { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); display: grid; gap: 6px; transition: border-color .25s; }
.project-nav a:hover { border-color: rgba(247, 147, 30, .3); }
.project-nav small { font-family: var(--font-mono); font-size: 12px; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.project-nav strong { font-size: 18px; }
.project-nav .next { text-align: right; grid-column: 2; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list a, .contact-list > li > div {
	display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center;
	padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .25s;
}
.contact-list a:hover { border-color: rgba(247, 147, 30, .3); }
.contact-list .icon-box { width: 48px; height: 48px; border-radius: 12px; }
.contact-list .icon-box svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.contact-list strong { font-weight: 500; font-size: 16.5px; word-break: break-word; }

.form-card { padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: #d9cfc2; }
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
	width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-strong);
	font-size: 16px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a99d8e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(247, 147, 30, .14); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips label { cursor: pointer; position: relative; }
.topic-chips input { position: absolute; opacity: 0; pointer-events: none; }
.topic-chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14.5px; color: var(--muted); transition: all .2s; }
.topic-chips input:checked + span { background: rgba(247, 147, 30, .14); border-color: var(--amber); color: var(--gold); }
.topic-chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--amber); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form-actions small { color: var(--dim); font-size: 13px; }
.notice { padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; font-size: 15.5px; border: 1px solid; }
.notice--ok { background: rgba(123, 216, 143, .08); border-color: rgba(123, 216, 143, .35); color: #bfeccb; }
.notice--err { background: rgba(241, 90, 36, .08); border-color: rgba(241, 90, 36, .4); color: #ffc4ad; }

/* ---------- Wpisy / strony ogólne ---------- */
.content-narrow { max-width: 760px; }
.post-list { display: grid; gap: 16px; }
.post-item { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.post-item h2 { font-size: 24px; margin-bottom: 8px; }
.post-item time { font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); }
.pagination { display: flex; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--muted); }
.pagination .current { background: var(--text); color: var(--bg); border-color: var(--text); }

.error-404 { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.error-404 .big { font-size: clamp(110px, 22vw, 260px); font-weight: 700; letter-spacing: -.06em; line-height: .9; margin: 0; }
.error-404 img { width: 120px; margin: 0 auto 24px; }
.error-404 p { color: var(--muted); max-width: 44ch; margin: 18px auto 32px; }

/* ---------- Stopka ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg) 0%, #080706 100%); position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 40px; padding: clamp(56px, 7vw, 88px) 0 48px; }
@media (min-width: 700px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer-brand p { color: var(--muted); font-size: 15.5px; max-width: 34ch; margin: 18px 0 22px; }
.footer-col h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #d9cfc2; font-size: 15.5px; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: #d9cfc2; font-size: 15.5px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--amber); flex: none; margin-top: 4px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); transition: all .2s; }
.socials a:hover { color: #170e04; background: var(--grad); border-color: transparent; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: var(--text); }
.footer-word {
	font-size: clamp(56px, 12vw, 190px); font-weight: 700; letter-spacing: -.06em; line-height: .78;
	white-space: nowrap; text-align: center; padding-top: 8px; user-select: none; pointer-events: none;
	background: linear-gradient(180deg, rgba(244, 226, 200, .08), rgba(244, 226, 200, 0) 85%);
	-webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
	margin-bottom: -0.12em;
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.to-top svg { width: 14px; height: 14px; transform: rotate(-90deg); }

/* ---------- WordPress ---------- */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; }
.wp-block-button__link { background: var(--grad); color: #170e04 !important; border-radius: 999px; text-decoration: none !important; font-weight: 600; }
.wp-block-image img { border-radius: var(--radius-sm); }
.wp-block-separator { border-color: var(--line); }
.wp-block-gallery { gap: 12px; }

/* ---------- Animacje wejścia ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

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