/* ==========================================================================
   Smart City PW — style motywu
   Papier, tusz i sześć kolorów linii. Krój „Linia” (własny) na oznaczeniach,
   Schibsted Grotesk w tekście, Fragment Mono w metadanych.
   ========================================================================== */

:root {
	--paper: #EDEBE5;
	--paper-2: #E3E0D8;
	--card: #F7F6F2;
	--ink: #141414;
	--ink-2: #383733;
	--muted: #6B6860;
	--rule: #C9C5BA;

	--l1: #1D5FD1;
	--l2: #F2B705;
	--l3: #D7322B;
	--l4: #23864A;
	--l5: #7A55C7;
	--l6: #F07C1E;
	--pw: #8A1C2B;

	--sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--sign: 'Linia', 'Schibsted Grotesk', sans-serif;
	--mono: 'Fragment Mono', ui-monospace, Menlo, monospace;

	--container: 1280px;
	--gutter: clamp(16px, 4vw, 48px);
	--header-h: 78px;
	--radius: 18px;
	--ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Podstawy ---------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.125rem/1.55 var(--sans);
	font-kerning: normal;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	isolation: isolate;
}

/* Ziarno papieru */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: .5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .07 0 0 0 0 .05 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--l2); color: var(--ink); }

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--l1); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; hanging-punctuation: first; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; z-index: 1000;
	top: 12px; left: 12px; padding: 12px 18px; background: var(--l2); color: var(--ink); border-radius: 999px; font-weight: 600;
}

.kicker, .meta {
	font: 400 .8125rem/1.4 var(--mono);
	letter-spacing: .01em;
	color: var(--ink-2);
}
.kicker { text-transform: uppercase; letter-spacing: .04em; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.lead { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.42; letter-spacing: -.01em; color: var(--ink-2); max-width: 40ch; }

/* ---------- Oznaczenia linii ---------- */

.bullet {
	--s: 34px;
	display: inline-grid;
	place-items: center;
	flex: none;
	width: var(--s);
	height: var(--s);
	border-radius: 50%;
	background: var(--line, var(--ink));
	color: var(--line-ink, #fff);
	font: 400 calc(var(--s) * .4)/1 var(--sign);
	letter-spacing: .02em;
	padding-top: .08em;
	vertical-align: middle;
}
.bullet--sm { --s: 22px; }
.bullet--lg { --s: clamp(44px, 5vw, 64px); }
.bullet--xl { --s: clamp(54px, 11vw, 148px); font-size: calc(var(--s) * .52); }

/* ---------- Przyciski ---------- */

.btn {
	--shadow: var(--ink);
	display: inline-flex;
	align-items: center;
	gap: .55em;
	padding: .8em 1.35em .82em;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: 600 1rem/1 var(--sans);
	letter-spacing: -.005em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .2s var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shadow); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: none; box-shadow: none; }
.btn--sm { padding: .62em 1.05em .64em; font-size: .9375rem; }
.btn--ink { background: var(--ink); color: var(--paper); --shadow: var(--l2); }
.btn--outline { --shadow: var(--ink); }
.btn--paper { background: var(--paper); border-color: var(--paper); color: var(--ink); --shadow: var(--l2); }
.btn--outline-paper { border-color: var(--paper); color: var(--paper); --shadow: var(--l2); }

.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-color: var(--l1); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Nagłówek ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(237, 235, 229, .9);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	border-bottom: 2px solid var(--ink);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: block; flex: none; line-height: 0; }
.brand img { display: block; height: 54px; width: auto; }
.custom-logo-link img { display: block; max-height: 48px; width: auto; }

.nav-panel { display: flex; align-items: center; gap: 22px; }
.primary-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block; padding: 8px 12px;
	font-weight: 500; font-size: 1rem; text-decoration: none; letter-spacing: -.005em;
	border-radius: 999px;
}
.primary-nav a:hover { background: var(--paper-2); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 5;
	min-width: 220px; flex-direction: column; padding: 8px;
	background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: .18s var(--ease);
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.lang ul { display: flex; margin: 0; padding: 2px; list-style: none; border: 1.5px solid var(--ink); border-radius: 999px; }
.lang a { display: block; padding: 5px 9px 4px; border-radius: 999px; font: 400 .75rem/1 var(--mono); letter-spacing: .06em; text-decoration: none; }
.lang a:hover { background: var(--paper-2); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1040px) {
	.nav-toggle { display: grid; }
	.nav-panel {
		position: fixed; z-index: 49; inset: var(--header-h) 0 auto 0;
		height: calc(100dvh - var(--header-h));
		flex-direction: column; align-items: flex-start; gap: 28px;
		padding: 28px var(--gutter) 40px;
		background: var(--paper); border-top: 2px solid var(--ink);
		overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: .22s var(--ease);
	}
	.admin-bar .nav-panel { top: calc(var(--header-h) + 46px); height: calc(100dvh - var(--header-h) - 46px); }
	.nav-open .nav-panel { opacity: 1; visibility: visible; transform: none; }
	.nav-open .nav-toggle .icon-open { display: none; }
	.nav-open .nav-toggle .icon-close { display: block; }
	.primary-nav, .primary-nav ul { width: 100%; flex-direction: column; }
	.primary-nav a { padding: 12px 0; border-radius: 0; border-bottom: 1.5px solid var(--rule); font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
	.primary-nav a:hover { background: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: none; padding: 0 0 0 20px; }
	.primary-nav .sub-menu a { font-size: 1.25rem; }
}
@media (max-width: 480px) { .brand img { height: 44px; } }

/* ---------- Pas-drogowskaz ---------- */

.band { background: var(--ink); color: var(--paper); }
.band-inner { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); min-height: clamp(76px, 8vw, 112px); padding-block: 14px; }
.band-arrow, .band-title { font: 400 clamp(1.7rem, 3.8vw, 3.2rem)/1 var(--sign); letter-spacing: .02em; text-transform: uppercase; }
.band-arrow { color: var(--paper); }
.band-title { padding-top: .08em; }
.band-bullets { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-left: auto; }
@media (max-width: 640px) { .band-bullets { display: none; } }

/* ---------- Sekcje ---------- */

.section { padding-bottom: clamp(72px, 10vw, 136px); }
.section > .container { margin-top: clamp(44px, 6vw, 88px); }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section--tight > .container { margin-top: 0; }

/* ---------- Baner ---------- */

.hero {
	position: relative;
	isolation: isolate;
	overflow: clip;
	display: flex;
	flex-direction: column;
	min-height: min(calc(100svh - var(--header-h)), 920px);
	border-bottom: 2px solid var(--ink);
}

.hero-net { position: absolute; inset: -8%; z-index: -2; pointer-events: none; }
.hero-net-far, .hero-net-near { position: absolute; inset: 0; will-change: transform; }
.hero-net svg { width: 100%; height: 100%; }
.hero-net-far {
	opacity: .38;
	filter: blur(16px);
	transform: scale(1.55) rotate(-8deg);
	animation: net-far 90s ease-in-out infinite alternate;
}
.hero-net-near {
	filter: blur(3px);
	translate: calc(var(--px, 0) * -28px) calc(var(--py, 0) * -18px);
	animation: net-near 70s ease-in-out infinite alternate;
	transition: translate .6s var(--ease);
}
@keyframes net-near {
	0%   { transform: translate3d(4%, -2%, 0) scale(1.18); }
	50%  { transform: translate3d(-3%, 2%, 0) scale(1.24); }
	100% { transform: translate3d(-8%, -3%, 0) scale(1.2); }
}
@keyframes net-far {
	0%   { transform: translate3d(-6%, 4%, 0) scale(1.55) rotate(-8deg); }
	100% { transform: translate3d(6%, -4%, 0) scale(1.6) rotate(-5deg); }
}

.net { display: block; overflow: hidden; }
.hero-net .net { overflow: visible; }
.net path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.net .net-casing { stroke: var(--paper); }
.net .net-pulse { stroke: #fff; stroke-dasharray: 1 46; opacity: .85; animation: pulse-run 2.6s linear infinite; }
.net .net-line:nth-child(2n) .net-pulse { animation-duration: 3.4s; animation-direction: reverse; }
@keyframes pulse-run { to { stroke-dashoffset: -47; } }
.net .net-train > rect:first-child { fill: var(--ink); }
.net .net-train-light { fill: var(--l2); }
.net .net-interchange { fill: var(--paper); stroke: var(--ink); stroke-width: 5; }
.net .net-hub { fill: var(--paper); stroke: var(--ink); stroke-width: 8; }

.hero-veil {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(ellipse 58% 72% at 26% 50%, rgba(237, 235, 229, .94) 0%, rgba(237, 235, 229, .82) 42%, rgba(237, 235, 229, 0) 78%),
		linear-gradient(180deg, rgba(237, 235, 229, .55) 0%, rgba(237, 235, 229, 0) 22%, rgba(237, 235, 229, 0) 78%, rgba(237, 235, 229, .7) 100%);
}

.hero-inner { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); margin-block: auto; }
.hero .kicker { margin-bottom: clamp(18px, 2.4vw, 28px); max-width: 72ch; }
.hero-title {
	max-width: 13ch;
	font-size: clamp(2.3rem, 10.2vw, 8rem);
	font-weight: 800;
	line-height: .92;
	letter-spacing: -.048em;
	margin-bottom: clamp(22px, 2.6vw, 34px);
}
.lang-fr .hero-title, .lang-en .hero-title { max-width: 12ch; }
.hero-lead { max-width: 44ch; margin-bottom: 32px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--ink-2); }

/* Ręcznie rysowana obwódka */
.nowrap { white-space: nowrap; }
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble-svg { position: absolute; left: -7%; top: -12%; width: 114%; height: 130%; overflow: visible; pointer-events: none; }
.scribble-svg path {
	fill: none; stroke: var(--l1); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
	vector-effect: non-scaling-stroke; opacity: .85;
	stroke-dasharray: 1; stroke-dashoffset: 1;
	animation: draw 1.3s .5s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Tablica odjazdów */
.departures {
	display: flex; align-items: stretch;
	background: var(--ink); color: var(--paper);
	text-decoration: none;
	border-top: 2px solid var(--ink);
}
.departures-label {
	display: flex; align-items: center; gap: 10px; flex: none;
	padding: 16px var(--gutter);
	font: 400 .8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
	border-right: 1.5px solid rgba(255, 255, 255, .18);
}
.blink { width: 9px; height: 9px; border-radius: 50%; background: var(--l2); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.departures-board { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; padding: 14px 24px; min-width: 0; }
.departures-title { font: 400 clamp(1.15rem, 2.2vw, 1.7rem)/1.1 var(--sign); text-transform: uppercase; letter-spacing: .03em; color: #FFC21A; }
.departures-meta { font: 400 .875rem/1.3 var(--mono); color: #B9B5AB; }
.departures-arrow { display: grid; place-items: center; margin-left: auto; padding: 0 var(--gutter); font: 400 1.6rem/1 var(--sign); transition: transform .2s var(--ease); }
.departures:hover .departures-arrow { transform: translateX(6px); }
@media (max-width: 640px) {
	.departures { flex-wrap: wrap; }
	.departures-label { width: 100%; border-right: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .18); padding-block: 12px; }
	.departures-board { padding-inline: var(--gutter); }
	.departures-arrow { display: none; }
}

/* ---------- Trasa: pełnoekranowe przystanki ---------- */

html:has(.stage) { scroll-snap-type: y proximity; }
.stage { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); scroll-snap-align: start; }
.admin-bar .stage { min-height: calc(100svh - var(--header-h) - 32px); }
.stage > section { display: flex; flex-direction: column; flex: 1; }
.stage > .section { padding-bottom: 0; }
.stage > .join { padding-bottom: 0; }
.stage > section > .container { width: 100%; }
.stage > .hero { min-height: 0; }

.next-stop-wrap {
	/* Przyklejony do dołu ekranu, dopóki widać sekcję — nie chowa się pod krawędzią na wysokich sekcjach. */
	position: sticky; bottom: clamp(12px, 2.2vh, 22px); z-index: 30;
	display: flex; justify-content: center;
	margin: auto 0 clamp(14px, 2vh, 22px); padding-top: clamp(28px, 4vw, 48px);
	pointer-events: none;
}
.hero-next { position: sticky; bottom: clamp(12px, 2.2vh, 22px); z-index: 30; margin-bottom: clamp(14px, 2vh, 22px); pointer-events: none; }
.hero-next .next-stop-wrap { position: static; margin: 0; padding-top: 0; }
.next-stop {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 6px 6px 6px 18px;
	background: var(--paper); color: var(--ink);
	border: 2px solid var(--ink); border-radius: 999px;
	box-shadow: 4px 4px 0 var(--ink);
	text-decoration: none; pointer-events: auto;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.next-stop:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.join .next-stop { box-shadow: 4px 4px 0 var(--l2); }
.join .next-stop:hover { box-shadow: 6px 6px 0 var(--l2); }
.next-label { font: 400 .72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.next-name { font: 400 1.05rem/1 var(--sign); text-transform: uppercase; letter-spacing: .04em; padding-top: .12em; }
.next-arrow {
	display: grid; place-items: center; width: 38px; height: 38px;
	border-radius: 50%; background: var(--ink); color: var(--paper);
	font: 400 1.05rem/1 var(--sign);
}
.next-arrow { animation: nudge 2.4s var(--ease) infinite; }
.next-stop:hover .next-arrow, .next-stop--last .next-arrow { animation: none; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(3px); } }
@media (max-width: 480px) { .next-label { display: none; } }

/* Pasek trasy (jak wyświetlacz w tramwaju) */
.route { position: fixed; z-index: 40; right: clamp(10px, 1.4vw, 24px); top: 50%; transform: translateY(-50%); }
.route ol { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.route ol::before { content: ""; position: absolute; top: 6px; bottom: 6px; right: 6px; width: 4px; border-radius: 2px; background: var(--ink); opacity: .85; }
.route a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; }
.route a::after { content: ""; position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); transition: transform .2s var(--ease), background-color .2s; }
.route a.is-past::after { background: var(--ink); }
.route a.is-current::after { background: var(--l2); transform: scale(1.35); }
.route span {
	padding: 3px 8px 2px; border-radius: 6px; background: var(--ink); color: var(--paper);
	font: 400 .75rem/1.2 var(--sign); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
	opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s var(--ease); pointer-events: none;
}
.route a:hover span, .route a:focus-visible span, .route a.is-current span { opacity: 1; transform: none; }
.route a.is-current span { background: var(--l2); color: var(--ink); }
.route.on-dark ol::before { background: var(--paper); }
.route.on-dark a::after { border-color: var(--paper); background: var(--ink); }
.route.on-dark a.is-current::after { background: var(--l2); }
@media (max-width: 1100px) { .route { display: none; } }

/* ---------- O nas ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 104px); align-items: start; }
.about-intro { max-width: 34ch; margin-bottom: clamp(32px, 4vw, 52px); font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.milestones { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.milestone { display: grid; grid-template-columns: clamp(80px, 9vw, 120px) minmax(0, 1fr); gap: 20px; padding: 16px 0 18px; border-bottom: 1.5px solid var(--rule); }
.milestone-year { font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1 var(--sign); padding-top: 3px; }
.milestone p { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 54ch; }

.masthead { padding-top: 6px; }
.masthead-title { margin-bottom: 14px; font: 400 .8125rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.masthead dl { margin: 0 0 22px; border-top: 2px solid var(--ink); }
.masthead-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding: 12px 0; border-bottom: 1.5px solid var(--rule); }
.masthead-row:first-child { padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.masthead dt { font: 400 .8125rem/1.4 var(--mono); color: var(--muted); }
.masthead dd { margin: 0; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Mapa ---------- */

.map-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(24px, 3vw, 40px); }
.map-hint { display: flex; align-items: flex-end; gap: 6px; margin-right: 6%; color: var(--l1); font: 400 1rem/1 var(--mono); transform: rotate(-3deg); }
.hand-arrow { width: 110px; height: 70px; order: 2; transform: rotate(12deg); margin: 0 0 -52px -4px; }
.hand-arrow path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-visible .hand-arrow path, .map-intro.is-visible .hand-arrow path { animation: draw 1s .3s var(--ease) forwards; }

.map-figure { margin: 0; padding: clamp(10px, 2vw, 24px); background: var(--card); border: 2px solid var(--ink); border-radius: calc(var(--radius) + 6px); }
.map-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border-radius: var(--radius); }
.net--map { width: 100%; min-width: 860px; }
.net--map .net-casing { stroke: var(--card); }
.net--map .net-line, .net--map .net-stop { transition: opacity .25s; }
.net--map .net-hub-label { font: 400 21px var(--sign); letter-spacing: .04em; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 8px; stroke-linejoin: round; }
.net--map .net-bullet text { font: 400 17px var(--sign); text-anchor: middle; dominant-baseline: central; }
.net--map .net-station { fill: #fff; stroke-width: 5; transition: transform .2s var(--ease); transform-box: fill-box; transform-origin: center; }
.net--map .net-label { font: 400 17px var(--mono); fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 7px; stroke-linejoin: round; }
.net--map .net-stop { cursor: pointer; outline: none; }
.net--map .net-stop:hover .net-station, .net--map .net-stop:focus-visible .net-station { transform: scale(1.5); fill: var(--line); }
.net--map .net-stop:hover .net-label, .net--map .net-stop:focus-visible .net-label { text-decoration: underline; }
.map-figure.is-focused .net-line:not(.is-on), .map-figure.is-focused .net-stop:not(.is-on) { opacity: .14; }

.map-key { gap: 8px 28px; margin-top: 16px; }
.map-key span { display: inline-flex; align-items: center; gap: 8px; }
.key-stop, .key-hub { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--l1); }
.key-stop--planned { border-style: dashed; border-width: 3px; border-color: var(--ink); background: var(--card); }
.key-hub { border-color: var(--ink); }
.net--map .net-stop.is-planned .net-station { fill: var(--card); stroke-dasharray: 5 4; stroke-width: 4; }

.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; list-style: none; }
.legend-item { display: flex; gap: 16px; padding-top: 16px; border-top: 3px solid var(--line); }
.legend-name { font-size: 1.25rem; margin-bottom: 6px; }
.legend-name a { text-decoration: none; }
.legend-name a:hover { text-decoration: underline; }
.legend-item p:not(.meta) { font-size: 1rem; line-height: 1.5; color: var(--ink-2); margin-bottom: 8px; }

/* ---------- Projekty ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); }
.filter {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px 6px 6px; border: 1.5px solid var(--ink); border-radius: 999px;
	background: transparent; color: var(--ink);
	font: 500 .9375rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s;
}
.filter:first-child { padding-left: 14px; }
.filter:hover { background: var(--paper-2); }
.filter.is-active { background: var(--ink); color: var(--paper); }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.project.is-hidden { display: none; }
.project-link {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: var(--card); color: inherit; text-decoration: none;
	border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
a.project-link:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--line); }
.project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media > .bullet { position: absolute; top: 16px; right: 16px; box-shadow: 0 0 0 3px var(--card); }
.project-media--poster > .bullet { background: var(--line-ink); color: var(--line); box-shadow: none; }
.project-media--poster { background: var(--line); color: var(--line-ink); }
.poster-title {
	position: absolute; left: 22px; right: 70px; top: 20px;
	font: 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.06 var(--sign); text-transform: uppercase; letter-spacing: .02em;
	overflow-wrap: anywhere;
}
.poster-track { position: absolute; left: -10px; right: -10px; bottom: 30px; height: 12px; background: var(--line-ink); border-radius: 6px; }
.poster-track i { position: absolute; left: 58%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--line); border: 8px solid var(--line-ink); transition: left .5s var(--ease); }
a.project-link:hover .poster-track i { left: 72%; }

.project-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.project-body .meta { margin-bottom: 10px; }
.project-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; }
.project-excerpt { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.project-award { margin-top: auto; padding-top: 16px; font-size: .9375rem; line-height: 1.4; }
.project-excerpt + .project-award { margin-top: 18px; border-top: 1.5px dashed var(--rule); }
.project-award span { color: #C98F00; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 2px; border: 1.5px solid currentColor; border-radius: 999px; line-height: 1.3; }
.status--w-realizacji { color: var(--l4); }
.status--w-realizacji::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s steps(2, start) infinite; }

/* ---------- Plany rozbudowy (pomysły) ---------- */

.ideas-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.ideas-intro .lead { max-width: 46ch; }
.idea-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.idea { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 22px 0 24px; border-top: 2px dashed var(--ink); }
.idea-stop { width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; border: 4px dashed var(--line); background: var(--card); }
.idea .meta { gap: 8px; margin-bottom: 6px; }
.idea-title { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 6px; }
.idea-title a { text-decoration: none; }
.idea-title a:hover { text-decoration: underline; }
.idea p:not(.meta) { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }

/* ---------- Zarząd ---------- */

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 1.4em; }
.person { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 2px solid var(--ink); }
.person--lead { grid-column: 1 / -1; }
.person-name { margin: 0 0 4px; font-size: 1.25rem; }
.entry .person-name { margin-top: 0; }
.person .meta { font-size: .875rem; }
@media (max-width: 640px) { .team-grid, .idea-list { grid-template-columns: minmax(0, 1fr); } }

.join-note { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem !important; color: var(--paper) !important; }
.join-note .bullet { margin-top: 2px; font-size: 13px; }

/* ---------- Rozkład jazdy ---------- */

.timeline { --date: clamp(150px, 22vw, 290px); position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: calc(var(--date) + 17px); width: 8px; border-radius: 4px; background: var(--ink); }
.stop { position: relative; display: grid; grid-template-columns: var(--date) 42px minmax(0, 1fr); column-gap: 24px; padding-bottom: clamp(36px, 4vw, 56px); }
.stop:last-child { padding-bottom: 0; }
.stop-dot { grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; background: var(--card); border: 8px solid var(--ink); }
.stop-date { grid-column: 1; grid-row: 1; padding-top: 7px; text-align: right; font: 400 clamp(1.05rem, 1.8vw, 1.45rem)/1.15 var(--sign); text-transform: uppercase; letter-spacing: .02em; }
.stop-body { grid-column: 3; grid-row: 1; padding-top: 4px; max-width: 58ch; }
.stop-title { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; margin-bottom: 6px; }
.stop-title a { text-decoration: none; }
.stop-title a:hover { text-decoration: underline; }
.stop-body .meta { margin-bottom: 8px; }
.stop-body p:not(.meta):not(.stop-flag) { color: var(--ink-2); }
.stop-flag { display: inline-block; margin-bottom: 10px; padding: 5px 9px 3px; border-radius: 6px; background: var(--l2); font: 400 .8rem/1 var(--sign); letter-spacing: .06em; text-transform: uppercase; }
.stop.is-past .stop-date, .stop.is-past .stop-body { opacity: .55; }
.stop.is-past .stop-dot { border-color: var(--muted); }
.stop.is-next .stop-dot { background: var(--l2); animation: ring 2s var(--ease) infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(242, 183, 5, .7); } 100% { box-shadow: 0 0 0 18px rgba(242, 183, 5, 0); } }

/* ---------- Komunikaty ---------- */

.news-list { margin: 0; padding: 0; list-style: none; border-bottom: 2px solid var(--ink); }
.news-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 8px 32px; align-items: start; padding: clamp(20px, 2.4vw, 30px) 0; border-top: 2px solid var(--ink); }
.news-row .meta { padding-top: 6px; }
.news-title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.028em; margin-bottom: 6px; }
.news-title a { text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.news-title a:hover { background-size: 100% 2px; }
.news-row p { color: var(--ink-2); max-width: 64ch; }
.news-thumb { display: block; width: 168px; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid var(--ink); border-radius: 12px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Rekrutacja ---------- */

.join { background: var(--ink); color: var(--paper); padding-block: clamp(72px, 10vw, 140px); overflow: clip; }
.join-word { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(8px, 1.4vw, 18px); margin-bottom: clamp(44px, 6vw, 80px); }
.join-arrow { font: 400 clamp(3rem, 9vw, 8rem)/1 var(--sign); color: #6B6860; margin-left: .1em; }
.js .join-word .bullet { transform: translateY(40%) scale(.6); opacity: 0; transition: transform .6s var(--ease), opacity .4s; transition-delay: calc(var(--i) * 70ms); }
.js .join-word.is-visible .bullet { transform: none; opacity: 1; }
.join-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.join-title { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.join-copy p { font-size: 1.1875rem; color: #CFCBC1; margin-bottom: 28px; max-width: 46ch; }

/* ---------- Partnerzy: pasek logotypów ---------- */

.partners { padding-block: clamp(44px, 6vw, 80px) 0; border-bottom: 2px solid var(--ink); }
.partners .kicker { margin: 0 0 clamp(22px, 3vw, 34px); }
.marquee {
	display: flex; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
	display: flex; flex: none; align-items: center; justify-content: space-around;
	gap: clamp(48px, 6vw, 96px); min-width: 100%;
	margin: 0; padding: 10px clamp(24px, 3vw, 48px); list-style: none;
	animation: marquee calc(var(--count, 7) * 5s) linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-item { flex: none; display: flex; align-items: center; height: 64px; }
.marquee-item a { display: flex; align-items: center; height: 100%; text-decoration: none; }
.marquee-item img {
	/* Logotypy w assets/img/partners są przygotowane w jednym kolorze tuszu. */
	display: block; width: auto; height: 44px; max-width: 190px; object-fit: contain;
	opacity: .78; transition: opacity .2s;
}
.marquee-item img.is-upload { filter: grayscale(1) contrast(1.15); } /* Kolorowe logo z biblioteki mediów. */
.marquee-item img.is-inverted { filter: brightness(0); }
.marquee-item a:hover img { opacity: 1; }
.partner-word { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; white-space: nowrap; color: var(--ink); opacity: .78; }
.marquee-item a:hover .partner-word { opacity: 1; text-decoration: underline; text-underline-offset: .2em; }
.stage > .partners .next-stop-wrap { margin-top: clamp(28px, 4vw, 52px); }
@media (prefers-reduced-motion: reduce) {
	.marquee { -webkit-mask-image: none; mask-image: none; }
	.marquee-track { flex-wrap: wrap; min-width: 0; width: 100%; animation: none; }
	.marquee-track[aria-hidden] { display: none; }
}

/* ---------- Stopka ---------- */

.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(48px, 7vw, 96px); }
.footer-mark { margin: 0 0 clamp(36px, 5vw, 64px); font: 400 clamp(2.4rem, 9.4vw, 9.5rem)/.9 var(--sign); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; padding-bottom: 48px; }
.footer-title { margin-bottom: 14px; font: 400 .8125rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #FFC21A; }
.footer-contact { font-style: normal; font-size: 1rem; line-height: 1.65; color: #D9D5CB; margin-bottom: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-menu, .site-footer .menu { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.social { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social a { display: inline-flex; align-items: center; gap: 10px; }
.social .icon { width: 20px; height: 20px; }
.lang--footer { margin-top: 20px; }
.lang--footer ul { border-color: var(--paper); display: inline-flex; }
.lang--footer a:hover { background: rgba(255, 255, 255, .1); }
.lang--footer a[aria-current] { background: var(--paper); color: var(--ink); }
.footer-widget { color: #D9D5CB; font-size: 1rem; margin-bottom: 20px; }
.footer-widget h2, .footer-widget .wp-block-heading { margin: 0 0 12px; font: 400 .8125rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #FFC21A; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 28px; border-top: 1.5px solid rgba(255, 255, 255, .18); font: 400 .8125rem/1.4 var(--mono); color: #A9A59B; }
.footer-bottom { align-items: center; }
.footer-bottom p { margin: 0; }
.footer-logo { height: 52px; width: auto; margin-right: auto; }
.footer-lines { display: flex; height: 12px; }
.footer-lines span { flex: 1; background: var(--line); }

/* ---------- Podstrony ---------- */

.page-hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 2px solid var(--ink); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 10px; background: var(--line, var(--ink)); }
.page-hero .kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.page-title { display: flex; flex-wrap: wrap; align-items: center; gap: .3em; max-width: 20ch; font-size: clamp(2.6rem, 6.8vw, 5.8rem); font-weight: 800; line-height: .94; letter-spacing: -.045em; }
.page-title .bullet { font-size: calc(var(--s) * .4); letter-spacing: .02em; }
.page-lead { max-width: 52ch; margin-top: 22px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.45; color: var(--ink-2); }

.entry { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); font-size: 1.1875rem; line-height: 1.65; }
.entry--flush { max-width: none; margin: 0; padding: 0; }
.entry > * { margin-block: 0; }
.entry > * + * { margin-top: 1.15em; }
.entry h2 { margin-top: 1.9em; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.03em; }
.entry h3 { margin-top: 1.6em; font-size: 1.4rem; }
.entry a { text-decoration-color: var(--l1); }
.entry a:hover { text-decoration-thickness: 2.5px; }
.entry blockquote { margin-inline: 0; padding: 4px 0 4px 26px; border-left: 6px solid var(--l2); font-size: 1.45rem; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.entry blockquote cite { display: block; margin-top: 10px; font: 400 .8125rem var(--mono); font-style: normal; color: var(--muted); }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li + li { margin-top: .4em; }
.entry ul li::marker { content: "● "; font-size: .7em; color: var(--l1); }
.entry hr { height: 8px; border: 0; border-radius: 4px; background: var(--ink); margin-block: 2.4em; }
.entry figcaption, .entry .wp-element-caption { margin-top: 10px; font: 400 .8125rem/1.4 var(--mono); color: var(--muted); }
.entry img { border-radius: 12px; }
.entry .alignwide { max-width: min(1120px, calc(100vw - 2 * var(--gutter))); margin-inline: calc(50% - min(560px, 50vw - var(--gutter))); width: auto; }
.entry .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.entry .is-style-lead, .entry .is-style-lead p { font-size: 1.4rem; line-height: 1.45; letter-spacing: -.01em; }
.entry table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1.5px solid var(--rule); text-align: left; }
.entry th { font: 400 .8125rem var(--mono); text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--ink); }
.entry .wp-block-button__link { padding: .8em 1.35em; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.entry-cover { margin: 0 0 1.6em; }
.entry-cover img { width: 100%; border: 2px solid var(--ink); border-radius: var(--radius); }
.entry-meta { margin-bottom: 1.6em; }
.entry-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .9375rem; text-decoration: none; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 3em; padding-top: 24px; border-top: 2px solid var(--ink); font-weight: 600; }
.post-nav a { text-decoration: none; }
.post-nav .next { margin-left: auto; text-align: right; }

.team .wp-block-image img, .is-style-portrait img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper-2); }
.team .wp-block-image img:not([src]), .team .wp-block-image img[src=""] { display: block; width: 160px; height: 160px; }
.team h3 { margin-top: .6em; }
.callout { padding: clamp(28px, 5vw, 48px); border: 2px solid var(--ink); border-radius: 24px; background: var(--l2); }

.project-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.project-facts { position: sticky; top: calc(var(--header-h) + 24px); padding: 22px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--line, var(--ink)); }
.project-facts dl { margin: 0 0 18px; }
.project-facts dt { margin-top: 16px; font: 400 .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.project-facts dt:first-child { margin-top: 0; }
.project-facts dd { margin: 4px 0 0; font-size: 1rem; line-height: 1.45; }
.related { border-top: 2px solid var(--ink); padding-top: 0; }
.related > .container { margin-top: clamp(32px, 5vw, 64px); }

.empty { padding: 40px 0; text-align: center; }
.empty p { margin-bottom: 20px; font-size: 1.25rem; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin-inline: auto; }
.search-field { flex: 1; min-width: 0; padding: 12px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; }
.search-form .btn .icon { width: 18px; height: 18px; }
.search-404 { margin-top: 28px; }
.search-404 .search-form { margin: 0; }

.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; font: 400 .9375rem var(--mono); text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--paper); }

.comments { margin-bottom: 80px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); font: inherit; }
.comment-form .submit { padding: .8em 1.4em; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 1rem var(--sans); cursor: pointer; }

/* ---------- Wejścia ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */

@media (max-width: 1080px) {
	.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	.about-grid, .join-copy, .project-layout { grid-template-columns: minmax(0, 1fr); }
	.project-facts { position: static; }
	.news-row { grid-template-columns: minmax(0, 1fr); }
	.news-thumb { display: none; }
	.map-hint { display: none; }
	.timeline { --date: 0px; }
	.timeline::before { left: 17px; }
	.stop { grid-template-columns: 42px minmax(0, 1fr); column-gap: 18px; }
	.stop-dot { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
	.stop-date { grid-column: 2; grid-row: 1; text-align: left; padding-top: 10px; margin-bottom: 6px; }
	.stop-body { grid-column: 2; grid-row: 2; }
}

@media (max-width: 640px) {
	body { font-size: 1.0625rem; }
	.project-grid, .legend, .footer-grid { grid-template-columns: minmax(0, 1fr); }
	.hero { min-height: 0; }
	.hero-veil { background: radial-gradient(ellipse 120% 70% at 30% 45%, rgba(237, 235, 229, .93) 0%, rgba(237, 235, 229, .8) 55%, rgba(237, 235, 229, .2) 100%); }
	.btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.net-train { display: none; }
	.scribble-svg path, .hand-arrow path { stroke-dashoffset: 0; }
	.js .reveal, .js .join-word .bullet { opacity: 1; transform: none; }
}

.hero.is-paused .hero-net-near, .hero.is-paused .hero-net-far, .hero.is-paused .net-pulse { animation-play-state: paused; }

@media print {
	.site-header, .hero-net, .departures, .nav-toggle, .join-word, .footer-lines { display: none !important; }
	body::before { display: none; }
	.band { background: none; color: var(--ink); border-bottom: 2px solid var(--ink); }
}
