/* Siła Idei – Scroll Demo */
:root {
	--bg: #07080d;
	--bg-2: #0d0f18;
	--ink: #f2f0ea;
	--muted: #9aa0b4;
	--line: rgba(255, 255, 255, 0.09);
	--amber: #ffc45c;
	--cool: #8fa8ff;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--bg); }

body.sid-demo {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.sid-demo a { color: inherit; text-decoration: none; }
body.sid-demo em { font-style: italic; color: var(--amber); }

/* ---------- Nawigacja ---------- */
.sid-nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px clamp(20px, 4vw, 56px);
	transition: background .4s, backdrop-filter .4s, padding .4s;
}
body.admin-bar .sid-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sid-nav { top: 46px; } }

.sid-nav.is-solid {
	background: rgba(7, 8, 13, 0.72);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	padding-top: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}
.sid-logo {
	font-family: var(--serif);
	font-size: 22px;
	letter-spacing: .01em;
}
.sid-logo span { color: var(--amber); margin-left: 3px; font-style: italic; }
.sid-nav nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.sid-nav nav a:hover { color: var(--ink); }

.sid-progress {
	position: fixed;
	left: 0; right: 0; top: 0;
	height: 2px;
	z-index: 60;
	pointer-events: none;
}
.sid-progress i {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--cool), var(--amber));
	transform-origin: 0 50%;
	transform: scaleX(0);
}

/* ---------- Scena przypięta ---------- */
.sid-scene {
	position: relative;
	height: 620vh;
}
.sid-stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 66% 50%, #121526 0%, var(--bg) 62%);
}
.sid-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}
.sid-vignette {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(7, 8, 13, .78) 0%, rgba(7, 8, 13, 0) 48%),
		radial-gradient(ellipse at center, rgba(7, 8, 13, 0) 55%, rgba(7, 8, 13, .7) 100%);
}

.sid-copy {
	position: absolute;
	left: clamp(22px, 6vw, 96px);
	top: 50%;
	width: min(660px, 50vw);
	transform: translateY(-50%);
	opacity: 0;
	will-change: opacity, transform;
	pointer-events: none;
}
.sid-copy h1,
.sid-copy h2 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.01em;
}
.sid-copy h1 { font-size: clamp(36px, 4.7vw, 76px); }
.sid-copy h2 { font-size: clamp(32px, 4.2vw, 64px); }

.sid-kicker {
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--amber);
}
.sid-hint {
	margin: 34px 0 0;
	font-size: 14px;
	color: var(--muted);
	display: flex;
	align-items: center;
	gap: 12px;
}
.sid-hint::before {
	content: "";
	width: 1px; height: 38px;
	background: linear-gradient(var(--amber), transparent);
	animation: sid-drip 2s ease-in-out infinite;
	transform-origin: 50% 0;
}
@keyframes sid-drip {
	0% { transform: scaleY(0); opacity: 0; }
	40% { opacity: 1; }
	100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Sekcje po scenie ---------- */
.sid-block { position: relative; padding: clamp(80px, 14vh, 160px) 0; }
.sid-wrap { width: min(1120px, 88vw); margin: 0 auto; }
.sid-block h2 {
	margin: 0 0 24px;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(34px, 4.6vw, 68px);
	line-height: 1.08;
	letter-spacing: -.01em;
}
.sid-lead { max-width: 640px; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); }

.sid-manifest { background: linear-gradient(var(--bg), var(--bg-2)); }

.sid-articles { background: var(--bg-2); }
.sid-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 48px;
}
.sid-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	min-height: 280px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
	transition: transform .35s ease, border-color .35s, background .35s;
}
.sid-card:hover {
	transform: translateY(-6px);
	border-color: rgba(255, 196, 92, .5);
	background: linear-gradient(160deg, rgba(255, 196, 92, .09), rgba(255, 255, 255, .01));
}
.sid-cat {
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--cool);
}
.sid-card h3 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	font-size: 26px;
	line-height: 1.2;
}
.sid-card p { margin: 0; color: var(--muted); font-size: 15px; }
.sid-more { margin-top: auto; color: var(--amber); font-size: 14px; }

.sid-cta {
	text-align: center;
	background:
		radial-gradient(ellipse at 50% 100%, rgba(255, 196, 92, .18), transparent 60%),
		var(--bg-2);
}
.sid-btn {
	display: inline-block;
	margin-top: 12px;
	padding: 16px 34px;
	border-radius: 999px;
	background: var(--amber);
	color: #14100a !important;
	font-weight: 600;
	transition: transform .25s, box-shadow .25s;
}
.sid-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255, 196, 92, .35); }

.sid-footer {
	padding: 36px 20px;
	text-align: center;
	font-size: 13px;
	color: var(--muted);
	border-top: 1px solid var(--line);
	background: var(--bg-2);
}
.sid-footer p { margin: 0; }

/* ---------- Pojawianie się elementów ---------- */
[data-reveal] {
	opacity: 0;
	translate: 0 28px;
	transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), translate .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; translate: 0 0; }
.sid-card[data-reveal] {
	transition:
		opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms),
		translate .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms),
		transform .18s ease-out 0s,
		border-color .35s ease 0s,
		background .35s ease 0s;
}
.sid-btn[data-reveal] {
	transition:
		opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms),
		translate .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms),
		transform .25s ease-out 0s,
		box-shadow .25s ease 0s;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	.sid-scene { height: 560vh; }
	.sid-copy {
		top: auto;
		bottom: 9vh;
		left: 22px;
		right: 22px;
		width: auto;
		transform: none;
	}
	.sid-copy h1 { font-size: clamp(34px, 9vw, 54px); }
	.sid-copy h2 { font-size: clamp(28px, 7.4vw, 44px); }
	.sid-vignette {
		background:
			linear-gradient(0deg, rgba(7, 8, 13, .92) 0%, rgba(7, 8, 13, 0) 52%),
			radial-gradient(ellipse at center, rgba(7, 8, 13, 0) 55%, rgba(7, 8, 13, .6) 100%);
	}
	.sid-nav nav { gap: 18px; }
}

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { transition: none; opacity: 1; translate: 0 0; }
	.sid-copy .sid-wi { animation: none !important; }
	.sid-marquee-in { transform: none !important; }
	.sid-hint::before { animation: none; }
}

/* ---------- Słowa w napisach ---------- */
.sid-w { display: inline-block; white-space: nowrap; }
.sid-wi { display: inline-block; will-change: transform, opacity, filter; }
.sid-copy[data-step="0"] .sid-wi {
	animation: sid-word-in 1.1s cubic-bezier(.2, .7, .2, 1) both;
	animation-delay: calc(var(--j, 0) * 110ms + 250ms);
}
@keyframes sid-word-in {
	from { opacity: 0; transform: translateY(.6em); filter: blur(10px); }
	to   { opacity: 1; transform: none; filter: blur(0); }
}
.sid-copy[data-step="0"] .sid-kicker,
.sid-copy[data-step="0"] .sid-hint { animation: sid-fade 1.2s ease both; animation-delay: .1s; }
.sid-copy[data-step="0"] .sid-hint { animation-delay: 1.5s; }
@keyframes sid-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Pasek z hasłami ---------- */
.sid-marquee {
	overflow: hidden;
	padding: 26px 0;
	background: var(--bg-2);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.sid-marquee-in {
	display: inline-flex;
	align-items: center;
	gap: 38px;
	white-space: nowrap;
	will-change: transform;
}
.sid-marquee-in span,
.sid-marquee-in a {
	font-family: var(--serif);
	font-size: clamp(38px, 6vw, 88px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgba(242, 240, 234, .38);
}
.sid-marquee-in span:nth-of-type(2n),
.sid-marquee-in a:nth-of-type(2n) { color: var(--ink); -webkit-text-stroke: 0; }
.sid-marquee-in a { text-decoration: none; transition: color .25s, -webkit-text-stroke-color .25s, transform .25s; }
.sid-marquee-in a:hover,
.sid-marquee-in a:focus-visible { color: var(--amber); -webkit-text-stroke: 0; outline: none; transform: translateY(-3px); }
.sid-marquee--cats { display: block; }
.sid-marquee-in i { color: var(--amber); font-style: normal; font-size: clamp(20px, 2.4vw, 34px); }

/* ---------- Karty: poświata za kursorem ---------- */
.sid-card { position: relative; overflow: hidden; transform-style: preserve-3d; }
.sid-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 196, 92, .16), transparent 70%);
	opacity: 0;
	transition: opacity .3s;
	pointer-events: none;
}
.sid-card:hover::before { opacity: 1; }

/* ---------- Newsletter na początku ---------- */
.sid-news {
	position: relative;
	padding: clamp(60px, 9vh, 100px) clamp(20px, 4vw, 56px);
	background:
		radial-gradient(ellipse at 50% 120%, rgba(255, 196, 92, .12), transparent 60%),
		var(--bg-2);
	border-top: 1px solid var(--line);
}
.sid-news-in {
	width: min(1120px, 100%);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
	gap: 20px 48px;
	align-items: center;
}
.sid-news h2 {
	margin: 0 0 6px;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.1;
	letter-spacing: -.01em;
}
.sid-news-copy p { margin: 0; color: var(--muted); font-size: 15px; }
.sid-news-copy .sid-kicker { margin-bottom: 10px; color: var(--amber); }
.sid-news-form { min-width: 0; }
.sid-news-note { margin: 0; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); padding: 12px 14px; border-radius: 10px; }
/* formularz MailPoet w ciemnym wydaniu */
.sid-news .mailpoet_form,
.sid-news .mailpoet_form_widget { margin: 0; padding: 0; }
.sid-news .mailpoet_form form { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.sid-news .mailpoet_paragraph { margin: 0 !important; flex: 1 1 220px; }
.sid-news .mailpoet_paragraph.last { flex: 0 0 auto; }
.sid-news input[type="email"],
.sid-news input[type="text"] {
	width: 100%;
	padding: 14px 16px;
	color: var(--ink);
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--line);
	border-radius: 999px;
	font: inherit;
	outline: none;
	transition: border-color .25s, background .25s;
}
.sid-news input[type="email"]:focus,
.sid-news input[type="text"]:focus { border-color: var(--amber); background: rgba(255, 255, 255, .1); }
.sid-news input::placeholder { color: var(--muted); }
.sid-news input[type="submit"],
.sid-news button[type="submit"],
.sid-news .mailpoet_submit {
	padding: 14px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--amber);
	color: #14100a;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform .25s, box-shadow .25s;
}
.sid-news input[type="submit"]:hover,
.sid-news .mailpoet_submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 196, 92, .3); }
.sid-news .mailpoet_validate_success,
.sid-news .mailpoet_validate_error { margin: 8px 0 0; font-size: 14px; color: var(--ink); }
.sid-news label,
.sid-news .mailpoet_text_label { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .sid-news-in { grid-template-columns: 1fr; } }

/* ---------- Reklamy (obszary motywu) w ciemnym wydaniu ---------- */
.sid-ad { width: min(1120px, calc(100% - 40px)); margin: 24px auto; text-align: center; overflow: hidden; }
.sid-ad img, .sid-ad iframe, .sid-ad ins { max-width: 100%; }
/* reklama pod menu: odstęp od stałego paska nawigacji */
.sid-ad.sila-placement--after-header { margin-top: 92px; }
body.admin-bar .sid-ad.sila-placement--after-header { margin-top: 124px; }
