/* Explore Jinja — animated story map. Theme colours via --site-navy / --site-gold. */
.xs { --xs-ink: var(--site-navy, #452d2a); --xs-accent: var(--site-gold, #af522a); position: relative; background: #1e1412; color: #fff; }
.xs .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.xs-map-wrap { position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%; z-index: 0; overflow: hidden; }
.xs-map { position: absolute; inset: 0; background: #2b1a17; }
.xs.no-map .xs-map { background: radial-gradient(circle at 40% 40%, #5b3a32, #1e1412 70%); }
.xs-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(20, 12, 10, .55) 0%, rgba(20, 12, 10, .15) 45%, rgba(20, 12, 10, 0) 70%); }
.xs-chapters { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.xs-chapter { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 12vh clamp(16px, 5vw, 72px); pointer-events: none; }
.xs-card { pointer-events: auto; width: min(460px, 100%); background: rgba(255, 252, 247, .96); color: var(--xs-ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); overflow: hidden; border-radius: 4px; transition: box-shadow .4s; }
.xs-chapter.is-active .xs-card { box-shadow: 0 30px 80px -16px rgba(0, 0, 0, .65), 0 0 0 3px var(--xs-accent); }
.xs-photo { aspect-ratio: 16 / 10; overflow: hidden; background: #d9cdbf; }
.xs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; }
.xs-text { padding: 20px 22px 22px; }
.xs-eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--xs-accent); }
.xs-text h1, .xs-text h2 { margin: 0 0 10px; color: var(--xs-ink); text-transform: none; line-height: 1.08; }
.xs-text h1 { font-size: clamp(34px, 5vw, 56px); }
.xs-text h2 { font-size: clamp(24px, 3vw, 34px); }
.xs-text p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: rgba(69, 45, 42, .9); }
.xs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.xs-actions .jm-btn { min-height: 46px; padding: 0 20px; gap: 8px; }
body #app .xs .xs-actions .jm-btn:not(.jm-btn-light) { background: var(--xs-accent); border-color: var(--xs-accent); color: #fff; }
body #app .xs .xs-actions .jm-btn:not(.jm-btn-light):hover { background: var(--xs-ink); border-color: var(--xs-ink); }
body #app .xs .xs-actions .jm-btn-light { background: #fff; border: 2px solid var(--xs-ink); color: var(--xs-ink); }
body #app .xs .xs-actions .jm-btn-light:hover { background: var(--xs-ink); color: #fff; }
.xs-actions .jm-btn svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xs-hint { margin: 14px 0 0 !important; font-size: 13px !important; font-weight: 600; color: var(--xs-accent) !important; }
.xs-hint span { display: inline-block; animation: xsBob 1.6s ease-in-out infinite; }
@keyframes xsBob { 50% { transform: translateY(5px); } }
.xs-word { display: inline-block; white-space: nowrap; }
.xs-l { display: inline-block; }
.xs-chapter.is-intro { align-items: flex-end; }
.xs-chapter.is-intro .xs-card { width: min(560px, 100%); }
.xs-chapter.is-final { justify-content: center; }
.xs-chapter.is-final .xs-card { width: min(620px, 100%); text-align: center; }
.xs-chapter.is-final .xs-actions { justify-content: center; }
.xs-progress { position: fixed; z-index: 1000; left: 0; right: 0; top: 0; height: 4px; background: transparent; pointer-events: none; }
.xs-progress i { display: block; height: 100%; background: var(--xs-accent); transform: scaleX(0); transform-origin: left; }
.xs-dots { position: fixed; z-index: 900; right: 18px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.xs-dots a { display: block; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .45); border: 2px solid rgba(255, 255, 255, .8); transition: transform .2s, background .2s; }
.xs-dots a.is-on { background: var(--xs-accent); transform: scale(1.35); }
.xs-pin { position: relative; width: 34px; height: 34px; }
.xs-pin span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--site-navy, #452d2a); color: #fff; font-weight: 800; font-size: 13px; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); transition: transform .3s, background .3s; }
.xs-pin.is-on span { background: var(--site-gold, #af522a); transform: scale(1.2); }
.xs-pin.is-on::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid var(--site-gold, #af522a); animation: xsPulse 1.6s ease-out infinite; }
.xs:not(.xs-in) .xs-dots, .xs:not(.xs-in) .xs-progress { opacity: 0; pointer-events: none; }
.xs-dots, .xs-progress { transition: opacity .3s; }
@keyframes xsPulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.xs-credit { position: relative; z-index: 2; margin: 0; padding: 14px clamp(16px, 5vw, 72px) 28px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.xs-credit a { color: inherit; text-decoration: underline; }
@media (max-width: 767px) {
    .xs-shade { background: linear-gradient(180deg, rgba(20, 12, 10, 0) 40%, rgba(20, 12, 10, .55) 100%); }
    .xs-chapter { align-items: flex-end; padding: 50vh 12px 16px; min-height: 115vh; }
    .xs-chapter.is-intro, .xs-chapter.is-final { padding-top: 40vh; }
    .xs-card { width: 100%; }
    .xs-photo { aspect-ratio: 16 / 8; }
    .xs-text { padding: 16px; }
    .xs-dots { right: 8px; gap: 8px; }
    .xs-dots a { width: 9px; height: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .xs-hint span, .xs-pin.is-on::after { animation: none; }
}
