/* ABOUT PAGE */

.aboutHero {
	background: linear-gradient(180deg, var(--hdr-accent-soft) 0%, var(--bg-color) 100%);
	border-bottom: 1px solid var(--hdr-border);
}

body.dark .aboutHero {
	background: linear-gradient(180deg, color-mix(in srgb, #fff 6%, var(--bg-color)) 0%, var(--bg-color) 100%);
}

.aboutHero .container {
	padding-top: 56px;
	padding-bottom: 44px;
}

.aboutIntro {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

.aboutIntro > div {
	flex: 1;
	min-width: 0;
}

/* Soft pulsing aura behind a ringed photo; only opacity and transform animate */
.aboutAvatar {
	position: relative;
	flex: none;
	width: 132px;
	height: 132px;
}

.aboutAvatar::before {
	content: '';
	position: absolute;
	inset: -30px;
	border-radius: 50%;
	background: radial-gradient(closest-side, #fff 50%, rgba(255, 255, 255, 0) 100%);
	animation: aboutAura 2.8s ease-in-out infinite alternate;
}

body.dark .aboutAvatar::before {
	background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 100%);
}

/* Multi-line tooltip: a native title cannot be wrapped or styled */
.aboutAvatar::after {
	content: attr(data-tip);
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	z-index: 5;
	width: max-content;
	padding: 7px 12px;
	font-size: 1.2rem;
	line-height: 1.5;
	white-space: pre;
	color: #fff;
	background: #26282c;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	pointer-events: none;
}

/* Appears after a short pause so passing the pointer over the photo does not pop it up; hides at once */
.aboutAvatar:hover::after,
.aboutAvatar:focus-visible::after {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.2s ease 1s, transform 0.2s ease 1s, visibility 0s linear 1s;
}

body.dark .aboutAvatar::after {
	color: #1d1d1f;
	background: #f1f1f3;
}

.aboutAvatar:focus-visible {
	outline: none;
}

@keyframes aboutAura {
	from { opacity: 0.45; transform: scale(0.9); }
	to { opacity: 1; transform: scale(1.08); }
}

.aboutPhoto {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 132px;
	height: 132px;
	padding: 6px;
	object-fit: cover;
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--hdr-accent) 10%, var(--hdr-border));
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

body.dark .aboutPhoto {
	background: #f1f1f3;
	border-color: rgba(255, 255, 255, 0.6);
}

.aboutHero h1 {
	margin: 0 0 10px;
	font-size: clamp(3rem, 4vw, 4.2rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--text-color);
}

.aboutHero p {
	margin: 0 0 12px;
	font-size: 1.7rem;
	line-height: 1.65;
	color: var(--muted-text-color);
}

.aboutHero p a {
	color: var(--hdr-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.dark .aboutHero p a {
	color: var(--text-color);
}

.aboutLinks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.aboutLinks a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 20px;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--hdr-accent);
	text-decoration: none;
	background: var(--bg-color);
	border: 1px solid color-mix(in srgb, var(--hdr-accent) 40%, var(--hdr-border));
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.aboutLinks a.primary {
	color: #fff;
	background: var(--hdr-accent);
	border-color: var(--hdr-accent);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--hdr-accent) 35%, transparent);
}

.aboutLinks a:hover,
.aboutLinks a:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px color-mix(in srgb, var(--hdr-accent) 28%, transparent);
}

.aboutLinks a.primary:hover,
.aboutLinks a.primary:focus-visible {
	background: color-mix(in srgb, var(--hdr-accent) 88%, #000);
}

body.dark .aboutLinks a {
	color: var(--text-color);
	border-color: rgba(255, 255, 255, 0.28);
	box-shadow: none;
}

body.dark .aboutLinks a.primary {
	color: #1d1d1f;
	background: #f1f1f3;
	border-color: #f1f1f3;
}

body.dark .aboutLinks a.primary:hover,
body.dark .aboutLinks a.primary:focus-visible {
	background: #fff;
}

body.dark .aboutLinks a:hover,
body.dark .aboutLinks a:focus-visible {
	border-color: rgba(255, 255, 255, 0.5);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Closing section: lighter at the top, slightly darker at the bottom */
.aboutBody {
	background: linear-gradient(180deg, var(--bg-color) calc(100% - 220px), var(--hdr-accent-soft) 100%);
}

body.dark .aboutBody {
	background: linear-gradient(180deg, var(--bg-color) calc(100% - 220px), color-mix(in srgb, #000 16%, var(--bg-color)) 100%);
}

.aboutBody .container {
	padding-top: 52px;
	padding-bottom: 80px;
}

.aboutHeading {
	max-width: 760px;
	margin: 0 auto 44px;
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: var(--text-color);
}

/*---- MILESTONES ----*/

/* --p (0 oldest to 1 newest) is set per entry and fades the vine, dots and years from light to strong */
.aboutTimeline,
.tlFinal {
	--tlc: var(--hdr-accent);
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.aboutTimeline::before {
	content: '';
	position: absolute;
	top: 8px;
	bottom: -4px;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	background: linear-gradient(180deg, var(--hdr-border), color-mix(in srgb, var(--tlc) 75%, transparent));
}

.aboutTimeline::after {
	content: '';
	display: block;
	clear: both;
}

/* Left and right cards float into separate columns so they interleave and stay compact */
.aboutTimeline li {
	position: relative;
	float: left;
	clear: left;
	width: 50%;
	box-sizing: border-box;
	padding: 0 36px 12px 0;
}

.aboutTimeline li:nth-child(even) {
	float: right;
	clear: right;
	padding: 0 0 12px 36px;
}

.aboutTimeline li:nth-child(2) {
	margin-top: 36px;
}

.aboutTimeline li::before {
	content: '';
	position: absolute;
	top: calc(50% - 7px);
	right: 0;
	width: 36px;
	height: 2px;
	background: var(--hdr-border);
}

.aboutTimeline li:nth-child(even)::before {
	right: auto;
	left: 0;
}

.aboutTimeline li::after {
	content: '';
	position: absolute;
	top: calc(50% - 12px);
	right: -6px;
	width: 12px;
	height: 12px;
	box-sizing: border-box;
	background: var(--bg-color);
	border: 3px solid color-mix(in srgb, var(--tlc) calc(25% + var(--p) * 75%), var(--hdr-border));
	border-radius: 50%;
}

.aboutTimeline li:nth-child(even)::after {
	right: auto;
	left: -6px;
}

body.dark .aboutTimeline,
body.dark .tlFinal {
	--tlc: #fff;
}

/* The finale sits below the list; the vine runs just under its year pill */
.tlFinal {
	position: relative;
	top: -30px;
	width: 60%;
	margin: 0 auto -30px;
	padding: 8px 0 0;
}

/* Year sits next to the vine on both sides: left cards read image-text-year, right cards year-text-image */
.tlCard {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 14px;
	padding: 8px 14px 8px 8px;
	background: var(--bg-color);
	border: 1px solid var(--hdr-border);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aboutTimeline li:nth-child(even) .tlCard {
	flex-direction: row;
	padding: 8px 8px 8px 14px;
}

body.dark .tlCard {
	background: color-mix(in srgb, #fff 4%, var(--bg-color));
	box-shadow: none;
}

.tlCard:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

body.dark .tlCard:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.tlYear {
	flex: none;
	min-width: 56px;
	padding: 4px 10px;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: color-mix(in srgb, var(--tlc) calc(35% + var(--p) * 65%), var(--muted-text-color));
	background: color-mix(in srgb, var(--tlc) calc(7% + var(--p) * 21%), transparent);
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

body.dark .tlYear {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.tlCard p {
	flex: 1;
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.5;
	color: var(--text-color);
}

.aboutTimeline li:not(:nth-child(even)):not(.tlFinal) .tlCard p {
	text-align: right;
}

.tlImg {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--hdr-border);
	border-radius: 10px;
}

.tlImg img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Finale: a stacked card with a larger year, picture and then the text */
.tlFinal .tlCard {
	flex-direction: column;
	gap: 14px;
	padding: 22px 28px 24px;
	text-align: center;
	background: none;
	border-color: transparent;
	box-shadow: none;
}

.tlFinal .tlCard:hover {
	transform: none;
	box-shadow: none;
}

.tlFinal .tlYear {
	position: relative;
	order: 1;
	background: color-mix(in srgb, var(--tlc) 28%, var(--bg-color));
	min-width: 84px;
	padding: 6px 20px;
	font-size: 1.9rem;
}

.tlFinal .tlImg {
	order: 2;
	width: 150px;
	height: 150px;
	border-radius: 18px;
}

.tlFinal .tlCard p {
	order: 3;
	flex: none;
}

.tlFinal em {
	font-style: italic;
	color: var(--muted-text-color);
}

@media (max-width: 767px) {
	.aboutIntro { flex-direction: column; align-items: flex-start; gap: 20px; }
	.aboutHeading { font-size: 2.2rem; text-align: left; }
	.aboutTimeline::before { left: 8px; margin-left: 0; }
	.aboutTimeline li,
	.aboutTimeline li:nth-child(even) {
		float: none;
		width: auto;
		margin: 0;
		padding: 0 0 10px 34px;
	}
	.tlFinal { width: auto; margin: 0 0 -30px; padding: 8px 0 0 34px; }
	.aboutTimeline li::before,
	.aboutTimeline li:nth-child(even)::before { left: 10px; right: auto; width: 24px; }
	.aboutTimeline li::after,
	.aboutTimeline li:nth-child(even)::after { left: 3px; right: auto; }
	.aboutTimeline li:not(.tlFinal) .tlCard { flex-direction: row; padding: 8px 8px 8px 14px; }
	.aboutTimeline li:not(:nth-child(even)):not(.tlFinal) .tlCard p { text-align: left; }
}

@media (max-width: 480px) {
	.aboutHero .container { padding-top: 36px; padding-bottom: 32px; }
	.tlImg { display: none; }
	.tlFinal .tlImg { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
	.tlCard, .aboutLinks a { transition: none; }
	.aboutAvatar::before { animation: none; opacity: 0.8; }
	.aboutAvatar::after,
	.aboutAvatar:hover::after,
	.aboutAvatar:focus-visible::after { transition-duration: 0s; }
	.tlCard:hover { transform: none; }
}
