/**
 * About page — neo-brutalist pop-art timeline.
 *
 * @package The_Duchy
 */

:root {
	--about-pink: #ff8fab;
	--about-yellow: #f5c842;
	--about-green: #5ed991;
	--about-cyan: #5dd9d0;
	--about-ink: #0f172a;
	--about-muted: #64748b;
	--about-shadow: 6px 6px 0 #000;
	--about-shadow-sm: 4px 4px 0 #000;
	--about-lift: -3px;
}

body.duchy-about-page {
	background: #fff;
	color: var(--about-ink);
}

.about-page {
	font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6rem);
}

.about-page__wrap {
	max-width: 760px;
	margin: 0 auto;
}

/* Hero */
.about-hero {
	margin-bottom: clamp(2rem, 5vw, 3rem);
	padding: clamp(1.5rem, 4vw, 2.25rem);
	background: var(--about-cyan);
	border: 3px solid #000;
	box-shadow: var(--about-shadow);
}

.about-hero__pill {
	display: inline-block;
	margin-bottom: 0.85rem;
	padding: 0.35rem 0.75rem;
	font-size: 0.62rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	background: #fff;
	border: 2px solid #000;
	box-shadow: var(--about-shadow-sm);
}

.about-hero h1 {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 6vw, 3.25rem);
	font-weight: 950;
	line-height: 0.95;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--about-ink);
}

.about-hero__lede {
	margin: 0;
	font-size: clamp(1.05rem, 2.5vw, 1.25rem);
	font-weight: 700;
	line-height: 1.45;
	color: rgba(15, 23, 42, 0.88);
	max-width: 36rem;
}

/* Intro card */
.about-intro-card {
	margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: #fff;
	border: 3px solid #000;
	box-shadow: var(--about-shadow-sm);
}

.about-intro-card p {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: #334155;
}

.about-intro-card p:last-child {
	margin-bottom: 0;
}

/* Timeline */
.about-timeline {
	margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.about-timeline__heading {
	margin: 0 0 clamp(1.5rem, 4vw, 2rem);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.015em;
	border-bottom: 4px solid #000;
	padding-bottom: 0.4rem;
	display: inline-block;
}

.about-timeline__list {
	--about-rail: 1.125rem;
	list-style: none;
	margin: 0;
	padding: 0 0 0 calc(var(--about-rail) + 0.35rem);
	position: relative;
}

.about-timeline__list::before {
	content: '';
	position: absolute;
	left: calc(var(--about-rail) / 2 - 2px);
	top: 0.85rem;
	bottom: 0.85rem;
	width: 4px;
	background: #000;
	border-radius: 2px;
}

.about-timeline__item {
	position: relative;
	margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
	padding-left: calc(var(--about-rail) + 0.85rem);
}

.about-timeline__item:last-child {
	margin-bottom: 0;
}

.about-timeline__marker {
	position: absolute;
	left: 0;
	top: 1.15rem;
	width: var(--about-rail);
	height: var(--about-rail);
	background: #000;
	border: 3px solid #000;
	border-radius: 50%;
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
	z-index: 1;
}

.about-timeline__era {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 0.32rem 0.62rem;
	font-size: 0.68rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1;
	color: var(--about-ink);
	background: rgba(255, 255, 255, 0.94);
	border: 2px solid #000;
	box-shadow: 2px 2px 0 #000;
}

.about-timeline__card {
	padding: clamp(1.1rem, 3vw, 1.5rem);
	border: 3px solid #000;
	box-shadow: var(--about-shadow-sm);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

@media (hover: hover) {
	.about-timeline__card:hover {
		transform: translate(var(--about-lift), var(--about-lift));
		box-shadow: var(--about-shadow);
	}
}

.about-timeline__item--1998 .about-timeline__card {
	background: var(--about-pink);
}

.about-timeline__item--idea .about-timeline__card {
	background: var(--about-yellow);
}

.about-timeline__item--today .about-timeline__card {
	background: var(--about-green);
}

.about-timeline__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	line-height: 1.15;
}

.about-timeline__card p {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(15, 23, 42, 0.92);
}

.about-timeline__card p:last-child {
	margin-bottom: 0;
}

.about-timeline__stone {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.25rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 2px solid rgba(0, 0, 0, 0.15);
}

.about-stone-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.5rem;
	min-height: 3.5rem;
	padding: 0.5rem;
	background: #fff;
	border: 3px solid #000;
	border-radius: 999px;
	box-shadow: 3px 3px 0 #000;
	cursor: pointer;
	transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.about-stone-trigger:hover {
	transform: scale(1.06) rotate(-3deg);
	box-shadow: 5px 5px 0 #000;
}

.about-stone-trigger.is-launching {
	transform: scale(0.94);
	box-shadow: 1px 1px 0 #000;
}

.about-stone-trigger:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

.about-stone-img {
	display: block;
	width: 40px;
	height: auto;
	filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15));
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
	animation: about-stone-float 3.2s ease-in-out infinite;
}

.about-stone-trigger:hover .about-stone-img,
.about-stone-trigger:focus-visible .about-stone-img {
	transform: translate(-1px, -1px) scale(1.04);
}

.about-stone-trigger.is-launching .about-stone-img {
	animation: about-stone-launch 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
	filter: drop-shadow(0 0 10px rgba(93, 217, 208, 0.55));
}

@keyframes about-stone-float {
	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}
	50% {
		transform: translateY(-3px) rotate(1.5deg);
	}
}

@keyframes about-stone-launch {
	0% {
		transform: scale(1) rotate(0deg);
	}
	45% {
		transform: scale(1.22) rotate(-8deg);
	}
	100% {
		transform: scale(1.08) rotate(-4deg);
	}
}

.about-stone-caption {
	flex: 1 1 12rem;
	min-width: 0;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.4;
	color: rgba(15, 23, 42, 0.85);
}

.about-stone-hint {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--about-ink);
}

/* Founder card */
.about-founder {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: #fff;
	border: 3px solid #000;
	box-shadow: var(--about-shadow);
}

.about-founder__grid {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	gap: clamp(1.25rem, 4vw, 2rem);
	align-items: start;
}

.about-founder__heading {
	margin: 0 0 1rem;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.015em;
}

.about-founder__figure {
	margin: 0;
}

.about-page__img-frame {
	display: block;
	border: 3px solid #000;
	border-radius: 16px;
	box-shadow: var(--about-shadow-sm);
	overflow: hidden;
	background: #f8fafc;
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.about-founder-link:hover .about-page__img-frame,
.about-founder-link:focus-visible .about-page__img-frame {
	transform: translate(var(--about-lift), var(--about-lift));
	box-shadow: var(--about-shadow);
}

.about-page__img-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.about-founder__figure figcaption {
	margin-top: 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--about-muted);
}

.about-founder__copy p {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: #334155;
}

.about-founder__copy p:last-of-type {
	margin-bottom: 0;
}

.about-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.about-page__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.65rem 1.35rem;
	font-weight: 900;
	font-size: 0.78rem;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border: 3px solid #000;
	border-radius: 999px;
	background: #fff;
	color: var(--about-ink);
	box-shadow: var(--about-shadow-sm);
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.about-page__cta:hover,
.about-page__cta:focus-visible {
	transform: translate(var(--about-lift), var(--about-lift));
	box-shadow: var(--about-shadow);
}

.about-page__cta--primary {
	background: var(--about-cyan);
}

.about-page__cta--secondary {
	background: var(--about-yellow);
}

/* Stone map modal */
body.about-stone-map-open {
	overflow: hidden;
}

.about-stone-map-modal {
	position: fixed;
	inset: 0;
	z-index: 1000002;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.32s ease, visibility 0.32s ease;
}

.about-stone-map-modal.is-visible {
	opacity: 1;
	visibility: visible;
}

.about-stone-map-modal[hidden] {
	display: none !important;
}

.about-stone-map-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.88);
	backdrop-filter: blur(4px);
}

.about-stone-map-modal__panel {
	position: relative;
	width: min(960px, 100%);
	max-height: min(90vh, 720px);
	display: flex;
	flex-direction: column;
	background: #0b1120;
	border: 4px solid #000;
	border-radius: 16px;
	box-shadow: 12px 12px 0 #000;
	overflow: hidden;
	transform: scale(0.94) translateY(12px);
	transition: transform 0.36s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.about-stone-map-modal.is-visible .about-stone-map-modal__panel {
	transform: scale(1) translateY(0);
}

.about-stone-map-modal.is-loading .about-stone-map-modal__map {
	position: relative;
	opacity: 0.65;
}

.about-stone-map-modal.is-loading .about-stone-map-modal__map::after {
	content: 'Pulling in from space…';
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(2, 6, 23, 0.75);
	color: #e2e8f0;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.about-stone-map-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	background: var(--about-yellow);
	border: 3px solid #000;
	border-radius: 999px;
	padding: 8px 14px;
	font-weight: 900;
	font-size: 0.7rem;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 3px 3px 0 #000;
	transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.about-stone-map-modal__close:hover,
.about-stone-map-modal__close:focus-visible {
	transform: translate(-2px, -2px);
	box-shadow: 5px 5px 0 #000;
}

.about-stone-map-modal__title {
	margin: 0;
	padding: 14px 18px 0;
	padding-right: 5rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #94a3b8;
}

.about-stone-map-modal__map-wrap {
	position: relative;
	flex: 1 1 auto;
	min-height: 280px;
	overflow: hidden;
}

.about-stone-map-modal__map {
	width: 100%;
	height: min(62vh, 520px);
	min-height: 280px;
	background: #020617;
	border: none;
	border-radius: 0;
	transition: opacity 0.42s ease, filter 0.42s ease;
}

.about-stone-map-modal__map-wrap.is-switching-map .about-stone-map-modal__map {
	opacity: 0.35;
	filter: blur(2px);
}

.about-stone-map-modal__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(2, 6, 23, 0.15) 0%,
		rgba(2, 6, 23, 0.05) 35%,
		rgba(2, 6, 23, 0.55) 72%,
		rgba(2, 6, 23, 0.88) 100%
	);
	opacity: 0.72;
	transition: opacity 0.5s ease;
}

.about-stone-map-modal__map-wrap.is-landed .about-stone-map-modal__scrim {
	opacity: 0.45;
}

.about-stone-map-modal__story {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 2.25rem);
	pointer-events: none;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-stone-map-modal__story.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.about-stone-map-modal__story-text {
	margin: 0;
	max-width: 28rem;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(1.05rem, 2.8vw, 1.35rem);
	font-weight: 400;
	font-style: italic;
	line-height: 1.45;
	letter-spacing: 0.01em;
	color: #f8fafc;
	text-align: center;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
}

.about-stone-map-modal__story-text.is-revealed {
	animation: about-stone-story-glow 0.6s ease;
}

.about-stone-map-modal__story.is-typing .about-stone-map-modal__story-text::after {
	content: '';
	display: inline-block;
	width: 2px;
	height: 0.9em;
	margin-left: 2px;
	vertical-align: -0.05em;
	background: var(--about-cyan, #5dd9d0);
	animation: about-stone-caret 0.85s step-end infinite;
}

@keyframes about-stone-caret {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

@keyframes about-stone-story-glow {
	0% {
		text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
	}
	50% {
		text-shadow: 0 2px 32px rgba(93, 217, 208, 0.35), 0 2px 24px rgba(0, 0, 0, 0.85);
	}
	100% {
		text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
	}
}

/* Gold ring marker at Trevaunance Cove (Leaflet divIcon) */
.about-stone-map-marker {
	position: relative;
	width: 28px;
	height: 28px;
	background: transparent;
	border: none;
}

.about-stone-map-marker__core {
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fde68a, #d97706 70%, #92400e);
	border: 2px solid #000;
	box-shadow: 0 0 12px rgba(251, 191, 36, 0.65);
}

.about-stone-map-marker__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(251, 191, 36, 0.85);
	animation: about-stone-marker-pulse 2.4s ease-out infinite;
}

@keyframes about-stone-marker-pulse {
	0% {
		transform: scale(0.85);
		opacity: 1;
	}
	70% {
		transform: scale(1.65);
		opacity: 0;
	}
	100% {
		transform: scale(1.65);
		opacity: 0;
	}
}

.about-stone-map-modal__label {
	margin: 0;
	padding: 12px 18px 16px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #cbd5e1;
	text-align: center;
	line-height: 1.5;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.about-stone-map-modal__label.is-visible {
	opacity: 1;
}

/* Scroll reveal */
.about-timeline__item,
.about-intro-card,
.about-founder {
	opacity: 0;
	transform: translateY(16px);
	animation: about-rise 0.55s ease forwards;
}

.about-intro-card {
	animation-delay: 0.05s;
}

.about-timeline__item:nth-child(1) { animation-delay: 0.12s; }
.about-timeline__item:nth-child(2) { animation-delay: 0.22s; }
.about-timeline__item:nth-child(3) { animation-delay: 0.32s; }

.about-founder {
	animation-delay: 0.42s;
}

@keyframes about-rise {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-timeline__item,
	.about-intro-card,
	.about-founder {
		opacity: 1;
		transform: none;
		animation: none;
	}

	.about-timeline__card,
	.about-page__cta,
	.about-stone-trigger,
	.about-stone-img,
	.about-page__img-frame,
	.about-stone-map-modal,
	.about-stone-map-modal__panel {
		transition: none;
		animation: none;
	}

	.about-stone-trigger .about-stone-img {
		animation: none;
	}

	.about-stone-map-modal__story,
	.about-stone-map-modal__map {
		transition: none;
	}

	.about-stone-map-marker__ring,
	.about-stone-map-modal__story-text.is-revealed {
		animation: none;
	}

	.about-stone-map-modal__story.is-typing .about-stone-map-modal__story-text::after {
		display: none;
	}
}

@media (max-width: 640px) {
	.about-timeline__list {
		padding-left: calc(var(--about-rail) + 0.25rem);
	}

	.about-timeline__item {
		padding-left: calc(var(--about-rail) + 0.65rem);
	}

	.about-founder__grid {
		grid-template-columns: 1fr;
	}

	.about-founder__figure {
		max-width: 220px;
	}

	.about-page__actions {
		flex-direction: column;
	}

	.about-page__cta {
		width: 100%;
	}
}
