/*
 * About Us — chapter deck shell (progress bar, nav, viewport/track, slide base)
 * Depends on: design-tokens.css, log-about-hero.css
 * Page: body.log-about-page
 */

/* !important: beats log-global-layout-fix.css's .entry-content.is-layout-constrained > *
   margin-block reset, which otherwise zeroes this top margin. */
.deck-wrap {
	max-width: 1080px;
	margin: 36px auto 0 !important;
	padding: 0 20px;
	position: relative;
}

.deck-progress {
	display: flex;
	gap: 6px;
	margin-bottom: 18px;
}

.deck-progress-seg {
	flex: 1;
	height: 4px;
	border-radius: var(--r-pill);
	background: var(--line);
	overflow: hidden;
	cursor: pointer;
}

.deck-progress-seg-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--sage-600), var(--plum-700));
	border-radius: var(--r-pill);
	transition: width .3s linear;
}

.deck-progress-seg.done .deck-progress-seg-fill {
	width: 100%;
	transition: none;
}

.deck-head-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 10px;
}

.deck-chapter-label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dcl-num {
	font-family: var(--display);
	font-weight: 800;
	font-size: 26px;
	color: var(--plum-800);
	line-height: 1.2;
}

.dcl-text {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sage-700);
	line-height: 1.2;
}

.deck-nav-btns {
	display: flex;
	gap: 8px;
}

.deck-nav-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--white);
	border: 1.4px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink-700);
	transition: all .25s var(--ease);
}

.deck-nav-btn:hover {
	border-color: var(--plum-600);
	color: var(--plum-700);
	transform: translateY(-2px);
}

.deck-nav-btn:active {
	transform: translateY(0) scale(.94);
}

.deck-nav-btn .icon {
	width: 16px;
	height: 16px;
}

/* Height is set inline by log-about.js to match only the active slide —
   .deck-track holds all 5 slides as flex siblings (only one shown at a
   time via translateX), so without this the viewport's auto height is
   driven by the tallest of the 5, leaving a large blank gap under any
   shorter slide (chapters 2, 3, 5). transition here animates that JS-set
   height smoothly alongside the existing .55s transform slide. */
.deck-viewport {
	overflow: hidden;
	border-radius: var(--r-lg);
	transition: height .4s var(--ease);
}

.deck-track {
	display: flex;
	transition: transform .55s var(--ease);
}

.deck-slide {
	position: relative;
	flex: 0 0 100%;
	min-height: 420px;
	background: linear-gradient(150deg, var(--white) 55%, var(--blush-100) 100%);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-sm);
	padding: 34px 32px;
	overflow: hidden;
}

.deck-slide::before {
	content: '';
	position: absolute;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--gold-glass-15), transparent 70%);
	top: -100px;
	right: -80px;
	pointer-events: none;
}

.deck-slide::after {
	content: '';
	position: absolute;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(212, 175, 55, .12), transparent 70%);
	bottom: -90px;
	left: -60px;
	pointer-events: none;
}

.slide-watermark {
	position: absolute;
	bottom: -30px;
	right: 20px;
	opacity: .07;
	pointer-events: none;
	color: var(--plum-700);
	z-index: 0;
}

.slide-watermark .icon {
	width: 180px;
	height: 180px;
	stroke-width: 1;
}

@media(max-width:760px) {
	.slide-watermark {
		display: none;
	}
}

@media(max-width:640px) {
	.deck-slide {
		padding: 22px 18px;
		min-height: 0;
	}
}

@media(max-width:760px) {
	.deck-track {
		align-items: flex-start;
	}
}

.slide-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: center;
	height: 100%;
}

@media(max-width:760px) {
	.slide-grid {
		grid-template-columns: 1fr;
		gap: 0px;
		height: auto;
	}
}

.slide-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sage-700);
	margin-bottom: 8px;
}

.slide-eyebrow::before {
	content: '';
	width: 18px;
	height: 2px;
	background: var(--sage-600);
	display: inline-block;
}

.slide-title {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.2;
	color: var(--ink-900);
}

.slide-title em {
	font-style: italic;
	color: var(--plum-700);
}

/* line-height !important: beats log-parent-reset.css's .page .type-page .entry-content p
   {line-height:inherit} (0,3,1) — this is a <p>, so it otherwise loses to that reset. */
.slide-text {
	color: var(--gray-600);
	font-size: 13px;
	line-height: 1.7 !important;
	margin-top: 12px;
}

.slide-tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 16px;
	background: var(--blush-100);
	color: var(--plum-700);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	padding: 7px 14px;
	border-radius: var(--r-pill);
}

.slide-tag .icon {
	width: 12px;
	height: 12px;
}

.slide-visual {
	background: linear-gradient(150deg, var(--blush-100), var(--paper-50));
	border-radius: var(--r-md);
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	position: relative;
	overflow: hidden;
}

@media(max-width:760px) {
	.slide-visual {
		min-height: 160px;
		padding: 18px;
	}

	.slide-tag {
		margin-bottom: 16px;
	}
}

.deck-swipe-hint {
	display: none;
	text-align: center;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--gray-600);
	margin-top: 10px;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.deck-swipe-hint .icon {
	width: 11px;
	height: 11px;
	color: var(--sage-700);
	animation: abSwipeNudge 1.6s ease-in-out infinite;
}

@keyframes abSwipeNudge {

	0%,
	100% {
		transform: translateX(0);
	}

	50% {
		transform: translateX(4px);
	}
}

@media(max-width:760px) {
	.deck-swipe-hint {
		display: flex;
	}
}