/* ==========================================================================
   Fiddler on the Roof · BFHS
   Tokens, base, layout, components, sections, motion, responsive
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	--navy: #101824;
	--navy-deep: #0b111a;
	--charcoal: #242B33;
	--parchment: #F3E5C8;
	--amber: #E5A13D;
	--burnt: #B94B24;
	--btn: #A64220;          /* Burnt Orange tuned to pass WCAG AA with parchment text (4.9:1) */
	--btn-hover: #B34823;    /* slightly brighter, still AA with --btn-text-hover */
	--btn-text-hover: #FFF4DC;
	--rust: #92351F;
	--dusty: #527DA1;
	--dusty-text: #7FA5C6;   /* Dusty Blue lifted for readable links on dark (5.5:1 or better) */
	--linen: #C7AE8C;
	--line: rgba(199, 174, 140, 0.22);

	--font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
	--font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

	--nav-h: 76px;
	--max-w: 1240px;
	--gutter: clamp(1rem, 5vw, 4rem);
	--radius: 3px;
	--ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-h) + 8px);
	background: var(--navy);
}

body {
	margin: 0;
	background: var(--navy);
	color: var(--parchment);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

/* Fine film grain across the whole page (decorative, static). */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 60;
	pointer-events: none;
	opacity: 0.045;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--dusty-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--parchment); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 0.6em;
	color: var(--parchment);
	text-wrap: balance;
}
p { margin: 0 0 1.1em; }
em { font-style: italic; }

:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection { background: var(--rust); color: var(--parchment); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem; top: -100px;
	z-index: 300;
	background: var(--parchment);
	color: var(--navy);
	padding: 0.75rem 1.25rem;
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
	width: 100%;
	max-width: var(--max-w);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- 3. Type helpers ---------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--linen);
	margin-bottom: 1.25rem;
}
.eyebrow::before {
	content: "";
	width: 7px; height: 7px;
	background: var(--amber);
	transform: rotate(45deg);
	flex: none;
}

.display {
	font-family: var(--font-display);
	line-height: 1.12;
	font-size: clamp(2.15rem, 4.6vw, 3.9rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}
.display em { color: var(--amber); font-weight: 500; }
.display-xl { font-size: clamp(2.5rem, 6vw, 5.2rem); }

.lead {
	font-size: clamp(1.15rem, 1.6vw, 1.35rem);
	line-height: 1.6;
	color: var(--parchment);
}
.muted { color: var(--linen); }

.ornament { display: block; margin: 1.25rem 0 1.5rem; line-height: 0; }
.ornament img { width: min(220px, 60vw); height: auto; opacity: 0.95; }
.section-head .ornament img, .invitation .ornament img, .inner-head .ornament img { margin-inline: auto; }

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--dusty-text);
	background: none;
	border: 0;
	padding: 0.35rem 0;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: rgba(127, 165, 198, 0.4);
	text-underline-offset: 0.25em;
}
.text-link:hover { color: var(--parchment); text-decoration-color: var(--amber); }

/* ---------- 4. Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 50px;
	padding: 0.85rem 1.7rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
	background: var(--btn);
	color: var(--parchment);
	border-color: #BC5631;
	box-shadow: 0 10px 30px -14px rgba(185, 75, 36, 0.8);
}
.btn-primary:hover {
	background: var(--btn-hover);
	color: var(--btn-text-hover);
	border-color: var(--amber);
	box-shadow: 0 12px 36px -12px rgba(229, 161, 61, 0.45);
}

.btn-ghost {
	background: transparent;
	color: var(--amber);
	border-color: var(--amber);
}
.btn-ghost:hover { background: rgba(229, 161, 61, 0.1); color: var(--parchment); }

.btn-sm { min-height: 42px; padding: 0.6rem 1.15rem; font-size: 0.8125rem; }

.round-btn {
	display: inline-grid;
	place-items: center;
	width: 48px; height: 48px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: rgba(36, 43, 51, 0.7);
	color: var(--parchment);
	cursor: pointer;
	transition: border-color 0.3s, background-color 0.3s, opacity 0.3s;
}
.round-btn:hover { border-color: var(--amber); background: var(--charcoal); }
.round-btn[disabled] { opacity: 0.35; cursor: default; }

/* ---------- 5. Navigation ---------- */
.site-nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--nav-h);
	transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s;
	border-bottom: 1px solid transparent;
}
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }

.site-nav.is-scrolled,
.is-inner .site-nav {
	background: rgba(36, 43, 51, 0.88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom-color: rgba(146, 53, 31, 0.45);
}

.nav-inner {
	height: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.nav-brand { display: block; flex: none; transition: opacity 0.5s var(--ease); }
.nav-logo { width: 128px; height: auto; }
.js .is-home-stage .site-nav:not(.show-brand) .nav-brand { opacity: 0; pointer-events: none; }
/* A backdrop filter would trap the fixed mobile menu inside the bar */
.nav-open .site-nav { -webkit-backdrop-filter: none; backdrop-filter: none; }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
	position: relative;
	color: var(--linen);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 0.5rem 0;
}
.nav-list a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0.2rem;
	height: 1px;
	background: var(--amber);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--ease);
}
.nav-list a:hover, .nav-list .current-menu-item a { color: var(--parchment); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-toggle {
	display: none;
	position: relative;
	z-index: 201;
	width: 48px; height: 48px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(16, 24, 36, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: var(--parchment);
	cursor: pointer;
}
.nav-toggle .bars { display: grid; gap: 6px; width: 24px; margin: auto; }
.nav-toggle .bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.25s; }
.nav-open .nav-toggle .bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. Shared visual pieces ---------- */
.cutout { width: 100%; height: auto; }
.fade-bottom {
	-webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 99%);
	mask-image: linear-gradient(to bottom, #000 68%, transparent 99%);
}

/* Restrained stage light, used behind three performers only */
.hero-spot {
	position: absolute;
	inset: -6% -20% 15% -25%;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(ellipse 48% 46% at 56% 40%, rgba(229, 161, 61, 0.17) 0%, rgba(229, 161, 61, 0.06) 45%, transparent 72%);
}
.spot-soft { background: radial-gradient(ellipse 46% 50% at 50% 42%, rgba(229, 161, 61, 0.13) 0%, rgba(146, 53, 31, 0.06) 48%, transparent 74%); }

.section { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; }
.section-alt { background: linear-gradient(180deg, var(--charcoal) 0%, #1c232c 100%); }
.section-head { text-align: center; max-width: 820px; margin-inline: auto; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

[data-depth] { will-change: transform; }

/* ---------- 7. Hero (parallax 1): painted scene from the Media Library ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	background: var(--navy);
}
.scene-layer { position: absolute; pointer-events: none; }
[data-speed] { will-change: transform; }
.scene-img { display: block; width: 100%; height: auto; max-width: none; }

.scene-sky { inset: 0; z-index: 0; }
.scene-sky .scene-img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 55%; }

.scene-village { left: -2%; right: -2%; bottom: -27vh; z-index: 1; }

.scene-tevye {
	z-index: 2;
	right: -5vw;
	bottom: 0;
	/* Tall, but capped by width so his raised fist never meets the logo on laptops */
	height: min(84vh, 46vw);
	height: min(84svh, 46vw);
	aspect-ratio: 1536 / 1024;
}
.scene-tevye .scene-img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
.scene-tevye .scene-img.is-fallback { object-position: 80% bottom; }

.scene-roofs { left: -2%; right: -2%; bottom: -36vh; z-index: 3; }

/* Restrained navy falloff so the logo and dates stay readable over the painted sky */
.hero-shade {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(16, 24, 36, 0.55) 0%, rgba(16, 24, 36, 0) 16%),
		linear-gradient(90deg, rgba(16, 24, 36, 0.8) 0%, rgba(16, 24, 36, 0.62) 28%, rgba(16, 24, 36, 0.18) 46%, rgba(16, 24, 36, 0) 58%);
}
.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 16%;
	z-index: 5;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(16, 24, 36, 0), var(--navy));
}

.hero-inner { position: relative; z-index: 6; padding-top: var(--nav-h); padding-bottom: 7rem; }
.hero-copy { max-width: min(540px, 44vw); }
.hero-countdown { margin-bottom: 1.25rem; }
.hero-logo { margin: 0 0 1.5rem; line-height: 0; }
.hero-logo-img { width: min(540px, 100%); height: auto; filter: drop-shadow(0 10px 26px rgba(8, 12, 18, 0.7)); }

.hero-dates {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.3rem, 2vw, 1.65rem);
	line-height: 1.4;
	margin-bottom: 0.6rem;
	text-shadow: 0 2px 14px rgba(8, 12, 18, 0.8);
}
.hero-dates span { display: block; }
.hero-dates span + span { font-size: 0.8em; color: var(--linen); }
.hero-venue {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--linen);
	margin-bottom: 2rem;
	text-shadow: 0 2px 10px rgba(8, 12, 18, 0.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .btn-ghost { background: rgba(16, 24, 36, 0.55); }

.hero-scroll {
	position: absolute;
	left: 50%;
	bottom: 1.5rem;
	z-index: 6;
	width: 44px; height: 44px;
	margin-left: -22px;
	display: grid;
	place-items: center;
}
.hero-scroll span {
	width: 1px; height: 38px;
	background: linear-gradient(to bottom, transparent, var(--amber));
	animation: drip 2.8s var(--ease) infinite;
	transform-origin: top;
}
@keyframes drip {
	0% { transform: scaleY(0); opacity: 0; }
	40% { transform: scaleY(1); opacity: 1; }
	100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- 8. Prologue ---------- */
.prologue { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.prologue-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}
.prologue-copy p:not(.eyebrow):not(.lead) { color: var(--linen); max-width: 36em; }
.prologue-figure { max-width: 460px; justify-self: center; }

/* ---------- 9. Story chapters ---------- */
.story { padding-bottom: clamp(3rem, 6vw, 5rem); }
.chapter { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.chapter + .chapter::before {
	content: "";
	position: absolute;
	top: 0; left: 50%;
	width: min(420px, 60vw);
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.chapter-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}
.chapter.is-wide .chapter-grid { grid-template-columns: 1.25fr 1fr; }
.chapter.is-wide.is-flipped .chapter-grid { grid-template-columns: 1fr 1.25fr; }
.chapter.is-tall .chapter-grid { grid-template-columns: 0.7fr 1fr; }
.chapter.is-tall.is-flipped .chapter-grid { grid-template-columns: 1fr 0.7fr; }
.chapter.is-flipped .chapter-figure { order: 2; }

.chapter-figure { position: relative; isolation: isolate; }
.chapter.is-portrait .chapter-figure { max-width: 470px; justify-self: center; width: 100%; }
.chapter.is-tall .chapter-figure { max-width: 380px; justify-self: center; width: 100%; }
.chapter.is-tall .cutout {
	-webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}
.chapter.lit .chapter-figure::before {
	content: "";
	position: absolute;
	inset: -10% -25% 10% -25%;
	z-index: -1;
	background: radial-gradient(ellipse 50% 48% at 50% 38%, rgba(229, 161, 61, 0.12), transparent 70%);
}

.chapter-copy { max-width: 33rem; }
.chapter-num {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 600;
	font-size: clamp(3rem, 6vw, 4.5rem);
	line-height: 1;
	color: var(--burnt);
	margin-bottom: 0.75rem;
}
.chapter-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.chapter-copy p:not(.chapter-num) { color: var(--linen); }
.chapter-copy p:not(.chapter-num):first-of-type { color: var(--parchment); font-size: 1.125rem; }

/* ---------- 10. Interlude (parallax 2): the fiddler on the roof ---------- */
.interlude {
	position: relative;
	min-height: min(100vh, 920px);
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	background: var(--navy);
}
.interlude-scene { position: absolute; inset: 0; z-index: 0; }
.interlude-sky { inset: -8% 0; }
.interlude-sky .scene-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 22% 35%;
	filter: brightness(0.62) saturate(0.9);
}
.interlude-village { left: -2%; right: -2%; bottom: -14%; }
.interlude-village .scene-img { filter: brightness(0.82); }
.interlude-front { left: auto; right: -2%; width: min(104%, calc(min(100vh, 920px) * 1.62)); bottom: -10%; }
.interlude-roofbox { position: relative; aspect-ratio: 1672 / 941; }
.interlude-roofs {
	position: relative;
	z-index: 1;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%);
	mask-image: linear-gradient(90deg, transparent 0, #000 14%);
}
/* Seated midway along the ridge of the right-hand roof (between the gable peak and the chimney), in the rooftop artwork's own coordinates */
.interlude-performer {
	position: absolute;
	z-index: 2;
	left: 72.5%;
	top: 30.5%;
	width: 22%;
}
.interlude-performer .scene-img { filter: drop-shadow(0 8px 8px rgba(5, 8, 12, 0.6)); }
.interlude-shade {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background:
		linear-gradient(180deg, var(--navy) 0%, rgba(16, 24, 36, 0) 18%, rgba(16, 24, 36, 0) 80%, var(--navy) 100%),
		linear-gradient(90deg, rgba(16, 24, 36, 0.88) 0%, rgba(16, 24, 36, 0.66) 34%, rgba(16, 24, 36, 0) 58%);
}
.interlude-inner { position: relative; z-index: 4; }
.interlude-copy { width: min(30rem, 42%); padding: 6rem 0 12rem; }
.interlude-line {
	font-size: clamp(1.75rem, 2.8vw, 2.5rem);
	font-weight: 500;
	line-height: 1.3;
	text-shadow: 0 2px 18px rgba(8, 12, 18, 0.8);
}
.interlude-line em { color: var(--amber); }
.interlude-copy p { color: var(--linen); text-shadow: 0 1px 10px rgba(8, 12, 18, 0.9); }

/* ---------- 11. Gallery strip ---------- */
.gallery { padding-bottom: clamp(4rem, 8vw, 7rem); }
.gallery-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2.5rem;
}
.gallery-head .display { margin-bottom: 0.4em; }
.gallery-head p { margin-bottom: 0; }
.strip-controls { display: flex; gap: 0.75rem; flex: none; }

.strip {
	display: flex;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	list-style: none;
	margin: 0;
	padding: 0.5rem max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter))) 1.25rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
	scrollbar-width: thin;
	scrollbar-color: var(--rust) transparent;
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--rust); border-radius: 3px; }
.strip-item { flex: 0 0 auto; scroll-snap-align: start; }
.strip-btn {
	position: relative;
	display: block;
	height: clamp(240px, 30vw, 400px);
	padding: 0;
	border: 0;
	background: var(--navy);
	cursor: zoom-in;
	overflow: hidden;
	border-radius: 2px;
}
.strip-btn img {
	height: 100%;
	width: auto;
	max-width: none;
	transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
	filter: saturate(0.95) brightness(0.94);
	mix-blend-mode: lighten; /* pure black stage background reads as the page navy */
}
/* Edges dissolve into the dark so photos feel lit on stage rather than framed */
.strip-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 50px 22px var(--navy);
}
.strip-btn:hover img, .strip-btn:focus-visible img { transform: scale(1.03); filter: none; }
.strip-btn:focus-visible { outline-offset: 4px; }

.lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(8, 12, 18, 0.97);
	color: var(--parchment);
}
.lightbox::backdrop { background: rgba(8, 12, 18, 0.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-figure { margin: 0; padding: 4.5rem 5.5rem 2rem; display: grid; justify-items: center; gap: 1rem; max-width: 100%; }
.lightbox-img { max-width: min(1280px, 100%); max-height: calc(100vh - 11rem); width: auto; height: auto; object-fit: contain; }
.lightbox-caption { max-width: 48rem; text-align: center; color: var(--linen); font-size: 1rem; }
.lightbox-count { color: var(--amber); font-weight: 600; letter-spacing: 0.12em; margin-right: 0.5rem; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-close { position: absolute; top: 1.25rem; right: 1.25rem; }

/* ---------- 12. Invitation (parallax 3) ---------- */
.invitation {
	position: relative;
	overflow: hidden;
	padding-top: clamp(5rem, 10vw, 8rem);
	text-align: center;
	isolation: isolate;
	background: linear-gradient(180deg, var(--navy) 0%, #0e1520 100%);
}
.invitation-copy { position: relative; z-index: 2; }
.invitation-copy .display { margin-bottom: 0.35em; }
.invitation-copy .lead { color: var(--linen); }
.invitation-figure {
	position: relative;
	width: min(860px, 88vw);
	margin: clamp(-2rem, -3vw, -1rem) auto 0;
	z-index: 1;
}
.invitation::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 30%;
	z-index: 2;
	background: linear-gradient(to bottom, transparent, var(--charcoal));
	pointer-events: none;
}

/* ---------- 13. Tickets ---------- */
.tickets {
	background: linear-gradient(180deg, var(--charcoal) 0%, #1b222b 55%, var(--navy) 100%);
	padding-top: clamp(3rem, 6vw, 5rem);
}
.stubs {
	list-style: none;
	margin: 0 0 clamp(3rem, 6vw, 4.5rem);
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}
.stub {
	--notch: 11px;
	position: relative;
	display: flex;
	flex-direction: column;
	background:
		linear-gradient(160deg, rgba(229, 161, 61, 0.07), transparent 45%),
		#1a2129;
	border: 1px solid var(--line);
	border-radius: 4px;
	text-align: center;
	transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.stub:hover { border-color: rgba(229, 161, 61, 0.55); }
.stub:first-child { border-color: rgba(229, 161, 61, 0.45); }
.stub-main { padding: 1.75rem 1.25rem 1.5rem; flex: 1; }
.stub-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--amber);
	margin-bottom: 1rem;
}
.stub-date { margin: 0 0 0.25rem; }
.stub-day { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--linen); }
.stub-num {
	display: block;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(3rem, 4.6vw, 4rem);
	line-height: 1.05;
	color: var(--parchment);
}
.stub-month { font-size: 0.42em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); vertical-align: 0.9em; }
.stub-time { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-bottom: 0.4rem; }
.stub-doors { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--linen); margin: 0; }
.stub-doors .icon { width: 16px; height: 16px; color: var(--amber); }

/* Perforated tear line with side notches */
.stub-foot {
	position: relative;
	padding: 1rem 1rem 1.15rem;
	border-top: 1px dashed rgba(199, 174, 140, 0.35);
	font-size: 0.875rem;
}
.stub-foot::before, .stub-foot::after {
	content: "";
	position: absolute;
	top: calc(var(--notch) * -1);
	width: calc(var(--notch) * 2);
	height: calc(var(--notch) * 2);
	border-radius: 50%;
	background: #20272f;
	border: 1px solid var(--line);
}
.stub-foot::before { left: calc(var(--notch) * -1 - 1px); clip-path: inset(0 0 0 50%); }
.stub-foot::after { right: calc(var(--notch) * -1 - 1px); clip-path: inset(0 50% 0 0); }
.stub-cal-label { display: flex; align-items: center; justify-content: center; gap: 0.4rem; color: var(--linen); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.35rem; }
.stub-cal-label .icon { width: 15px; height: 15px; }
.stub-cal-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.stub-cal-links a { color: var(--dusty-text); font-weight: 600; padding: 0.3rem 0; }
.stub-cal-links a:hover { color: var(--parchment); }
.stub-ended { color: var(--linen); font-style: italic; }
.stub.is-past { opacity: 0.5; }
.stub.is-past .stub-num { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--rust); }

.box-office {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: stretch;
}
.prices, .poster-share {
	padding: clamp(1.75rem, 4vw, 2.75rem);
	border: 1px solid var(--line);
	border-radius: 4px;
	background: rgba(16, 24, 36, 0.55);
}
.box-title { font-size: 1.5rem; margin-bottom: 1rem; }
.price-list { display: flex; gap: clamp(1.5rem, 5vw, 3.5rem); margin: 0 0 1.5rem; }
.price-list div { display: grid; }
.price-list dt { order: 2; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--linen); }
.price-list dd { order: 1; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.25rem); line-height: 1; color: var(--amber); }
.box-note { margin-bottom: 0.6rem; }
.box-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

.poster-share { display: grid; grid-template-columns: 150px 1fr; gap: 1.75rem; align-items: center; }
.poster-thumb { display: block; border-radius: 2px; overflow: hidden; box-shadow: 0 20px 40px -20px #000; transition: transform 0.5s var(--ease); }
.poster-thumb:hover { transform: translateY(-3px) rotate(-1deg); }
.share-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.share-status { min-height: 1.4em; margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--amber); }

/* ---------- 14. Visit ---------- */
.visit-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}
.venue {
	font-style: normal;
	display: grid;
	gap: 0.1rem;
	margin: 1.25rem 0 1.75rem;
	padding-left: 1.25rem;
	border-left: 2px solid var(--burnt);
	font-size: 1.125rem;
	color: var(--linen);
}
.venue strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--parchment); font-weight: 700; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.visit-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; color: var(--linen); }
.visit-notes li { position: relative; padding-left: 1.4rem; }
.visit-notes li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--amber); transform: rotate(45deg); }

.map-frame {
	position: relative;
	aspect-ratio: 4 / 3;
	border: 1px solid rgba(146, 53, 31, 0.6);
	border-radius: 4px;
	overflow: hidden;
	background: var(--navy);
	box-shadow: 0 30px 60px -30px #000;
}
.map-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95) contrast(0.92);
}

/* ---------- 15. Footer ---------- */
.curtain-call {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
	padding-top: clamp(3rem, 6vw, 5rem);
}
.curtain-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.curtain-figure { max-width: 420px; justify-self: center; width: 100%; }
.curtain-copy { padding-bottom: clamp(3rem, 7vw, 6rem); }
.curtain-line { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.curtain-copy .muted { margin-bottom: 1.75rem; }

.footer-main { background: #0c1219; border-top: 1px solid rgba(146, 53, 31, 0.5); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; font-size: 0.95rem; color: var(--linen); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { width: 220px; height: auto; }
.footer-heading { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.footer-shows, .footer-menu { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.35rem; }
.footer-menu a { color: var(--linen); text-decoration: none; }
.footer-menu a:hover { color: var(--parchment); }
.footer-credits { position: relative; margin-top: 3rem; padding-top: 2rem; font-size: 0.8125rem; line-height: 1.6; color: #a99579; }
.footer-credits::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer-credits p { margin: 0 0 0.35rem; max-width: 70em; }
.footer-credits p:first-child { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--linen); }
.footer-credits .copyright { margin-top: 1rem; }

/* ---------- 16. Inner pages ---------- */
.inner-main { padding-top: var(--nav-h); min-height: 70vh; }
.inner-head { text-align: center; padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 4vw, 3rem); background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(229, 161, 61, 0.07), transparent 70%); }
.inner-head .lead { max-width: 40rem; margin-inline: auto; }
.prose { max-width: 760px; padding-bottom: clamp(4rem, 8vw, 6rem); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.6em; }
.prose img { border-radius: 2px; }
.prose blockquote { margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.5rem; border-left: 2px solid var(--burnt); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose .wp-block-button__link { background: var(--btn); color: var(--parchment); border-radius: var(--radius); }
.inner-thumb { margin: 0 auto 2.5rem; }
.post-card { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.post-card h2 { margin: 0 0 0.3rem; font-size: 1.75rem; }
.post-card h2 a { color: var(--parchment); text-decoration: none; }
.post-card h2 a:hover { color: var(--amber); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.editor-extra .prose { padding-bottom: 0; }

/* ---------- 17. Reveal (opacity only for reading comfort) ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1100px) {
	.stubs { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	:root { --nav-h: 66px; }

	/* Mobile navigation overlay */
	.nav-toggle { display: grid; }
	.nav-menu {
		position: fixed;
		inset: 0;
		z-index: 200;
		flex-direction: column;
		justify-content: center;
		gap: 2.5rem;
		padding: 6rem 2rem 3rem;
		background: rgba(11, 17, 26, 0.98);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
	}
	.nav-open .nav-menu { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
	.nav-list { flex-direction: column; align-items: center; gap: 1.4rem; }
	.nav-list a { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--parchment); }
	.nav-cta { min-height: 52px; padding: 0.85rem 2rem; font-size: 0.95rem; }
	.nav-logo { width: 104px; }

	/* Hero: logo and dates first, the painted scene below, never overlapping */
	.hero { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; }
	.hero-inner { order: 1; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 0; text-align: center; }
	.hero-copy { max-width: 560px; margin-inline: auto; }
	.hero-countdown { justify-content: center; }
	.hero-logo-img { width: min(500px, 92%); margin-inline: auto; }
	.hero-actions { justify-content: center; }
	.hero-shade {
		background: linear-gradient(180deg, rgba(16, 24, 36, 0.78) 0%, rgba(16, 24, 36, 0.62) 45%, rgba(16, 24, 36, 0.2) 64%, rgba(16, 24, 36, 0) 74%);
	}
	.scene-sky .scene-img { object-position: 40% 50%; }
	.scene-tevye {
		order: 2;
		position: relative;
		right: auto;
		bottom: auto;
		height: auto;
		width: 150vw;
		max-width: none;
		margin: 0.5rem 0 0 -34vw;
		aspect-ratio: 1536 / 1024;
		z-index: 2;
	}
	.scene-village { left: -50vw; right: auto; width: 200vw; bottom: -30vw; }
	.scene-roofs { left: -88vw; right: auto; width: 200vw; bottom: -40vw; }
	.hero::after { height: 10%; }
	[data-speed], [data-depth] { transform: none !important; }
	.hero-scroll { display: none; }

	.prologue-grid, .chapter-grid, .chapter.is-wide .chapter-grid, .chapter.is-wide.is-flipped .chapter-grid,
	.chapter.is-tall .chapter-grid, .chapter.is-tall.is-flipped .chapter-grid,
	.visit-grid, .box-office, .curtain-grid { grid-template-columns: 1fr; }

	.prologue-figure { max-width: 340px; order: 2; }
	.chapter-figure, .chapter.is-flipped .chapter-figure { order: 0; }
	.chapter.is-portrait .chapter-figure { max-width: 340px; }
	.chapter.is-tall .chapter-figure { max-width: 280px; }
	.chapter-copy { max-width: none; }
	.chapter.lit .chapter-figure::before { display: none; }

	.interlude { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 3.5rem; }
	.interlude-scene { position: relative; inset: auto; height: 118vw; max-height: 640px; overflow: hidden; }
	.interlude-sky { inset: 0; }
	.interlude-village { left: auto; right: -10vw; width: 210vw; bottom: -12vw; }
	.interlude-front { left: auto; right: -6vw; width: 210vw; bottom: -30vw; }
	.interlude-shade {
		background: linear-gradient(180deg, var(--navy) 0%, rgba(16, 24, 36, 0) 16%, rgba(16, 24, 36, 0) 78%, var(--navy) 100%);
	}
	.interlude-inner { display: block; }
	.interlude-copy { width: auto; padding: 0; }

	.gallery-head { align-items: flex-start; flex-direction: column; gap: 1.25rem; }

	.curtain-figure { max-width: 300px; order: 2; }
	.curtain-copy { padding-bottom: 0; text-align: center; }
	.curtain-copy .eyebrow { justify-content: center; }

	.lightbox-figure { padding: 4.5rem 1rem 6rem; }
	.lightbox-prev, .lightbox-next { top: auto; bottom: 1.25rem; transform: none; }
	.lightbox-prev { left: calc(50% - 60px); }
	.lightbox-next { right: calc(50% - 60px); }
}

@media (max-width: 640px) {
	body { font-size: 1.025rem; }
	.stubs { gap: 0.75rem; }
	.stub-main { padding: 1.25rem 0.75rem 1rem; }
	.stub-label { font-size: 0.6875rem; letter-spacing: 0.14em; margin-bottom: 0.6rem; }
	.stub-time { font-size: 1.35rem; }
	.stub-doors { font-size: 0.8125rem; }
	.stub-foot { padding: 0.85rem 0.5rem 1rem; }
	.stub-cal-links { gap: 0.25rem 0.8rem; font-size: 0.8125rem; }
	.poster-share { grid-template-columns: 110px 1fr; gap: 1.25rem; }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.hero-actions .btn, .box-actions .btn, .visit-actions .btn { width: 100%; }
	.price-list dd { font-size: 3rem; }
	.strip-btn { height: 230px; }
}

@media (max-width: 359px) {
	.stubs { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
	.poster-share { grid-template-columns: 1fr; }
	.poster-thumb { max-width: 160px; }
}

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	[data-depth], [data-speed] { transform: none !important; will-change: auto; }
	.js .reveal { opacity: 1; transform: none; }
	.hero-scroll span { animation: none; transform: none; opacity: 0.8; }
	.strip { scroll-behavior: auto; }
}

/* High contrast / forced colors */
@media (forced-colors: active) {
	.btn, .round-btn, .stub { border: 1px solid CanvasText; }
	body::after { display: none; }
}
