/* ==========================================================================
   Single experience: hero with drifting light and score rings,
   a terrain band for Date / Duration / Type, icon facts on topo paper.
   ========================================================================== */

/* ---------- Hero ---------- */
.exp-hero { padding-bottom: clamp(96px, 9vw, 130px); background: var(--ali-dusk); }
.exp-hero.has-image { min-height: 640px; }
@media (min-width: 992px) { .exp-hero.has-image { min-height: 760px; } }
.exp-shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(16, 32, 30, .86) 0%, rgba(16, 32, 30, .5) 52%, rgba(16, 32, 30, .62) 100%),
		linear-gradient(to top, rgba(16, 32, 30, .7), transparent 50%);
}
.reading-light .single-hero.exp-hero .page-hero-ridge { fill: var(--ali-ground); }

.exp-hero-inner {
	position: relative; z-index: 2; width: 100%;
	display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end;
}
@media (min-width: 1100px) {
	.exp-hero.has-scores .exp-hero-inner { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; }
}
.exp-hero .single-title { max-width: 14em; }

.exp-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.exp-badges li > a, .exp-badges li > i { text-decoration: none; }
.exp-badges li, .exp-badges a {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--ali-bone);
}
.exp-badges li { padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(11, 23, 22, .5); border: 1px solid rgba(237, 232, 222, .18); font-weight: 600; font-size: 15px; backdrop-filter: blur(6px); }
.exp-badges i { font-size: 20px; color: var(--ali-soul); }
.exp-badges a:hover { color: var(--ali-soul); }

/* Scores: glass panel, segmented meter + ring */
.exp-scores {
	padding: 22px 22px 10px; border-radius: var(--ali-radius);
	background: rgba(11, 23, 22, .48); border: 1px solid rgba(237, 232, 222, .14);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.exp-scores-label { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ali-sage); }
.exp-score { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 0; border-top: 1px solid rgba(237, 232, 222, .1); }
.exp-score:first-of-type { border-top: 0; }
.exp-score-name { display: block; margin-bottom: 9px; font-size: 15px; color: var(--ali-bone); }
.exp-score-meter { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.exp-score-meter span { height: 6px; border-radius: 3px; background: rgba(237, 232, 222, .16); }
.exp-score-meter span.is-on { background: var(--c); animation: exp-seg .45s ease both; animation-delay: calc(.7s + var(--n) * .16s + var(--i) * 45ms); }
@keyframes exp-seg { from { background: rgba(237, 232, 222, .16); } }

.exp-ring { width: 48px; height: 48px; overflow: visible; }
.exp-ring circle { fill: none; stroke-width: 3; }
.exp-ring-track { stroke: rgba(237, 232, 222, .16); }
.exp-ring-fill {
	stroke: var(--c); stroke-linecap: round;
	stroke-dasharray: 119.38; stroke-dashoffset: var(--off);
	transform: rotate(-90deg); transform-origin: 22px 22px;
	filter: drop-shadow(0 0 4px var(--c));
	animation: exp-ring 1.6s var(--ali-ease) both; animation-delay: calc(.6s + var(--n) * .16s);
}
@keyframes exp-ring { from { stroke-dashoffset: 119.38; } }
.exp-ring text { fill: var(--ali-bone); font: 500 17px var(--ali-font-display); }

/* Light: soft sun patches and shafts drifting through the canopy */
.exp-light { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.exp-light span { position: absolute; display: block; }
.exp-light span:first-child {
	width: 70%; height: 90%; left: -10%; top: -30%;
	background: radial-gradient(closest-side, rgba(255, 238, 196, .28), rgba(255, 238, 196, 0));
	filter: blur(20px);
	animation: exp-sun 22s ease-in-out infinite alternate;
}
.exp-light span:last-child {
	inset: -20% -10%;
	background: repeating-linear-gradient(112deg, rgba(255, 244, 214, 0) 0 90px, rgba(255, 244, 214, .07) 90px 150px, rgba(255, 244, 214, 0) 150px 260px);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
	mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
	animation: exp-shafts 18s ease-in-out infinite alternate;
}
@keyframes exp-sun { to { transform: translate(55%, 18%) scale(1.15); } }
@keyframes exp-shafts { from { transform: translateX(-4%) skewX(-3deg); opacity: .6; } to { transform: translateX(5%) skewX(3deg); opacity: 1; } }

/* Motes: specks of light floating up */
.exp-motes { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.exp-motes i {
	position: absolute; bottom: -10px; left: var(--x); width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%;
	background: rgba(255, 244, 214, .85); box-shadow: 0 0 8px rgba(255, 244, 214, .8);
	opacity: 0; animation: exp-mote var(--d, 18s) linear infinite; animation-delay: var(--w, 0s);
}
@keyframes exp-mote {
	0% { opacity: 0; transform: translate(0, 0); }
	15% { opacity: .9; }
	50% { transform: translate(24px, -45vh); }
	85% { opacity: .6; }
	100% { opacity: 0; transform: translate(-12px, -90vh); }
}
.exp-motes i:nth-child(1) { --x: 8%; --d: 19s; --w: -2s; }
.exp-motes i:nth-child(2) { --x: 17%; --d: 24s; --w: -9s; --s: 2px; }
.exp-motes i:nth-child(3) { --x: 26%; --d: 21s; --w: -15s; }
.exp-motes i:nth-child(4) { --x: 34%; --d: 27s; --w: -5s; --s: 4px; }
.exp-motes i:nth-child(5) { --x: 43%; --d: 20s; --w: -12s; --s: 2px; }
.exp-motes i:nth-child(6) { --x: 51%; --d: 25s; --w: -19s; }
.exp-motes i:nth-child(7) { --x: 60%; --d: 22s; --w: -1s; --s: 2px; }
.exp-motes i:nth-child(8) { --x: 68%; --d: 28s; --w: -14s; --s: 4px; }
.exp-motes i:nth-child(9) { --x: 76%; --d: 19s; --w: -7s; }
.exp-motes i:nth-child(10) { --x: 84%; --d: 26s; --w: -17s; --s: 2px; }
.exp-motes i:nth-child(11) { --x: 91%; --d: 23s; --w: -11s; }
.exp-motes i:nth-child(12) { --x: 97%; --d: 29s; --w: -4s; --s: 2px; }

/* ---------- Stats band: Date / Duration / Type on terrain ---------- */
.exp-stats {
	position: relative; overflow: hidden; isolation: isolate;
	margin-top: -1px; padding: clamp(4px, 1vw, 12px) var(--ali-gutter) clamp(96px, 9vw, 130px);
	background: var(--ali-ground); color: var(--ali-bone);
}
.exp-stats-terrain {
	position: absolute; inset: 0; z-index: -1;
	background: url('../../images/section-bg-topo-dark.jpg') center / 1400px auto repeat;
	mix-blend-mode: screen; opacity: .5;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
	mask-image: linear-gradient(to bottom, transparent, #000 45%);
	animation: exp-terrain 120s linear infinite;
}
@keyframes exp-terrain { to { background-position: calc(50% + 1400px) center; } }
.exp-stats-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
@media (min-width: 768px) { .exp-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.exp-stat { padding: 22px 0; border-top: 1.5px dashed rgba(237, 232, 222, .18); }
.exp-stat:first-child { border-top: 0; }
@media (min-width: 768px) {
	.exp-stat { padding: 8px clamp(20px, 3vw, 44px); border-top: 0; border-left: 1.5px dashed rgba(237, 232, 222, .18); }
	.exp-stat:first-child { padding-left: 0; border-left: 0; }
}
.exp-stat dt { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ali-sage); }
.exp-stat dt i { font-size: 22px; color: var(--ali-soul); letter-spacing: 0; }
.exp-stat dd { margin: 0; font-size: clamp(38px, 4.6vw, 64px); font-weight: 400; line-height: 1.02; letter-spacing: -0.015em; }
.exp-stat dd small { font-size: .42em; letter-spacing: 0; color: var(--ali-mist-text); }
.exp-stat dd a { color: var(--ali-bone); text-decoration: none; background: linear-gradient(var(--ali-soul), var(--ali-soul)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ali-ease); }
.exp-stat dd a:hover { color: var(--ali-bone); background-size: 100% 2px; }
.exp-sep { color: var(--ali-sage); }
.exp-stats-ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; fill: var(--ali-dusk); }
.reading-light .exp-stats-ridge { fill: #FFFFFF; }

/* ---------- Facts: icons on topo paper ---------- */
.exp-facts {
	position: relative; overflow: hidden; isolation: isolate;
	padding: 28px; border-radius: var(--ali-radius);
	background: #FFFFFF; border: 1px solid var(--ali-line);
}
.exp-facts-terrain {
	position: absolute; inset: 0; z-index: -1;
	background: url('../../images/section-bg-topo-light.jpg') center / 900px auto repeat;
	opacity: .9; animation: exp-terrain-soft 90s linear infinite alternate;
}
@keyframes exp-terrain-soft { to { background-position: calc(50% + 300px) calc(50% - 180px); } }
.exp-facts dl { margin: 0; }
.exp-fact { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; }
.exp-fact + .exp-fact { border-top: 1px solid var(--ali-line); }
.exp-fact:first-child { padding-top: 0; }
.exp-fact-icon {
	width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: #FFFFFF; border: 1.5px solid rgba(16, 32, 30, .16);
	font-size: 24px; color: #10201E;
	transition: transform .8s var(--ali-ease), background .5s, color .5s;
}
.exp-fact:hover .exp-fact-icon { transform: rotate(-10deg); background: #10201E; color: #C5E205; }
.exp-fact dt { margin: 4px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ali-sage); }
.exp-fact dd { margin: 0; font-family: var(--ali-font-display); font-size: 22px; line-height: 1.35; color: #17211F; }
.exp-facts-link { display: inline-flex; margin-top: 14px; font-size: 15px; }
.js .exp-facts.reveal .exp-fact { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ali-ease), transform .7s var(--ali-ease); }
.js .exp-facts.reveal.is-visible .exp-fact { opacity: 1; transform: none; }
.exp-facts .exp-fact:nth-child(2) { transition-delay: .12s; }
.exp-facts .exp-fact:nth-child(3) { transition-delay: .24s; }
.exp-facts .exp-fact:nth-child(4) { transition-delay: .36s; }

/* ---------- Highlights get the same terrain ---------- */
.exp-highlights { position: relative; overflow: hidden; isolation: isolate; }
.exp-highlights::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: url('../../images/section-bg-topo-dark.jpg') center / 1400px auto repeat;
	mix-blend-mode: screen; opacity: .35;
}

/* Map marker breathes */
.map-marker { position: relative; }
.map-marker::after {
	content: ''; position: absolute; inset: 0; border-radius: 50%;
	border: 2px solid var(--ali-flame); animation: exp-pulse 2.4s ease-out infinite;
}
@keyframes exp-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	.exp-light span, .exp-motes, .exp-stats-terrain, .exp-facts-terrain, .map-marker::after { animation: none; }
	.exp-motes { display: none; }
	.exp-ring-fill, .exp-score-meter span.is-on { animation: none; }
	.js .exp-facts.reveal .exp-fact { opacity: 1; transform: none; transition: none; }
}
