/**
 * Insights Child — homepage.css
 *
 * Styles for the bento hero, pillars strip, pillar modal, video lightbox.
 * Loaded only when template-homepage.php is active.
 *
 * Inherits design tokens (--crimson, --cream, --ink, etc.) from header.css.
 *
 * Sections:
 *   1.  Container & main scaffold
 *   2.  Scroll progress bar
 *   3.  Bento grid + base tile
 *   4.  Tile-brand (top-left, crimson)
 *   5.  Tile-video (top-right, big anchor — bg iframe + play overlay)
 *   6.  Tile-page (generic — internal layout)
 *   7.  Tile variants (welcome, prospectus, admissions, leadership)
 *   8.  Pillars strip
 *   9.  Pillar modal
 *  10.  Video lightbox
 *  11.  Reveal animations
 *  12.  Responsive breakpoints
 *  13.  prefers-reduced-motion
 */

/* ──────────────────────────────────────────────────────────────
 * 1. CONTAINER & MAIN SCAFFOLD
 *    Astra wraps page content in `.ast-container` (max-width ~1240px).
 *    For the homepage template we want the hero + pillars to span
 *    the full viewport so the bento can breathe. We unconstrain the
 *    Astra wrapper *only* when this template is active.
 * ────────────────────────────────────────────────────────────── */
.page-template-template-homepage .ast-container,
.page-template-page-templatestemplate-homepage-php .ast-container,
.page-template-page-templates .ast-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	width: 100%;
}
/* Astra applies width: 1320px to <main> directly. Override to span the
   ast-container (now full-viewport) so the hero section can be edge-to-edge. */
.page-template-template-homepage #main-content,
.page-template-page-templatestemplate-homepage-php #main-content,
.page-template-page-templates #main-content {
	width: 100%;
	max-width: none;
	min-height: 60vh;
}

.hero .container,
.stories .container,
.pillars .pillars-inner,
.visit-band .container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ──────────────────────────────────────────────────────────────
 * 2. SCROLL PROGRESS BAR
 * ────────────────────────────────────────────────────────────── */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 2px;
	width: 0%;
	background: var(--crimson);
	z-index: 200;
	transition: width 80ms linear;
	pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────
 * 3. BENTO GRID + BASE TILE
 * ────────────────────────────────────────────────────────────── */
.hero {
	padding: 32px 0 56px;
}
.bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(220px, auto);
	gap: 14px;
}
.tile {
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	will-change: transform;
}
.tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 24px 48px -16px rgba(26, 26, 26, 0.18);
}
.tile:focus-visible {
	outline: 2px solid var(--crimson-bright);
	outline-offset: 4px;
}

/* Tile sizes */
.tile-brand     { grid-column: span 2; grid-row: span 1; }
.tile-video     { grid-column: span 2; grid-row: span 2; }
.tile-page      { grid-column: span 1; grid-row: span 1; }
.tile-page-wide { grid-column: span 2; grid-row: span 1; }

/* Tile background-image override — kicks in when admin uploads a photo
   to <tile>_background. The --tile-bg custom property is set inline by
   the template; this rule paints it under a dark gradient overlay so
   text stays legible regardless of the photo's brightness. */
.tile.has-bg {
	background-image:
		linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.55) 100%),
		var(--tile-bg);
	background-size: cover, cover;
	background-position: center, center;
	background-repeat: no-repeat, no-repeat;
}
/* Suppress the brand tile's decorative ::before radial when an image is set —
   the photo + overlay handle the look. */
.tile-brand.has-bg::before { display: none; }
/* Light-text tiles (admissions, leadership) flip cream when a photo replaces
   the cream/sand background. Other tiles already use cream/light text. */
.tile-admissions.has-bg,
.tile-leadership.has-bg { color: var(--cream); }
.tile-admissions.has-bg .tile-h,
.tile-leadership.has-bg .tile-h { color: var(--cream); }
.tile-admissions.has-bg .tile-h em,
.tile-leadership.has-bg .tile-h em { color: var(--crimson-bright); }
.tile-admissions.has-bg .tile-desc,
.tile-leadership.has-bg .tile-desc { color: rgba(245, 240, 235, 0.78); }
.tile-admissions.has-bg .tile-arrow,
.tile-leadership.has-bg .tile-arrow {
	border-color: rgba(245, 240, 235, 0.25);
	color: var(--cream);
}
.tile-admissions.has-bg:hover .tile-arrow,
.tile-leadership.has-bg:hover .tile-arrow {
	background: var(--crimson-bright);
	border-color: var(--crimson-bright);
	color: var(--ink);
}
/* Admissions badge stays readable on a photo */
.tile-admissions.has-bg .tile-tag {
	background: rgba(245, 240, 235, 0.18);
	color: var(--cream);
}

/* ──────────────────────────────────────────────────────────────
 * 4. TILE-BRAND
 * ────────────────────────────────────────────────────────────── */
.tile-brand {
	background: var(--crimson);
	color: var(--cream);
	padding: 40px 48px;
	justify-content: space-between;
	min-height: 320px;
	overflow: hidden;
}
.tile-brand::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 80%;
	height: 180%;
	background: radial-gradient(circle, rgba(232, 25, 44, 0.28) 0%, transparent 60%);
	pointer-events: none;
}
.tile-brand-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	position: relative;
	z-index: 2;
}
.brand-tag {
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--crimson-bright);
	font-weight: 600;
}
.tile-brand-est {
	font-family: 'Jost', sans-serif;
	font-style: italic;
	font-size: 14px;
	color: rgba(245, 240, 235, 0.6);
	white-space: nowrap;
}
.tile-brand-est::before {
	content: "—";
	margin-right: 6px;
}
.tile-brand h1 {
	font-family: 'Jost', sans-serif;
	font-size: clamp(36px, 4.4vw, 62px);
	line-height: 0.96;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--cream);
	position: relative;
	z-index: 2;
	margin: 0;
}
.tile-brand h1 em {
	font-style: italic;
	color: rgba(245, 240, 235, 0.85);
}

/* ──────────────────────────────────────────────────────────────
 * 5. TILE-VIDEO
 * ────────────────────────────────────────────────────────────── */
.tile-video {
	background-color: #1a1a1a;
	color: var(--cream);
	min-height: 320px;
	padding: 0; /* video frame + meta band fill edge-to-edge; meta has its own padding */
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
/* Video frame — top zone, fills all space above the meta band */
.tile-video-frame {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
	background-image:
		linear-gradient(180deg, transparent 30%, rgba(26, 26, 26, 0.65) 100%),
		linear-gradient(135deg, rgba(139, 26, 26, 0.4), rgba(26, 26, 26, 0.7)),
		radial-gradient(circle at 35% 35%, #5C2424 0%, #1a1a1a 80%);
	background-size: cover;
	background-position: center;
}
/* YouTube/Vimeo iframe — sized by JS (initVideoIframeFit in homepage.js) so
   it maintains a true 16:9 aspect AND covers the frame container with a 15%
   oversize, hiding YouTube's title bar (top) and progress bar (bottom)
   outside the clipped area. CSS just handles positioning + visuals. */
.tile-video-bg {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none; /* clicks fall through to the play button */
	z-index: 1;
	opacity: 0.92;
}

/* Self-hosted <video> — native object-fit handles cover, no JS needed,
   no third-party chrome to worry about. Cleaner path than the iframe. */
.tile-video-bg-native {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	z-index: 1;
	opacity: 0.92;
	border: 0;
	display: block;
}
/* Play button overlay (the static one, on top of bg iframe) */
.tile-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	background: rgba(245, 240, 235, 0.96);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
	cursor: pointer;
	z-index: 3;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.4s ease, background 0.3s ease;
}
.tile-video-play[hidden] {
	display: none;
}
.tile-video:hover .tile-video-play {
	transform: translate(-50%, -50%) scale(1.08);
}
.tile-video-play-icon {
	display: block;
	width: 0;
	height: 0;
	border-left: 18px solid var(--crimson);
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
	margin-left: 4px; /* nudge the triangle visually centred */
}
.tile-video:focus-within .tile-video-play,
.tile-video-play:focus-visible {
	outline: 2px solid var(--crimson-bright);
	outline-offset: 4px;
}
/* Bottom meta band — its own padded zone, sits below the video frame */
.tile-video .video-meta {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	padding: 18px 24px 22px;
	background: var(--ink);
	border-top: 1px solid rgba(245, 240, 235, 0.06);
}
.tile-video .video-tag {
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--crimson-bright);
	margin-bottom: 6px;
}
.tile-video h3 {
	font-family: 'Jost', sans-serif;
	font-size: 22px;
	font-weight: 500;
	color: var(--cream);
	letter-spacing: -0.01em;
	line-height: 1.1;
	margin: 0;
}
.tile-video h3 em { font-style: italic; }

/* ──────────────────────────────────────────────────────────────
 * 6. TILE-PAGE — generic page tile (3, 4, 5, 6)
 * ────────────────────────────────────────────────────────────── */
.tile-page {
	background: var(--paper);
	padding: 24px;
	justify-content: space-between;
	min-height: 220px;
}
.tile-page-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.tile-num {
	font-family: 'Jost', sans-serif;
	font-style: italic;
	font-size: 14px;
	color: var(--crimson);
}
.tile-arrow {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--line-hi);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	color: var(--ink);
	font-size: 14px;
	flex-shrink: 0;
}
.tile-page:hover .tile-arrow {
	background: var(--crimson);
	color: var(--cream);
	border-color: var(--crimson);
	transform: rotate(-45deg);
}
.tile-page h3 {
	font-family: 'Jost', sans-serif;
	font-size: clamp(24px, 2.4vw, 34px);
	font-weight: 500;
	color: var(--ink);
	line-height: 1;
	margin-bottom: 8px;
	margin-top: 0;
}
.tile-page h3 em {
	font-style: italic;
	color: var(--crimson);
}
.tile-desc {
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-dim);
	max-width: 360px;
	margin: 0;
}
.tile-page-bottom {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* ──────────────────────────────────────────────────────────────
 * 7. TILE VARIANTS
 * ────────────────────────────────────────────────────────────── */

/* WELCOME — dark / ink */
.tile-welcome { background: var(--ink); color: var(--cream); }
.tile-welcome h3 { color: var(--cream); }
.tile-welcome h3 em { color: var(--crimson-bright); }
.tile-welcome .tile-num { color: var(--crimson-bright); }
.tile-welcome .tile-desc { color: rgba(245, 240, 235, 0.7); }
.tile-welcome .tile-arrow { border-color: rgba(245, 240, 235, 0.2); color: var(--cream); }
.tile-welcome:hover .tile-arrow { background: var(--crimson-bright); border-color: var(--crimson-bright); color: var(--ink); }

/* PROSPECTUS — dark gradient */
.tile-prospectus {
	background:
		linear-gradient(180deg, rgba(245, 240, 235, 0.2) 0%, rgba(26, 26, 26, 0.85) 100%),
		radial-gradient(circle at 60% 40%, #6E2323 0%, #1a1a1a 90%);
	color: var(--cream);
}
.tile-prospectus h3 { color: var(--cream); }
.tile-prospectus h3 em { color: var(--crimson-bright); }
.tile-prospectus .tile-num { color: var(--crimson-bright); }
.tile-prospectus .tile-desc { color: rgba(245, 240, 235, 0.7); }
.tile-prospectus .tile-arrow { border-color: rgba(245, 240, 235, 0.2); color: var(--cream); }
.tile-prospectus:hover .tile-arrow {
	background: var(--crimson-bright);
	border-color: var(--crimson-bright);
	color: var(--ink);
	transform: translateY(2px); /* download nudge instead of rotate */
}

/* ADMISSIONS — cream + badge */
.tile-admissions {
	background: var(--cream);
	border: 1px solid var(--line);
}
.tile-admissions h3 em { color: var(--crimson); }
.tile-admissions .tile-tag {
	display: inline-block;
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--crimson);
	padding: 5px 12px;
	background: rgba(139, 26, 26, 0.08);
	border-radius: 999px;
}

/* LEADERSHIP — warm cream/sand */
.tile-leadership {
	background: #EDE5D8;
	border: 1px solid var(--line);
}
.tile-leadership h3 em { color: var(--crimson); }
.tile-leadership .leader-faces {
	display: flex;
	gap: 0;
	margin-bottom: auto;
}
.tile-leadership .face {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid #EDE5D8;
	background-color: rgba(139, 26, 26, 0.4);
	background-size: cover;
	background-position: center;
	margin-left: -10px;
	flex-shrink: 0;
}
.tile-leadership .face:first-child {
	margin-left: 0;
}

/* ──────────────────────────────────────────────────────────────
 * 8. PILLARS STRIP
 * ────────────────────────────────────────────────────────────── */
.pillars {
	background: var(--ink);
	color: var(--cream);
	padding: 48px 0;
}
.pillars-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.pillars-intro {
	font-family: 'Jost', sans-serif;
	font-style: italic;
	font-size: 17px;
	color: rgba(245, 240, 235, 0.75);
	max-width: 320px;
	line-height: 1.4;
	margin: 0;
}
.pillars-intro em {
	font-style: italic;
	color: var(--crimson-bright);
}
.pillars-cue {
	display: block;
	font-style: normal;
	font-size: 13px;
	margin-top: 4px;
	opacity: 0.55;
}
.pillars-names {
	font-family: 'Jost', sans-serif;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--cream);
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}
.pillars-names .sep {
	color: var(--crimson-bright);
	margin: 0 14px;
	font-weight: 400;
}
.pillar-link {
	background: transparent;
	border: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	cursor: pointer;
	padding: 4px;
	margin: 0 -4px;
	position: relative;
	transition: color 0.25s ease;
}
.pillar-link::after {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	bottom: 0;
	height: 1px;
	background: rgba(245, 240, 235, 0.25);
	transition: background 0.25s ease, height 0.25s ease;
}
.pillar-link:hover,
.pillar-link:focus-visible {
	color: var(--crimson);
}
.pillar-link:hover::after,
.pillar-link:focus-visible::after {
	background: var(--crimson);
	height: 1.5px;
}
.pillar-link:focus-visible {
	outline: 2px solid var(--crimson);
	outline-offset: 4px;
	border-radius: 2px;
}

/* ──────────────────────────────────────────────────────────────
 * 9. PILLAR MODAL
 * ────────────────────────────────────────────────────────────── */
.pillar-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(26, 26, 26, 0.75);
	-webkit-backdrop-filter: blur(8px);
	        backdrop-filter: blur(8px);
	z-index: 200;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
}
.pillar-modal-backdrop[aria-hidden="false"] {
	opacity: 1;
	pointer-events: auto;
}
.pillar-modal-backdrop[hidden] {
	display: none;
}
.pillar-modal {
	background: var(--paper);
	border-radius: 8px;
	max-width: 580px;
	width: 100%;
	padding: 64px 56px 56px;
	position: relative;
	transform: translateY(24px) scale(0.98);
	transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
	max-height: calc(100vh - 64px);
	overflow-y: auto;
}
.pillar-modal-backdrop[aria-hidden="false"] .pillar-modal {
	transform: translateY(0) scale(1);
}
.pillar-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: var(--ink);
	transition: all 0.25s ease;
	line-height: 1;
	padding: 0;
}
.pillar-modal-close:hover {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
	transform: rotate(90deg);
}
.pillar-modal-close:focus-visible {
	outline: 2px solid var(--crimson-bright);
	outline-offset: 2px;
}
.pm-tag {
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--crimson);
	margin-bottom: 16px;
}
.pillar-modal h2 {
	font-family: 'Jost', sans-serif;
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.025em;
	line-height: 1;
	margin: 0 0 24px;
}
.pillar-modal h2 em {
	font-style: italic;
	color: var(--crimson);
	font-weight: 500;
}
.pillar-modal #pmBody p {
	font-family: 'Jost', sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-dim);
	margin: 0 0 16px;
}
.pm-quote {
	margin-top: 28px;
	padding: 22px 26px;
	background: var(--cream);
	border-left: 3px solid var(--crimson);
	font-style: italic;
	font-size: 16px;
	color: var(--ink);
	line-height: 1.5;
	border-radius: 0 4px 4px 0;
	font-family: 'Jost', sans-serif;
}
.pm-cta {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 13px;
}
.pm-cta-link {
	color: var(--crimson);
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: gap 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-family: 'Jost', sans-serif;
}
.pm-cta-link[hidden] {
	display: none;
}
.pm-cta-link:hover {
	gap: 14px;
}
.pm-cta-link:focus-visible {
	outline: 2px solid var(--crimson-bright);
	outline-offset: 4px;
}
.pm-nav {
	display: flex;
	gap: 8px;
}
.pm-nav-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--line-hi);
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: var(--ink);
	transition: all 0.25s ease;
}
.pm-nav-btn:hover {
	background: var(--crimson);
	color: var(--paper);
	border-color: var(--crimson);
}
.pm-nav-btn:focus-visible {
	outline: 2px solid var(--crimson-bright);
	outline-offset: 2px;
}

/* ──────────────────────────────────────────────────────────────
 * 10. VIDEO LIGHTBOX
 * ────────────────────────────────────────────────────────────── */
.video-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	-webkit-backdrop-filter: blur(8px);
	        backdrop-filter: blur(8px);
	z-index: 300;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}
.video-lightbox[aria-hidden="false"] {
	opacity: 1;
	pointer-events: auto;
}
.video-lightbox[hidden] {
	display: none;
}
.video-lightbox-frame {
	width: 100%;
	max-width: 1100px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}
.video-lightbox-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.video-lightbox-close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(245, 240, 235, 0.3);
	background: transparent;
	color: var(--cream);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	padding: 0;
	transition: all 0.25s ease;
}
.video-lightbox-close:hover {
	background: var(--cream);
	color: var(--ink);
}
.video-lightbox-close:focus-visible {
	outline: 2px solid var(--crimson-bright);
	outline-offset: 4px;
}

/* ──────────────────────────────────────────────────────────────
 * 11. REVEAL ANIMATIONS
 * ────────────────────────────────────────────────────────────── */
.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
	            transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
	opacity: 1;
	transform: translateY(0);
}
.bento .tile.reveal:nth-child(1) { transition-delay: 0ms; }
.bento .tile.reveal:nth-child(2) { transition-delay: 80ms; }
.bento .tile.reveal:nth-child(3) { transition-delay: 160ms; }
.bento .tile.reveal:nth-child(4) { transition-delay: 220ms; }
.bento .tile.reveal:nth-child(5) { transition-delay: 280ms; }
.bento .tile.reveal:nth-child(6) { transition-delay: 340ms; }
.stories-grid .story.reveal:nth-child(1) { transition-delay: 0ms; }
.stories-grid .story.reveal:nth-child(2) { transition-delay: 100ms; }
.stories-grid .story.reveal:nth-child(3) { transition-delay: 200ms; }

/* ──────────────────────────────────────────────────────────────
 * 11b. STORIES SECTION (evergreen — no dates rendered)
 * ────────────────────────────────────────────────────────────── */
.stories {
	padding: 96px 0 64px;
	background: var(--cream);
}
.stories-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}
.stories-head h2 {
	font-family: 'Jost', sans-serif;
	font-size: clamp(36px, 4vw, 56px);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0;
	color: var(--ink);
}
.stories-head h2 em { font-style: italic; color: var(--crimson); }
.stories-head .all-link {
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--crimson);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--crimson);
	transition: gap 0.3s ease, color 0.25s ease;
	text-decoration: none;
}
.stories-head .all-link:hover { gap: 14px; color: var(--crimson-bright); }
.stories-head .all-link:focus-visible {
	outline: 2px solid var(--crimson);
	outline-offset: 4px;
}

.stories-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 24px;
}
.story {
	background: var(--paper);
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--line);
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}
.story:hover {
	transform: translateY(-3px);
	box-shadow: 0 24px 48px -16px rgba(26, 26, 26, 0.18);
}
.story:focus-visible {
	outline: 2px solid var(--crimson-bright);
	outline-offset: 4px;
}
.story-img {
	aspect-ratio: 16 / 10;
	background-color: rgba(139, 26, 26, 0.12);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}
.story-img-placeholder {
	display: block;
	position: absolute;
	inset: 0;
	background:
		linear-gradient(160deg, rgba(232, 25, 44, 0.15), rgba(26, 26, 26, 0.10) 70%),
		linear-gradient(135deg, rgba(139, 26, 26, 0.4), rgba(26, 26, 26, 0.25));
}
.story-body {
	padding: 22px 24px 28px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.story-meta {
	display: flex;
	gap: 14px;
	align-items: center;
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--crimson);
	margin-bottom: 12px;
}
.story h3 {
	font-family: 'Jost', sans-serif;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var(--ink);
	margin: 0 0 8px;
}
.story h3 em { font-style: italic; color: var(--crimson); }
.story p {
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-dim);
	margin: 0;
}

/* ──────────────────────────────────────────────────────────────
 * 11d. VISIT BAND — crimson "come and meet us" CTA
 * ────────────────────────────────────────────────────────────── */
.visit-band {
	padding: 80px 0 96px;
	background: var(--cream);
}
.visit-card {
	background: var(--crimson);
	color: var(--cream);
	border-radius: 6px;
	padding: 64px 56px;
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 48px;
	align-items: center;
	position: relative;
	overflow: hidden;
}
.visit-card::before {
	content: "";
	position: absolute;
	top: -100px;
	right: -100px;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(232, 25, 44, 0.5) 0%, transparent 60%);
	pointer-events: none;
}
.visit-card-text { position: relative; }
.visit-card h2 {
	font-family: 'Jost', sans-serif;
	font-size: clamp(34px, 3.8vw, 52px);
	font-weight: 500;
	color: var(--cream);
	letter-spacing: -0.02em;
	line-height: 1.05;
	margin: 0 0 18px;
}
.visit-card h2 em {
	font-style: italic;
	color: rgba(245, 240, 235, 0.78);
}
.visit-card p {
	font-family: 'Jost', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(245, 240, 235, 0.82);
	max-width: 480px;
	margin: 0 0 32px;
}
.visit-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.visit-card .btn-cream {
	background: var(--cream);
	color: var(--ink);
	border: 1px solid var(--cream);
}
.visit-card .btn-cream:hover,
.visit-card .btn-cream:focus-visible {
	background: var(--ink);
	color: var(--cream);
	border-color: var(--ink);
}
.visit-card .btn-ghost {
	background: transparent;
	color: var(--cream);
	border: 1px solid rgba(245, 240, 235, 0.35);
}
.visit-card .btn-ghost:hover,
.visit-card .btn-ghost:focus-visible {
	border-color: var(--cream);
	background: rgba(245, 240, 235, 0.1);
	color: var(--cream);
}
.visit-card .btn:focus-visible {
	outline: 2px solid var(--cream);
	outline-offset: 4px;
}

.visit-info {
	position: relative;
	padding-left: 32px;
	border-left: 1px solid rgba(245, 240, 235, 0.2);
	margin: 0;
}
.visit-info .vi-row {
	padding: 14px 0;
	border-bottom: 1px solid rgba(245, 240, 235, 0.12);
}
.visit-info .vi-row:last-child { border-bottom: none; }
.visit-info .vi-k {
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(245, 240, 235, 0.55);
	font-weight: 600;
	margin-bottom: 6px;
}
.visit-info .vi-v {
	font-family: 'Jost', sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: var(--cream);
	margin: 0;
}
.visit-info .vi-v a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}
.visit-info .vi-v a:hover,
.visit-info .vi-v a:focus-visible {
	color: rgba(245, 240, 235, 0.7);
}
.visit-info .vi-v-phone a {
	font-style: italic;
}
.visit-info .vi-v a:focus-visible {
	outline: 2px solid var(--cream);
	outline-offset: 2px;
}

@media (max-width: 960px) {
	.visit-band { padding: 56px 0 72px; }
	.visit-card {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 48px 32px;
	}
	.visit-info {
		padding-left: 0;
		padding-top: 20px;
		border-left: none;
		border-top: 1px solid rgba(245, 240, 235, 0.2);
	}
}
@media (max-width: 600px) {
	.visit-card { padding: 36px 24px; }
	.visit-actions .btn { width: 100%; justify-content: center; }
}

/* ──────────────────────────────────────────────────────────────
 * 11c. STORY ARCHIVE + SINGLE
 *      Templates: archive-story.php, single-story.php
 *      Styles loaded via the same homepage.css enqueue rule —
 *      we extend the conditional in functions.php below to
 *      include story templates too.
 * ────────────────────────────────────────────────────────────── */

/* Shared container for archive + single (narrower than homepage) */
.story-single-main .container-narrow {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 24px;
}
.stories-archive-main .container,
.story-single-main .container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Archive ── */
.stories-archive-main {
	padding: 56px 0 80px;
	background: var(--cream);
}
.stories-archive-head {
	margin-bottom: 48px;
}
.stories-archive-title {
	font-family: 'Jost', sans-serif;
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--ink);
	margin: 0 0 16px;
}
.stories-archive-intro {
	font-family: 'Jost', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-dim);
	max-width: 640px;
	margin: 0 0 32px;
}
.stories-cat-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cat-chip {
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	letter-spacing: 0.04em;
	font-weight: 500;
	color: var(--text-dim);
	background: rgba(26, 26, 26, 0.05);
	padding: 8px 16px;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}
.cat-chip:hover,
.cat-chip:focus-visible {
	background: rgba(139, 26, 26, 0.1);
	color: var(--crimson);
}
.cat-chip.is-active {
	background: var(--crimson);
	color: var(--cream);
}
.cat-chip:focus-visible {
	outline: 2px solid var(--crimson);
	outline-offset: 4px;
}

.stories-grid-archive {
	grid-template-columns: repeat(3, 1fr);
}
.stories-grid-archive .story:first-child {
	/* Override homepage's "first card wider" rule on the archive */
	grid-column: span 1;
}

.stories-empty {
	text-align: center;
	padding: 80px 0;
	color: var(--text-dim);
	font-family: 'Jost', sans-serif;
}

.stories-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
	gap: 8px;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
}
.stories-pagination .page-numbers {
	padding: 8px 14px;
	border-radius: 4px;
	color: var(--text-dim);
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}
.stories-pagination .page-numbers:hover,
.stories-pagination .page-numbers:focus-visible { color: var(--crimson); background: rgba(139, 26, 26, 0.06); }
.stories-pagination .page-numbers.current { background: var(--crimson); color: var(--cream); }

/* ── Single Story ── */
.story-single-main {
	background: var(--cream);
}
.story-hero {
	height: clamp(320px, 50vh, 560px);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.story-single-head {
	padding: 56px 0 32px;
}
.story-single-cat {
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--crimson);
	margin-bottom: 16px;
}
.story-single-title {
	font-family: 'Jost', sans-serif;
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--ink);
	margin: 0 0 20px;
}
.story-single-title em { font-style: italic; color: var(--crimson); }
.story-single-excerpt {
	font-family: 'Jost', sans-serif;
	font-size: 19px;
	line-height: 1.5;
	color: var(--text-dim);
	margin: 0;
}
.story-single-body {
	padding: 16px 0 64px;
	font-family: 'Jost', sans-serif;
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
}
.story-single-body p { margin: 0 0 1.2em; }
.story-single-body h2,
.story-single-body h3 {
	font-family: 'Jost', sans-serif;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin: 1.6em 0 0.5em;
}
.story-single-body h2 { font-size: 28px; }
.story-single-body h3 { font-size: 22px; }
.story-single-body img { max-width: 100%; height: auto; border-radius: 6px; }
.story-single-body blockquote {
	border-left: 3px solid var(--crimson);
	padding: 8px 0 8px 24px;
	margin: 1.5em 0;
	font-style: italic;
	color: var(--ink);
	background: rgba(139, 26, 26, 0.04);
}
.story-single-foot {
	padding: 24px 0 80px;
	border-top: 1px solid var(--line);
}
.story-back-link {
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--crimson);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.story-back-link:hover,
.story-back-link:focus-visible { color: var(--crimson-bright); }

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

/* ──────────────────────────────────────────────────────────────
 * 12. RESPONSIVE
 * ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
	.hero .container,
	.stories .container,
	.pillars .pillars-inner,
	.visit-band .container {
		padding: 0 20px;
	}
	.stories {
		padding: 72px 0 56px;
	}
	.stories-grid {
		grid-template-columns: 1fr 1fr;
	}
	.stories-grid .story:first-child {
		grid-column: span 2;
	}
	.bento {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: minmax(180px, auto);
	}
	.tile-brand,
	.tile-page-wide,
	.tile-video {
		grid-column: span 2;
		grid-row: span 1;
	}
	.tile-video {
		min-height: 280px;
	}
	/* iframe sizing handled by JS (homepage.js → fitVideoIframes) */
	.tile-brand {
		padding: 32px 28px;
		min-height: 240px;
	}
	.pillars-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.pillars-names {
		font-size: 15px;
	}
}

@media (max-width: 600px) {
	.hero {
		padding: 24px 0 40px;
	}
	.bento {
		grid-template-columns: 1fr;
	}
	.tile-brand,
	.tile-video,
	.tile-page-wide {
		grid-column: span 1;
	}
	.stories-grid {
		grid-template-columns: 1fr;
	}
	.stories-grid .story:first-child {
		grid-column: span 1;
	}
	.stories-head h2 {
		font-size: 32px;
	}
	.tile-brand-top {
		flex-direction: column;
		gap: 8px;
	}
	.tile-brand-est {
		white-space: normal;
	}
	.pillars {
		padding: 36px 0;
	}
	.pillars-names .sep {
		margin: 0 8px;
	}
	.pillar-modal {
		padding: 48px 28px 36px;
	}
	.video-lightbox {
		padding: 16px;
	}
	.video-lightbox-close {
		top: 12px;
		right: 12px;
	}
}

/* ──────────────────────────────────────────────────────────────
 * 13. PREFERS-REDUCED-MOTION
 * ────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.tile,
	.tile-arrow,
	.tile-video-play,
	.pillar-link,
	.pillar-link::before,
	.pillar-link::after,
	.pillar-modal-backdrop,
	.pillar-modal,
	.pillar-modal-close,
	.pm-cta-link,
	.pm-nav-btn,
	.video-lightbox,
	.video-lightbox-close,
	.reveal {
		transition: none !important;
		transition-delay: 0ms !important;
	}
	.scroll-progress {
		display: none !important;
	}
	.reveal {
		opacity: 1 !important;
		transform: none !important;
	}
	.tile-video-bg {
		display: none; /* skip the autoplay iframe entirely under reduced motion */
	}
}
