/* FRONT_PAGE sections (hero, O konferencji, CTA band). Values from the frozen FRONT_PAGE canvas.
   Loaded on the front page only. */

/* Hero ------------------------------------------------------------------ */
.hero-front {
	position: relative;
	overflow: hidden;
	min-height: 780px;
	background: var(--navy);
}

.hero-front__numeral {
	position: absolute;
	right: 0;
	top: -60px;
	font-family: var(--font-heading);
	font-size: 460px;
	font-weight: 700;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.8px rgba(255, 255, 255, 0.13);
	pointer-events: none;
}

.hero-front__orbit {
	position: absolute;
	right: 0;
	top: 0;
	pointer-events: none;
}

.hero-front__content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-height: 780px;
	max-width: calc(var(--page-pad) + 508px);
	padding: 76px 0 48px var(--page-pad);
}

.hero-front h1 {
	max-width: 660px;
	color: #ffffff;
	font-size: 54px;
	line-height: 1.16;
	font-weight: 700;
	overflow-wrap: break-word;
}

.hero-front__lead {
	margin: 0;
	max-width: 540px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 18px;
	line-height: 1.6;
}

.hero-front__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 12px;
}

.hero-front__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
}

.hero-front__note {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
}

.hero-front__axis {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: auto;
	padding-top: 36px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-front__year {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 3px;
}

.hero-front__year--from {
	color: var(--amber);
}

.hero-front__year--now {
	color: #ffffff;
}

.hero-front__year--next {
	color: rgba(255, 255, 255, 0.65);
}

.hero-front__axis-note {
	margin-left: auto;
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
	font-style: italic;
}

/* Funding card: absolute at the bottom right (as in the canvas). */
.hero-funding-card {
	position: absolute;
	right: var(--page-pad);
	bottom: 64px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: min(620px, calc(100% - 2 * var(--page-pad) - 508px - 24px));
	padding: 22px 26px;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(3, 10, 26, 0.22);
}

.hero-funding-eyebrow {
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hero-funding-row {
	display: flex;
	align-items: center;
	gap: 22px;
}

.hero-funding-divider {
	flex: 0 0 auto;
	align-self: stretch;
	width: 1px;
	background: var(--border);
}

.hero-funding-card img {
	display: block;
	flex: 0 0 auto;
	width: 200px;
	max-width: 100%;
	height: auto;
}

.hero-partners {
	display: flex;
	align-items: center;
	gap: 22px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
}

.hero-partner {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.hero-partners .hero-funding-divider {
	align-self: auto;
	height: 40px;
}

.hero-funding-card .hero-partner img {
	width: auto;
	height: 40px;
}

.hero-funding-text {
	flex: 1;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--graphite);
}

/* O konferencji -------------------------------------------------------- */
.about {
	display: flex;
	gap: 64px;
	padding: 64px var(--page-pad);
	background: var(--white);
}

.about__intro {
	display: flex;
	flex: 0 0 500px;
	flex-direction: column;
	gap: 16px;
	width: 500px;
}

.about__intro h2 {
	max-width: 23ch;
	color: var(--navy);
	font-size: 32px;
	line-height: 1.22;
	font-weight: 700;
}

.about__intro-text {
	margin: 0;
	max-width: 56ch;
	font-size: 16px;
	line-height: 1.7;
}

.about__cards {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.info-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 24px;
}

.info-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.info-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--amber-tint);
	color: var(--amber-deep);
}

.info-card__title {
	margin: 0;
	color: var(--navy);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: normal;
	font-weight: 700;
}

.info-card__text {
	margin: 0;
	padding-left: 52px;
	font-size: 13px;
	line-height: 1.55;
}

/* CTA band ------------------------------------------------------------- */
.cta-band {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 28px var(--page-pad);
	background: var(--navy-deep);
	text-align: center;
}

.cta-band > * {
	position: relative;
}

.cta-band .cta-band__orbit {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.cta-band h2 {
	color: #ffffff;
	font-size: 30px;
	font-weight: 700;
}

.cta-band__text,
.cta-band__note {
	margin: 0;
	max-width: 520px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 15px;
}

.cta-band__event {
	color: rgba(255, 255, 255, 0.5);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.3px;
}

/* Section headers ------------------------------------------------------- */
.front-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.front-section__title {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.front-section__title h2 {
	color: var(--navy);
	font-size: 30px;
	line-height: normal;
	font-weight: 700;
}

/* Timeline -------------------------------------------------------------- */
.timeline {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 52px var(--page-pad);
	background: var(--gray-bg);
}

.timeline__axis {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--navy);
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
}

/* --amber-deep is 4.38:1 on --gray-bg, just under AA for small text; on these two grey sections the
   accent text uses the same amber 12% darker (5.4:1). Everywhere else the token is unchanged. */
.timeline .kicker,
.front-speakers .kicker,
.timeline__arrow {
	color: #A24619;
}

.timeline__legend {
	display: flex;
	align-items: center;
	gap: 24px;
	width: fit-content;
	padding: 10px 16px;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 8px;
}

.timeline__legend > span {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--graphite);
	font-size: 12.5px;
	font-weight: 600;
}

.timeline__legend-dot {
	display: inline-block;
	box-sizing: content-box;
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.timeline__legend-dot--completed {
	background: var(--amber-deep);
}

.timeline__legend-dot--planned {
	background: #ffffff;
	border: 2px solid var(--navy);
}

.timeline__wrap {
	position: relative;
	height: 172px;
}

.timeline__more {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
}

.timeline__more .text-link-arrow:hover,
.timeline__more .text-link-arrow:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.timeline__line {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(50% - 1.5px);
	height: 3px;
	background: linear-gradient(90deg, var(--navy), var(--amber-deep));
}

.timeline__track {
	position: relative;
	display: flex;
	justify-content: space-between;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.timeline__item {
	display: grid;
	grid-template-rows: 1fr auto 1fr;
	justify-items: center;
	flex: 0 1 120px;
	min-width: 0;
}

.timeline__dot {
	grid-row: 2;
	box-sizing: content-box;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--amber-deep);
	border: 3px solid var(--gray-bg);
}

.timeline__item--planned .timeline__dot {
	width: 16px;
	height: 16px;
	background: #ffffff;
	border-color: var(--navy);
}

.timeline__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-align: center;
	overflow-wrap: break-word;
	max-width: 100%;
}

.timeline__item--up .timeline__text {
	grid-row: 1;
	align-self: start;
}

.timeline__item--down .timeline__text {
	grid-row: 3;
	align-self: start;
	margin-top: 6px;
}

.timeline__name {
	color: var(--graphite);
	font-size: 13px;
	font-weight: 600;
}

.timeline__year,
.timeline__status {
	color: var(--muted);
	font-size: 10.5px;
}

.timeline__status {
	text-transform: lowercase;
}

/* Program summary ------------------------------------------------------- */
.front-program {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 64px var(--page-pad);
	background: var(--white);
}

.front-program__cards {
	display: flex;
	gap: 24px;
}

.program-card {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 28px;
}

.program-card__time {
	color: var(--amber-deep);
	font-family: var(--font-heading);
	font-size: 26px;
	font-weight: 700;
}

.program-card__title {
	margin: 0;
	color: var(--navy);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: normal;
	font-weight: 700;
}

.program-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

.front-program__actions,
.front-speakers__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* Speakers -------------------------------------------------------------- */
.front-speakers {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 64px var(--page-pad);
	background: var(--gray-bg);
}

.speakers-row {
	display: flex;
	gap: 20px;
}

.speaker-card {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.speaker-photo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 150px;
	overflow: hidden;
	border-radius: 12px 12px 0 0;
	background: linear-gradient(160deg, #E7E9EE, #D8DBE2);
	color: #8891A0;
}

.speaker-photo img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.speaker-card__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 16px 18px;
}

.speaker-card .speaker-eyebrow {
	display: block;
	height: 14px;
	line-height: 14px;
}

.speaker-name,
.speaker-role {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.speaker-name {
	height: 36px;
	line-height: 18px;
	font-size: 14px;
	font-weight: 700;
	color: var(--navy);
}

.speaker-role {
	height: 32px;
	line-height: 16px;
	font-size: 12.5px;
	color: var(--muted);
}

/* Venue teaser ---------------------------------------------------------- */
.front-venue {
	display: flex;
	gap: 56px;
	padding: 64px var(--page-pad);
	background: var(--tint);
}

.front-venue__intro {
	display: flex;
	flex: 0 0 480px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	width: 480px;
}

.front-venue__intro h2 {
	color: var(--navy);
	font-size: 28px;
	line-height: normal;
	font-weight: 700;
}

.front-venue__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.front-venue__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--graphite);
	font-size: 14px;
}

.front-venue__list svg {
	flex: 0 0 auto;
	margin-top: 1px;
	color: var(--amber-deep);
}

.front-venue__map {
	flex: 1;
	min-width: 0;
}

/* Narrow desktop: the funding card would collide with the hero text below ~1200px, so from there
   it uses the canvas's own <=960px layout (in flow, under the content). */
@media (max-width: 1200px) {
	.hero-front__content {
		min-height: 0;
		max-width: none;
		padding: 76px var(--page-pad) 0;
	}

	.hero-front__axis {
		margin-top: 20px;
	}

	.hero-front {
		min-height: 0;
		padding-bottom: 48px;
	}

	.hero-funding-card {
		position: static;
		width: calc(100% - 2 * var(--page-pad));
		max-width: 360px;
		margin: 28px auto 0;
		padding: 22px;
		box-shadow: 0 4px 14px rgba(3, 10, 26, 0.14);
	}

	.hero-funding-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.hero-funding-divider {
		display: none;
	}

	.hero-funding-card img {
		width: 190px;
	}

	.hero-partners {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.hero-partner {
		justify-content: flex-start;
		gap: 10px;
	}
}

@media (max-width: 960px) {
	.front-venue {
		flex-direction: column;
		gap: 32px;
	}

	.front-venue__intro {
		flex: 0 0 auto;
		width: auto;
	}

	.about {
		flex-direction: column;
		gap: 32px;
	}

	.about__intro {
		flex: 0 0 auto;
		width: auto;
	}
}

@media (max-width: 720px) {
	.front-program__cards,
	.speakers-row {
		flex-direction: column;
	}

	/* Vertical timeline: the line moves to the left, the dots sit on it and the text follows. */
	.timeline__wrap {
		height: auto;
	}

	.timeline__line {
		left: 9px;
		right: auto;
		top: 0;
		bottom: 0;
		width: 3px;
		height: auto;
		background: linear-gradient(180deg, var(--navy), var(--amber-deep));
	}

	.timeline__track {
		flex-direction: column;
		gap: 20px;
	}

	.timeline__item {
		display: flex;
		flex: none;
		align-items: flex-start;
		gap: 16px;
	}

	.timeline__item--up .timeline__text,
	.timeline__item--down .timeline__text {
		margin-top: 0;
		align-items: flex-start;
		text-align: left;
	}

	.front-section__head {
		flex-direction: column;
		align-items: flex-start;
	}

	/* "eksperymentów" is ~6.8em wide: fit it to the 24px-gutter column instead of letting the hero clip it. */
	.hero-front h1 {
		font-size: min(54px, calc((100vw - 48px) * 0.142857));
	}

	.about__cards {
		grid-template-columns: 1fr;
	}
}
