:root {
	/* Interaction* Interaction:* Interaction:** Interaction: */
	/* Design compliance vocabulary: When the user's mouse moves near a candle flame (within 200px radius IntersectionObserver handles scroll-triggered reveals with no scroll event listeners IntersectionObserver with `threshold: 0.15`. Each panel animates in over 600ms with a 100ms stagger between siblings. Source Sans 3" (Google Fonts */
	--deep-ground: #2C2826;
	--mid-shadow: #4A3F3A;
	--warm-accent: #B8602A;
	--amber-glow: #D4956A;
	--light-parchment: #F5F0E8;
	--pale-birch: #EDE5D8;
	--ember-highlight: #E8A84C;
	--text-dark: #5A504A;
	--text-soft: #C4B8AC;
	--title-size: clamp(4rem, 10vw, 9rem);
	--section-size: clamp(2.5rem, 8vw, 7rem);
	--quote-size: clamp(1.4rem, 3vw, 2.8rem);
	--body-size: clamp(0.95rem, 1.5vw, 1.15rem);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	background: var(--deep-ground);
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	overflow-x: hidden;
	background: linear-gradient(180deg, var(--deep-ground) 0, var(--deep-ground) 18vh, var(--light-parchment) 120vh);
	color: var(--text-dark);
	font-family: "Source Sans 3", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: var(--body-size);
	font-weight: 400;
	line-height: 1.72;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(circle at 50% 8%, rgba(232, 168, 76, 0.18), transparent 27rem),
		repeating-linear-gradient(90deg, rgba(212, 149, 106, 0.035) 0 1px, transparent 1px 74px),
		repeating-linear-gradient(0deg, rgba(90, 80, 74, 0.025) 0 1px, transparent 1px 31px);
	mix-blend-mode: multiply;
}

.ember-canvas {
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	mix-blend-mode: screen;
	opacity: 0.75;
}

.cursor-glow {
	position: fixed;
	left: 0;
	top: 0;
	width: 250px;
	height: 250px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(232, 168, 76, 0.03) 0%, rgba(232, 168, 76, 0.018) 36%, transparent 70%);
	mix-blend-mode: screen;
	pointer-events: none;
	z-index: 3;
	transform: translate3d(-300px, -300px, 0);
}

.opening-hero {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	overflow: hidden;
	display: grid;
	place-items: center;
	background: var(--deep-ground);
}

.opening-hero::after {
	content: "";
	position: absolute;
	inset: auto -10vw -12vh -10vw;
	height: 34vh;
	background: linear-gradient(180deg, transparent, var(--light-parchment));
}

.hero-flame {
	width: min(420px, 72vw);
	height: min(420px, 72vw);
	opacity: 0;
	filter: drop-shadow(0 0 56px rgba(232, 168, 76, 0.32));
	mix-blend-mode: screen;
	animation: flameEnter 1200ms ease-out 400ms forwards;
}

.hero-flame.is-corner {
	position: fixed;
	left: 24px;
	top: 24px;
	width: 90px;
	height: 90px;
	z-index: 8;
	transition: width 700ms ease, height 700ms ease, opacity 700ms ease;
}

.site-title {
	position: absolute;
	top: 15%;
	left: 8%;
	max-width: 88vw;
	color: var(--light-parchment);
	font-family: "Bebas Neue", Impact, sans-serif;
	font-size: var(--title-size);
	font-weight: 400;
	letter-spacing: 0.3em;
	line-height: 0.9;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(20px);
	animation: titleReveal 1200ms ease-out 1600ms forwards, titleTighten 800ms ease-out 1600ms forwards;
}

.subtitle-block {
	position: absolute;
	right: 8%;
	bottom: 14%;
	max-width: 360px;
	opacity: 0;
	transform: translateY(-20px);
	animation: subtitleReveal 1000ms ease-out 2400ms forwards;
}

.subtitle {
	color: var(--amber-glow);
	font-family: "Cormorant Garamond", Cormorant, serif;
	font-size: var(--quote-size);
	font-weight: 500;
	line-height: 1.25;
	text-align: right;
}

@keyframes flameEnter {
	to { opacity: 1; transform: scale(1); }
	from { opacity: 0; transform: scale(0.82); }
}

@keyframes titleReveal {
	to { opacity: 1; transform: translateY(0); }
}

@keyframes titleTighten {
	to { letter-spacing: 0.04em; }
}

@keyframes subtitleReveal {
	to { opacity: 1; transform: translateY(0); }
}

.content-main {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	padding: 90px clamp(24px, 4vw, 62px) 0;
	background: var(--light-parchment);
}

.panel,
.archive-card {
	position: relative;
	opacity: 0;
	box-shadow: 8px 12px 32px rgba(44, 40, 38, 0.15);
	clip-path: polygon(0 0, 100% 0.7%, 99.5% calc(100% - 2px), 0 100%);
	transform: translateY(30px) rotate(var(--rotation, 0deg));
	transition: opacity 600ms ease, transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel.in-view,
.archive-card.in-view {
	opacity: 1;
	transform: translateY(0) rotate(var(--rotation, 0deg));
}

.panel {
	padding: clamp(30px, 4vw, 54px);
	min-height: 420px;
}

.panel-light { background-color: var(--light-parchment); }
.panel-birch { background-color: var(--pale-birch); }
.panel-dark { background-color: var(--deep-ground); color: var(--text-soft); }

.folded::after {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	width: 22px;
	height: 22px;
	background: linear-gradient(135deg, rgba(212, 149, 106, 0.55), var(--pale-birch) 52%, rgba(74, 63, 58, 0.12) 53%);
	box-shadow: -3px 3px 8px rgba(44, 40, 38, 0.08);
}

.panel-1 {
	grid-column: 2 / 8;
	--rotation: -2deg;
}

.panel-2 {
	grid-column: 6 / 12;
	margin-top: -46px;
	z-index: 2;
	--rotation: 1.8deg;
}

.panel-3 {
	grid-column: 3 / 10;
	margin-top: -14px;
	--rotation: -1.25deg;
}

.eyebrow {
	margin-bottom: 12px;
	color: var(--amber-glow);
	font-family: "Source Sans 3", Inter, sans-serif;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 1;
	text-transform: uppercase;
}

.panel-title,
.shelf-title,
.closing-title {
	font-family: "Bebas Neue", Impact, sans-serif;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 0.92;
	text-transform: uppercase;
}

.panel-title {
	margin-bottom: 28px;
	color: var(--warm-accent);
	font-size: clamp(2.5rem, 6vw, 5.9rem);
}

.panel-dark .panel-title,
.panel-dark .eyebrow { color: var(--amber-glow); }

.panel p,
.archive-card p {
	max-width: 42ch;
}

.panel p + p { margin-top: 20px; }

.pull-quote {
	margin-top: 34px;
	padding-left: 24px;
	border-left: 3px solid var(--amber-glow);
	color: var(--amber-glow);
	font-family: "Cormorant Garamond", Cormorant, serif;
	font-size: clamp(1.3rem, 2.4vw, 2rem);
	font-style: italic;
	font-weight: 500;
	line-height: 1.28;
}

.pull-quote cite {
	display: block;
	margin-top: 14px;
	color: var(--text-soft);
	font-size: 0.72em;
	font-style: normal;
}

.wax-seal-divider {
	grid-column: 2 / 12;
	position: relative;
	width: 48px;
	height: 48px;
	margin: 78px auto;
	border-radius: 50%;
	background: var(--warm-accent);
	box-shadow: inset 0 3px 12px rgba(44, 40, 38, 0.28), 0 8px 18px rgba(44, 40, 38, 0.12);
}

.wax-seal-divider::before,
.wax-seal-divider::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 44vw;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(212, 149, 106, 0.35));
}

.wax-seal-divider::before { right: 58px; }
.wax-seal-divider::after { left: 58px; transform: scaleX(-1); }

.corridor-transition {
	grid-column: 1 / -1;
	min-height: 60vh;
	margin: 70px calc(clamp(24px, 4vw, 62px) * -1);
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at center, rgba(232, 168, 76, 0.16), transparent 32rem),
		var(--deep-ground);
	clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
}

.candle-row {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: clamp(10px, 4vw, 54px);
	width: min(960px, 92vw);
}

.corridor-candle,
.closing-candle {
	mix-blend-mode: screen;
	filter: drop-shadow(0 0 62px rgba(232, 168, 76, 0.34));
}

.corridor-candle:nth-child(2n) { transform: translateY(24px) scale(0.88); }
.corridor-candle:nth-child(3) { transform: translateY(-12px) scale(1.08); }

.archive-shelf {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 28px;
	padding: 42px 0 110px;
}

.shelf-heading {
	grid-column: 2 / 6;
}

.shelf-title {
	color: var(--warm-accent);
	font-size: clamp(3rem, 7vw, 6.5rem);
}

.archive-card {
	background: var(--pale-birch);
	padding: 31px;
	max-width: 320px;
	min-height: 260px;
}

.archive-card h3 {
	margin-bottom: 16px;
	color: var(--warm-accent);
	font-family: "Cormorant Garamond", Cormorant, serif;
	font-size: clamp(1.45rem, 2.2vw, 2rem);
	font-weight: 600;
	line-height: 1.1;
}

.card-a { grid-column: 2 / 5; --rotation: 3.2deg; margin-top: 126px; }
.card-b { grid-column: 5 / 8; --rotation: -3.8deg; }
.card-c { grid-column: 8 / 11; --rotation: 4.4deg; margin-top: 82px; }
.card-d { grid-column: 4 / 7; --rotation: 2.2deg; margin-top: -20px; }

.closing-section {
	grid-column: 1 / -1;
	margin: 0 calc(clamp(24px, 4vw, 62px) * -1);
	padding: min(15vh, 150px) 24px 120px;
	display: grid;
	place-items: center;
	text-align: center;
	background:
		radial-gradient(circle at 50% 68%, rgba(232, 168, 76, 0.2), transparent 24rem),
		var(--deep-ground);
	color: var(--text-soft);
}

.closing-copy {
	max-width: 58ch;
	margin-bottom: 24px;
}

.closing-title {
	margin-bottom: 28px;
	color: var(--light-parchment);
	font-size: var(--section-size);
}

.closing-section .eyebrow { color: var(--amber-glow); }

.closing-candle {
	width: min(240px, 52vw);
	height: auto;
}

@media (max-width: 768px) {
	.content-main,
	.archive-shelf {
		display: block;
		padding-left: 20px;
		padding-right: 20px;
	}

	.panel,
	.archive-card,
	.shelf-heading {
		max-width: none;
		margin: 0 0 28px;
		--rotation: -1deg;
	}

	.panel-2,
	.panel-3 { margin-top: 0; }
	.archive-card:nth-of-type(2n) { --rotation: 1deg; }

	.site-title {
		left: 18px;
		font-size: clamp(2.8rem, 12vw, 5rem);
		white-space: normal;
	}

	.subtitle-block { right: 18px; max-width: 260px; }
	.candle-row .corridor-candle:not(:nth-child(3)) { display: none; }
	.cursor-glow { display: none; }
}

@media (max-width: 480px) {
	.panel,
	.archive-card { --rotation: 0deg; padding: 24px; }
	.content-main { padding-left: 16px; padding-right: 16px; }
	.hero-flame { width: 240px; height: 240px; }
	.site-title { font-size: clamp(2.2rem, 14vw, 3.6rem); }
	.subtitle { font-size: clamp(1.15rem, 7vw, 1.8rem); }
}
