/* ═══════════════════════════════════════════════════════
   THE PEAK COLLECTIVE — EDITORIAL STYLES
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
	--pe-black: #0A0A0A;
	--pe-white: #FAFAF8;
	--pe-cream: #F5F0EB;
	--pe-grey-100: #E8E6E3;
	--pe-grey-300: #B0ADA8;
	--pe-grey-500: #6B6862;
	--pe-grey-700: #3D3A36;
	--pe-grey-900: #1A1917;
	--pe-serif: 'Georgia', 'Times New Roman', serif;
	--pe-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	--pe-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
	--pe-transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--pe-transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
	--pe-ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ── Reset for editorial pages ── */
.peak-editorial-archive .page-wrapper,
.peak-editorial-single .page-wrapper {
	background-color: var(--pe-cream);
}

.peak-editorial-archive .footer,
.peak-editorial-single .footer {
	position: relative;
	z-index: 10;
}

/* ══════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════ */
.pe-progress,
.pe-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	z-index: 9999;
	background: transparent;
	pointer-events: none;
}

.pe-progress__bar,
.pe-reading-progress__bar {
	height: 100%;
	width: 0%;
	background: var(--pillar-accent, var(--pe-grey-700));
	transition: width 0.1s linear;
}

/* ══════════════════════════════════════
   ARCHIVE — COVER SECTION
   ══════════════════════════════════════ */
.pe-cover {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.pe-cover__bg {
	position: absolute;
	inset: 0;
}

.pe-cover__image {
	width: 100%;
	height: 110%;
	object-fit: cover;
	object-position: center;
	position: absolute;
	top: -5%;
	left: 0;
	will-change: transform;
}

.pe-cover__image--placeholder {
	width: 100%;
	height: 110%;
	position: absolute;
	top: -5%;
	left: 0;
	background: linear-gradient(135deg, var(--pe-grey-900) 0%, var(--pe-grey-700) 100%);
}

.pe-cover__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(10, 10, 10, 0.3) 0%,
		rgba(10, 10, 10, 0.15) 40%,
		rgba(10, 10, 10, 0.5) 100%
	);
}

.pe-cover__content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: var(--pe-white);
	padding: 0 24px;
}

.pe-cover__label {
	display: block;
	font-family: var(--pe-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	opacity: 0.8;
	margin-bottom: 24px;
}

.pe-cover__title {
	font-family: var(--pe-serif);
	font-size: clamp(40px, 8vw, 96px);
	font-weight: 400;
	line-height: 1.05;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}

.pe-cover__year {
	display: block;
	font-family: var(--pe-mono);
	font-size: 14px;
	letter-spacing: 0.15em;
	opacity: 0.6;
}

.pe-cover__scroll {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 48px;
	font-family: var(--pe-sans);
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.5;
	transition: opacity 0.4s ease;
}

.pe-cover__scroll.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.pe-cover__scroll svg {
	animation: pe-bounce 2s ease-in-out infinite;
}

@keyframes pe-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}

/* ══════════════════════════════════════
   ARCHIVE — INTRODUCTION
   ══════════════════════════════════════ */
.pe-intro {
	padding: clamp(80px, 12vw, 160px) 24px;
	background: var(--pe-cream);
}

.pe-intro__container {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.pe-intro__badge {
	margin-bottom: 40px;
}

.pe-badge__number {
	display: inline-block;
	font-family: var(--pe-mono);
	font-size: 12px;
	letter-spacing: 0.15em;
	color: var(--pe-grey-500);
	border: 1px solid var(--pe-grey-300);
	border-radius: 50%;
	width: 48px;
	height: 48px;
	line-height: 48px;
	text-align: center;
}

.pe-intro__heading {
	font-family: var(--pe-serif);
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 400;
	line-height: 1.2;
	color: var(--pe-grey-900);
	margin: 0 0 32px;
	letter-spacing: -0.01em;
}

.pe-intro__body {
	font-family: var(--pe-sans);
	font-size: clamp(15px, 1.8vw, 17px);
	line-height: 1.8;
	color: var(--pe-grey-500);
}

.pe-intro__body p {
	margin-bottom: 1.2em;
}

.pe-intro__body em {
	font-style: italic;
	color: var(--pe-grey-700);
}

.pe-intro__pillars {
	display: flex;
	justify-content: center;
	gap: 32px;
	margin-top: 48px;
	flex-wrap: wrap;
}

.pe-pillar-tag {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 16px 24px;
	border-top: 2px solid var(--pillar-accent);
}

.pe-pillar-tag__number {
	font-family: var(--pe-mono);
	font-size: 11px;
	letter-spacing: 0.15em;
	color: var(--pe-grey-300);
}

.pe-pillar-tag__label {
	font-family: var(--pe-serif);
	font-size: 18px;
	font-weight: 400;
	color: var(--pe-grey-900);
}

.pe-pillar-tag__tagline {
	font-family: var(--pe-sans);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pe-grey-300);
}

/* ══════════════════════════════════════
   ARCHIVE — ARTICLE CARDS
   ══════════════════════════════════════ */
.pe-article-card {
	position: relative;
	overflow: hidden;
}

.pe-article-card__hero {
	position: relative;
	height: 70vh;
	min-height: 500px;
	overflow: hidden;
}

.pe-article-card__image {
	width: 100%;
	height: 110%;
	object-fit: cover;
	object-position: center;
	position: absolute;
	top: -5%;
	left: 0;
	will-change: transform;
	transition: transform 0.6s var(--pe-transition);
}

.pe-article-card__image--placeholder {
	width: 100%;
	height: 110%;
	position: absolute;
	top: -5%;
	left: 0;
}

.pe-article-card__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(10, 10, 10, 0.7) 0%,
		rgba(10, 10, 10, 0.1) 50%,
		transparent 100%
	);
	pointer-events: none;
}

.pe-article-card__content {
	position: relative;
	max-width: 800px;
	margin: -120px auto 0;
	padding: 48px 32px 64px;
	z-index: 2;
	background: var(--pe-cream);
}

@media (min-width: 768px) {
	.pe-article-card__content {
		margin-top: -160px;
		padding: 56px 48px 80px;
	}
}

.pe-article-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.pe-article-card__number {
	font-family: var(--pe-mono);
	font-size: 12px;
	letter-spacing: 0.15em;
	color: var(--pillar-accent);
}

.pe-article-card__pillar {
	font-family: var(--pe-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pillar-accent);
}

.pe-article-card__divider {
	display: block;
	width: 32px;
	height: 1px;
	background: var(--pe-grey-300);
}

.pe-article-card__arc {
	font-family: var(--pe-sans);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pe-grey-300);
}

.pe-article-card__title {
	font-family: var(--pe-serif);
	font-size: clamp(28px, 4.5vw, 48px);
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 16px;
	letter-spacing: -0.01em;
}

.pe-article-card__title a {
	color: var(--pe-grey-900);
	text-decoration: none;
	background-image: linear-gradient(var(--pillar-accent), var(--pillar-accent));
	background-size: 0% 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.6s var(--pe-ease-out-expo);
}

.pe-article-card__title a:hover {
	background-size: 100% 2px;
}

.pe-article-card__subtitle {
	font-family: var(--pe-serif);
	font-size: clamp(16px, 2vw, 20px);
	font-style: italic;
	line-height: 1.5;
	color: var(--pe-grey-500);
	margin: 0 0 20px;
}

.pe-article-card__excerpt {
	font-family: var(--pe-sans);
	font-size: 15px;
	line-height: 1.7;
	color: var(--pe-grey-500);
	margin: 0 0 32px;
}

.pe-article-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.pe-article-card__read-time {
	font-family: var(--pe-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--pe-grey-300);
}

.pe-article-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--pe-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pillar-accent);
	text-decoration: none;
	transition: gap 0.3s var(--pe-transition);
}

.pe-article-card__cta:hover {
	gap: 14px;
}

/* Gallery strip on archive cards */
.pe-article-card__gallery {
	max-width: 800px;
	margin: -32px auto 0;
	padding: 0 32px 80px;
	position: relative;
	z-index: 2;
	background: var(--pe-cream);
}

.pe-gallery-strip {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}

.pe-gallery-strip__item {
	aspect-ratio: 4/3;
	overflow: hidden;
	border-radius: 2px;
}

.pe-gallery-strip__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--pe-transition);
}

.pe-gallery-strip__item:hover img {
	transform: scale(1.05);
}

.pe-gallery-strip__more {
	aspect-ratio: 4/3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pe-grey-100);
	border-radius: 2px;
	font-family: var(--pe-mono);
	font-size: 14px;
	color: var(--pe-grey-500);
}

/* ══════════════════════════════════════
   ARCHIVE — VOLUME FOOTER
   ══════════════════════════════════════ */
.pe-volume-footer {
	padding: clamp(80px, 10vw, 140px) 24px;
	background: var(--pe-grey-900);
	color: var(--pe-white);
}

.pe-volume-footer__container {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.pe-volume-footer__download {
	margin-bottom: 64px;
}

.pe-volume-footer__download-label {
	display: block;
	font-family: var(--pe-sans);
	font-size: 13px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--pe-grey-300);
	margin-bottom: 20px;
}

.pe-volume-footer__archive {
	margin-bottom: 64px;
}

.pe-volume-footer__archive-heading {
	font-family: var(--pe-serif);
	font-size: 24px;
	font-weight: 400;
	margin: 0 0 32px;
	color: var(--pe-white);
}

.pe-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 24px;
	justify-items: center;
}

.pe-archive-card {
	display: block;
	text-decoration: none;
	text-align: center;
	transition: transform 0.4s var(--pe-transition);
}

.pe-archive-card:hover {
	transform: translateY(-4px);
}

.pe-archive-card__cover {
	width: 100%;
	aspect-ratio: 3/4;
	object-fit: cover;
	border-radius: 2px;
	margin-bottom: 12px;
}

.pe-archive-card__label {
	font-family: var(--pe-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--pe-grey-300);
}

.pe-volume-footer__colophon {
	padding-top: 48px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pe-volume-footer__colophon p {
	font-family: var(--pe-sans);
	font-size: 13px;
	letter-spacing: 0.08em;
	color: var(--pe-grey-500);
	margin: 0;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.pe-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--pe-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: 0;
	transition: all 0.3s var(--pe-transition);
	cursor: pointer;
}

.pe-btn--outline {
	border: 1px solid currentColor;
	color: inherit;
	background: transparent;
}

.pe-btn--outline:hover {
	background: var(--pe-white);
	color: var(--pe-grey-900);
	border-color: var(--pe-white);
}

/* ══════════════════════════════════════════════════════
   SINGLE — HERO
   ══════════════════════════════════════════════════════ */
.pe-single {
	background: var(--pe-cream);
}

.pe-single__hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.pe-single__hero-media {
	position: absolute;
	inset: 0;
}

.pe-single__hero-image,
.pe-single__hero-video {
	width: 100%;
	height: 110%;
	object-fit: cover;
	object-position: center;
	position: absolute;
	top: -5%;
	left: 0;
	will-change: transform;
}

.pe-single__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(10, 10, 10, 0.75) 0%,
		rgba(10, 10, 10, 0.2) 40%,
		rgba(10, 10, 10, 0.1) 100%
	);
}

.pe-single__hero-content {
	position: relative;
	z-index: 2;
	padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px);
	max-width: 900px;
	color: var(--pe-white);
}

.pe-single__hero-meta {
	margin-bottom: 24px;
}

.pe-single__volume-link {
	display: inline-block;
	font-family: var(--pe-sans);
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	margin-bottom: 12px;
	transition: color 0.3s;
}

.pe-single__volume-link:hover {
	color: var(--pe-white);
}

.pe-single__pillar-badge {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pe-single__pillar-label {
	font-family: var(--pe-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pillar-bg);
}

.pe-single__pillar-divider {
	color: rgba(255, 255, 255, 0.3);
}

.pe-single__pillar-tagline {
	font-family: var(--pe-sans);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
}

.pe-single__title {
	font-family: var(--pe-serif);
	font-size: clamp(36px, 7vw, 72px);
	font-weight: 400;
	line-height: 1.08;
	margin: 0 0 20px;
	letter-spacing: -0.02em;
}

.pe-single__subtitle {
	font-family: var(--pe-serif);
	font-size: clamp(18px, 2.5vw, 24px);
	font-style: italic;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 24px;
}

.pe-single__hero-details {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.pe-single__read-time,
.pe-single__credit {
	font-family: var(--pe-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.5);
}

.pe-single__scroll-indicator {
	position: absolute;
	bottom: clamp(24px, 4vw, 48px);
	right: clamp(24px, 4vw, 48px);
	color: rgba(255, 255, 255, 0.4);
}

.pe-scroll-dot {
	animation: pe-scroll-dot 2s ease-in-out infinite;
}

@keyframes pe-scroll-dot {
	0%, 100% { transform: translateY(0); opacity: 1; }
	50% { transform: translateY(4px); opacity: 0.3; }
}

/* ══════════════════════════════════════
   SINGLE — ARTICLE BODY
   ══════════════════════════════════════ */
.pe-single__body {
	max-width: 680px;
	margin: 0 auto;
	padding: clamp(60px, 8vw, 100px) 24px;
}

.pe-single__lead {
	font-family: var(--pe-sans);
	font-size: clamp(16px, 1.8vw, 18px);
	line-height: 1.85;
	color: var(--pe-grey-700);
}

.pe-single__lead > p:first-child::first-letter {
	font-family: var(--pe-serif);
	font-size: 3.8em;
	float: left;
	line-height: 0.8;
	margin: 6px 12px 0 0;
	color: var(--pillar-accent);
	font-weight: 400;
}

.pe-single__lead p {
	margin-bottom: 1.4em;
}

.pe-single__lead h2,
.pe-single__lead h3 {
	font-family: var(--pe-serif);
	font-weight: 400;
	color: var(--pe-grey-900);
	margin: 2.5em 0 0.8em;
	letter-spacing: -0.01em;
}

.pe-single__lead h2 {
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.25;
}

.pe-single__lead h3 {
	font-size: clamp(20px, 2.5vw, 26px);
	line-height: 1.3;
}

.pe-single__lead a {
	color: var(--pillar-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.3s;
}

.pe-single__lead a:hover {
	opacity: 0.7;
}

.pe-single__lead blockquote {
	border-left: 3px solid var(--pillar-accent);
	margin: 2em 0;
	padding: 0.5em 0 0.5em 24px;
	font-family: var(--pe-serif);
	font-size: clamp(18px, 2.2vw, 22px);
	font-style: italic;
	line-height: 1.6;
	color: var(--pe-grey-700);
}

.pe-single__lead img {
	max-width: 100%;
	height: auto;
	margin: 2em 0;
	border-radius: 2px;
}

/* Full-width images that break out of the body column */
.pe-single__lead .alignfull,
.pe-single__lead .wp-block-image.is-style-full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
}

.pe-single__lead .alignfull img {
	width: 100%;
	margin: 0;
}

.pe-single__lead .alignwide {
	width: calc(100% + 120px);
	max-width: 100vw;
	margin-left: -60px;
	margin-right: -60px;
}

@media (max-width: 768px) {
	.pe-single__lead .alignwide {
		width: calc(100% + 48px);
		margin-left: -24px;
		margin-right: -24px;
	}
}

/* ══════════════════════════════════════
   SINGLE — INLINE IMAGES (interwoven)
   ══════════════════════════════════════ */

/* Full-width break image */
.pe-inline-image {
	margin: 0;
}

.pe-inline-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 2px;
}

.pe-inline-image__caption {
	font-family: var(--pe-sans);
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--pe-grey-500);
	padding: 10px 0 0;
}

.pe-inline-image--full {
	width: 100vw;
	max-width: 100vw;
	margin: clamp(40px, 6vw, 72px) 0;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
}

.pe-inline-image--full img {
	width: 100%;
	max-height: 75vh;
	object-fit: cover;
	border-radius: 0;
}

.pe-inline-image--full .pe-inline-image__caption {
	max-width: 680px;
	margin: 0 auto;
	padding: 12px 24px 0;
}

/* Offset right — image breaks out of column to the right */
.pe-inline-image--offset-right {
	width: calc(100% + 160px);
	max-width: 90vw;
	margin: clamp(40px, 6vw, 72px) 0;
	margin-right: -160px;
}

/* Offset left — image breaks out of column to the left */
.pe-inline-image--offset-left {
	width: calc(100% + 160px);
	max-width: 90vw;
	margin: clamp(40px, 6vw, 72px) 0;
	margin-left: -160px;
}

@media (max-width: 960px) {
	.pe-inline-image--offset-right,
	.pe-inline-image--offset-left {
		width: calc(100% + 48px);
		margin-left: -24px;
		margin-right: -24px;
	}
}

/* Diptych — two images side by side */
.pe-inline-diptych {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: calc(100% + 200px);
	max-width: 95vw;
	margin: clamp(40px, 6vw, 72px) auto;
	margin-left: -100px;
}

.pe-inline-diptych__figure {
	margin: 0;
	overflow: hidden;
}

.pe-inline-diptych__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4/3;
	display: block;
	transition: transform 0.8s var(--pe-ease-out-expo);
}

.pe-inline-diptych__figure:hover img {
	transform: scale(1.03);
}

.pe-inline-diptych__figure .pe-inline-image__caption {
	font-family: var(--pe-sans);
	font-size: 12px;
	color: var(--pe-grey-500);
	padding: 8px 0 0;
}

@media (max-width: 768px) {
	.pe-inline-diptych {
		grid-template-columns: 1fr;
		width: calc(100% + 48px);
		margin-left: -24px;
		margin-right: -24px;
	}
}

/* ══════════════════════════════════════
   SINGLE — PHOTO GALLERY
   ══════════════════════════════════════ */
.pe-single__gallery {
	padding: 0 0 clamp(60px, 8vw, 100px);
}

.pe-gallery {
	width: 100%;
}

/* Diptych (2 images side by side) */
.pe-gallery--diptych {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

@media (max-width: 600px) {
	.pe-gallery--diptych {
		grid-template-columns: 1fr;
	}
}

/* Grid (2x2) */
.pe-gallery--grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

@media (max-width: 600px) {
	.pe-gallery--grid {
		grid-template-columns: 1fr;
	}
}

.pe-gallery__figure {
	margin: 0;
	overflow: hidden;
}

.pe-gallery__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.8s var(--pe-ease-out-expo);
}

.pe-gallery__figure:hover img {
	transform: scale(1.03);
}

.pe-gallery__figure figcaption {
	font-family: var(--pe-sans);
	font-size: 12px;
	color: var(--pe-grey-500);
	padding: 8px 0;
	letter-spacing: 0.02em;
}

/* Horizontal scroll gallery */
.pe-gallery--scroll {
	position: relative;
	overflow: hidden;
	padding: 0 0 64px;
}

.pe-gallery__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 0 24px;
	scrollbar-width: none;
}

.pe-gallery__track::-webkit-scrollbar {
	display: none;
}

.pe-gallery--scroll .pe-gallery__figure {
	flex: 0 0 80vw;
	max-width: 900px;
	scroll-snap-align: center;
}

@media (min-width: 768px) {
	.pe-gallery--scroll .pe-gallery__figure {
		flex: 0 0 60vw;
	}
}

.pe-gallery--scroll .pe-gallery__figure img {
	aspect-ratio: 16/10;
}

.pe-gallery__counter {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--pe-mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--pe-grey-500);
}

.pe-gallery__nav {
	position: absolute;
	bottom: 12px;
	right: 24px;
	display: flex;
	gap: 8px;
}

.pe-gallery__prev,
.pe-gallery__next {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--pe-grey-300);
	background: var(--pe-cream);
	color: var(--pe-grey-700);
	cursor: pointer;
	transition: all 0.3s var(--pe-transition);
}

.pe-gallery__prev:hover,
.pe-gallery__next:hover {
	background: var(--pe-grey-900);
	color: var(--pe-white);
	border-color: var(--pe-grey-900);
}

/* ══════════════════════════════════════
   SINGLE — PULL QUOTES
   ══════════════════════════════════════ */
.pe-pullquote {
	padding: clamp(48px, 6vw, 80px) 24px;
	margin: 0;
	border: none;
	background: var(--pillar-dark, var(--pe-grey-900));
}

.pe-pullquote__inner {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.pe-pullquote__text {
	font-family: var(--pe-serif);
	font-size: clamp(22px, 3.5vw, 36px);
	font-weight: 400;
	font-style: italic;
	line-height: 1.4;
	color: var(--pe-white);
	margin: 0 0 20px;
	letter-spacing: -0.01em;
}

.pe-pullquote__cite {
	font-family: var(--pe-sans);
	font-size: 13px;
	font-style: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pillar-bg, var(--pe-grey-500));
}

/* Alternate pull quotes — pillar colored background */
.pe-pullquote:nth-of-type(even) {
	background: var(--pillar-accent, var(--pe-grey-700));
}

/* ══════════════════════════════════════
   SINGLE — SHARE / ACTIONS
   ══════════════════════════════════════ */
.pe-single__actions {
	padding: clamp(48px, 6vw, 80px) 24px;
	border-top: 1px solid var(--pe-grey-100);
}

.pe-single__actions-inner {
	max-width: 680px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
}

.pe-share {
	display: flex;
	align-items: center;
	gap: 16px;
}

.pe-share__label {
	font-family: var(--pe-sans);
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--pe-grey-300);
}

.pe-share__links {
	display: flex;
	gap: 8px;
}

.pe-share__link {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--pe-grey-100);
	border-radius: 50%;
	color: var(--pe-grey-500);
	text-decoration: none;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s var(--pe-transition);
}

.pe-share__link:hover {
	background: var(--pillar-accent);
	color: var(--pe-white);
	border-color: var(--pillar-accent);
}

/* ══════════════════════════════════════
   SINGLE — ARTICLE NAVIGATION
   ══════════════════════════════════════ */
.pe-single__nav {
	padding: clamp(60px, 8vw, 100px) 24px;
	background: var(--pe-grey-900);
}

.pe-single__nav-inner {
	max-width: 1000px;
	margin: 0 auto;
	text-align: center;
}

.pe-single__nav-label {
	display: block;
	font-family: var(--pe-sans);
	font-size: 13px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--pe-grey-500);
	margin-bottom: 40px;
}

.pe-single__nav-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin-bottom: 48px;
}

.pe-nav-card {
	display: flex;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.04);
	overflow: hidden;
	transition: background 0.3s var(--pe-transition);
}

.pe-nav-card:hover {
	background: rgba(255, 255, 255, 0.08);
}

.pe-nav-card__image {
	flex: 0 0 120px;
	overflow: hidden;
}

.pe-nav-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--pe-transition);
}

.pe-nav-card:hover .pe-nav-card__image img {
	transform: scale(1.05);
}

.pe-nav-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 24px;
	text-align: left;
}

.pe-nav-card__pillar {
	font-family: var(--pe-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pillar-accent);
	margin-bottom: 6px;
}

.pe-nav-card__title {
	font-family: var(--pe-serif);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--pe-white);
	margin-bottom: 6px;
}

.pe-nav-card__time {
	font-family: var(--pe-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	color: var(--pe-grey-500);
}

/* ══════════════════════════════════════
   REVEAL ANIMATIONS
   ══════════════════════════════════════ */
.pe-reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.8s var(--pe-ease-out-expo),
				transform 0.8s var(--pe-ease-out-expo);
}

.pe-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Parallax elements start with no visible transform — JS handles it */
.pe-parallax {
	will-change: transform;
}

/* ══════════════════════════════════════
   MOBILE REFINEMENTS
   ══════════════════════════════════════ */
@media (max-width: 480px) {
	.pe-cover__label {
		font-size: 10px;
	}

	.pe-article-card__content {
		padding: 32px 20px 48px;
		margin-top: -80px;
	}

	.pe-article-card__hero {
		height: 50vh;
		min-height: 350px;
	}

	.pe-single__hero-content {
		padding: 32px 20px;
	}

	.pe-single__actions-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.pe-single__nav-grid {
		grid-template-columns: 1fr;
	}

	.pe-nav-card__image {
		flex: 0 0 90px;
	}

	.pe-intro__pillars {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}
}

/* ══════════════════════════════════════
   TAXONOMY ARCHIVE (volume pages)
   — uses same styles as main archive
   ══════════════════════════════════════ */
.tax-editorial_volume .page-wrapper {
	background: var(--pe-cream);
}
