/*--------------------------------------------------------------
# Passport Section (About)
# Owen's credentials as a passport spread: an ID page on the left,
# ink stamps that press onto the right page on scroll.
--------------------------------------------------------------*/

.about-passport {
	--paper: #F5F1E8;
	--ink-blue: #2A4D8F;
	--ink-black: #1A1A1A;
	--ink-orange: #8F3C05; /* was --ink-green #6E8F1A, until the accent turned orange (29 Nov 2026); as dark as the blue and red inks */
	--ink-red: #8F3A2A;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

	/* Top: none, because the story section above already ends on 80–140px
	   of bottom padding. Bottom: the gap the story used to hand the
	   boarding passes below (.about-beds has no top padding of its own),
	   so 120px here, 140px at 1280px+ and 80px on phones. */
	padding: 0 0 120px;
	background: var(--tpp-white);
}

.about-passport__container {
	width: 100%;
	max-width: var(--tpp-container-max);
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);

	/* Scroll-reveal */
	opacity: 0;
	transform: translateY(32px);
	transition:
		opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-passport__container.is-visible {
	opacity: 1;
	transform: none;
}

.about-passport__title {
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
	text-align: center;
	margin: 0;
}


/* ── The book ── */
.about-passport__book {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 1080px;
	margin: 56px auto 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow:
		0 40px 80px -40px rgba(0, 0, 0, 0.35),
		0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* The spine: a soft fold shadow down the middle of the spread. */
.about-passport__book::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 28px;
	margin-left: -14px;
	background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.14) 50%, rgba(0, 0, 0, 0.1) 55%, transparent);
	pointer-events: none;
}

/* Paper with faint guilloche rings in two corners. */
.about-passport__page {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 460px;
	padding: 40px 44px;
	background-color: var(--paper);
	background-image:
		repeating-radial-gradient(circle at 0 100%, transparent 0 14px, rgba(26, 26, 26, 0.035) 14px 15px),
		repeating-radial-gradient(circle at 100% 0, transparent 0 18px, rgba(26, 26, 26, 0.03) 18px 19px);
}

.about-passport__kicker {
	font-family: var(--tpp-font-heading);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tpp-text-light);
}


/* ── ID page ── */
.about-passport__id {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 24px;
	margin-top: 24px;
}

.about-passport__photo {
	aspect-ratio: 3 / 4;
	border-radius: 8px;
	overflow: hidden;
	filter: grayscale(0.25) contrast(1.05);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.about-passport__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-passport__fields {
	display: grid;
	align-content: start;
	gap: 12px;
	margin: 0;
}

.about-passport__field dt {
	font-family: var(--tpp-font-body);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tpp-text-light);
}

.about-passport__field dd {
	margin: 0;
	font-family: var(--tpp-font-heading);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tpp-black);
}

/* The machine-readable zone sits at the foot of the page. */
.about-passport__mrz {
	margin: auto 0 0;
	padding-top: 32px;
	font-family: var(--mono);
	font-size: 0.8125rem;
	letter-spacing: 0.18em;
	line-height: 1.7;
	color: rgba(26, 26, 26, 0.55);
	word-break: break-all;
}


/* ── Stamps page ── */
.about-passport__stamps {
	position: relative;
	flex: 1;
	min-height: 380px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-passport__stamp {
	position: absolute;
	display: grid;
	place-items: center;
	padding: 14px 18px;
	border: 3px double currentColor;
	border-radius: 12px;
	font-family: var(--tpp-font-heading);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	line-height: 1.2;
	mix-blend-mode: multiply;

	/* Pressed on: starts large and invisible, lands with a slight overshoot. */
	opacity: 0;
	transform: scale(1.5) rotate(var(--r, 0deg));
	transition:
		opacity 0.25s ease,
		transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
	transition-delay: calc(var(--stamp-index, 0) * 0.28s + 0.2s);
}

.about-passport__book.is-visible .about-passport__stamp {
	opacity: 0.88;
	transform: scale(1) rotate(var(--r, 0deg));
}

.about-passport__stamp small {
	display: block;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	/* No extra fade (it was 0.8 on top of the stamp's 0.88): the small labels
	   need 4.5:1, and at 0.88 every ink clears it (4.9:1 or more). 29 Nov 2026. */
}

.about-passport__stamp b {
	display: block;
	margin: 2px 0;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.about-passport__stamp--round {
	width: 150px;
	height: 150px;
	padding: 18px;
	border-radius: 50%;
}

/* Each slot's place on the page, tilt and ink. */
.about-passport__stamp--1 { top: 6%;     left: 4%;   --r: -8deg;  color: var(--ink-blue); }
.about-passport__stamp--2 { top: 2%;     right: 4%;  --r: 6deg;   color: var(--ink-black); }
.about-passport__stamp--3 { top: 40%;    left: 30%;  --r: -3deg;  color: var(--ink-orange); }
.about-passport__stamp--4 { bottom: 4%;  left: 2%;   --r: 10deg;  color: var(--ink-red); }
.about-passport__stamp--5 { bottom: 8%;  right: 6%;  --r: -12deg; color: var(--ink-blue); }


/* ── Large desktop (≥1280px) ── */
@media screen and (min-width: 1280px) {
	.about-passport {
		padding-bottom: 140px;
	}
}


/* ── Tablet and below (≤991px): the spread stacks into two pages ── */
@media screen and (max-width: 991px) {
	.about-passport__book {
		grid-template-columns: 1fr;
		max-width: 560px;
	}

	.about-passport__book::after {
		display: none;
	}

	.about-passport__page {
		min-height: 0;
		padding: 32px 28px;
	}

	/* A faint fold line where the two pages meet. */
	.about-passport__page--stamps {
		border-top: 1px dashed rgba(26, 26, 26, 0.18);
	}

	.about-passport__stamps {
		min-height: 400px;
	}
}


/* ── Mobile (≤767px) ── */
@media screen and (max-width: 767px) {
	.about-passport {
		padding-bottom: 80px;
	}

	.about-passport__book {
		margin-top: 40px;
	}
}


/* ── Small phones (≤560px): stamps flow instead of scattering ──
   The scattered layout needs ~450px of page width; below that the stamps
   would collide, so they wrap in a centred cluster instead. */
@media screen and (max-width: 560px) {
	.about-passport__page {
		padding: 28px 22px;
	}

	.about-passport__id {
		grid-template-columns: 110px 1fr;
		gap: 18px;
	}

	.about-passport__mrz {
		font-size: 0.6875rem;
		letter-spacing: 0.12em;
	}

	.about-passport__stamps {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 20px 16px;
		min-height: 0;
		padding-top: 24px;
	}

	.about-passport__stamp {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
	}

	.about-passport__stamp--round {
		width: 130px;
		height: 130px;
	}
}


/* ── Reduced motion: everything shows at once, nothing animates ── */
@media (prefers-reduced-motion: reduce) {
	.about-passport__container,
	.about-passport__stamp {
		transition: none;
	}

	.about-passport__container {
		opacity: 1;
		transform: none;
	}

	.about-passport__stamp {
		opacity: 0.88;
		transform: rotate(var(--r, 0deg));
	}
}
