.mdx-hscroll { position: relative; width: 100%; background: #0B1622; }
.mdx-hscroll__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.mdx-hscroll__bgs { position: absolute; inset: 0; }
.mdx-hscroll__bgpanel { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; }
.mdx-hscroll__bgpanel.is-active { opacity: 1; }
.mdx-hscroll__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mdx-hscroll__wash { position: absolute; inset: 0; }
.mdx-hscroll__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mdx-hscroll__track { position: relative; display: flex; height: 100vh; will-change: transform; transition: transform .55s cubic-bezier(.76,0,.24,1); }
.mdx-hscroll__mglass { display: none; }
.mdx-hscroll__panel { position: relative; width: 100vw; height: 100vh; flex: 0 0 100vw; }
.mdx-hscroll__content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; height: 100%; max-width: calc(1340px + 96px); /* 1340 CONTENT grid + the 2x48 padding (border-box) */ margin: 0 auto; padding: 0 48px; box-sizing: border-box; color: #fff; }
.mdx-hscroll__card { position: relative; background: rgba(255,255,255,.10); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 10px; padding: 56px 30px; width: 100%; box-sizing: border-box; height: min(780px, calc(100vh - 40px)); overflow: hidden; display: flex; flex-direction: column; }
.mdx-hscroll__card .mdx-hscroll__mlabel { position: absolute; left: 30px; right: 30px; bottom: calc(20px + 300px + 24px); margin: 0; }
.mdx-hscroll__card .mdx-hscroll__milestones { position: absolute; left: 30px; right: 30px; bottom: 20px; }
.mdx-hscroll__card--joint-left .mdx-hscroll__mlabel, .mdx-hscroll__card--joint-left .mdx-hscroll__milestones { left: max(78px, calc(50vw - 660px)); }
.mdx-hscroll__card--joint-right .mdx-hscroll__mlabel, .mdx-hscroll__card--joint-right .mdx-hscroll__milestones { right: max(48px, calc(50vw - 680px)); }
.mdx-hscroll__card--joint-right { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: calc(50% - 50vw); width: auto; }
.mdx-hscroll__card--joint-left { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: calc(50% - 50vw); width: auto; padding-left: calc(50vw - 50% + 30px); }
/* Teal gradient bubble on the title slide's background (blends with the
   bg photo inside the bgpanel, and crossfades with it) */
.mdx-hscroll__bgpanel--title::after { content: ""; position: absolute; right: -100px; top: calc(50% - 20vw); width: 40vw; height: 40vw; border-radius: 50%; background: linear-gradient(154deg, #CFF434 0%, #1D4F91 97%); opacity: .6; mix-blend-mode: hard-light; pointer-events: none; }
.mdx-hscroll__introcard { width: 60%; max-width: none; margin-left: -30px; padding: 100px 30px; border-radius: 10px; background: rgba(160,180,200,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 60px rgba(0,31,62,.3); }
.mdx-hscroll h2.mdx-hscroll__introtitle { font: 400 50px/1.2 "Titillium Web", sans-serif; margin: 0 0 40px; color: #fff; }
.mdx-hscroll__introcard .mdx-hscroll__streak { margin: 0; }
.mdx-hscroll h2.mdx-hscroll__decade { font: 700 40px/1.1 "Titillium Web", sans-serif; margin: 0; color: #fff; }
.mdx-hscroll h3.mdx-hscroll__sub { font: 600 22px/1.3 "Titillium Web", sans-serif; margin: 6px 0 14px; color: #fff; }
.mdx-hscroll__streak { display: block; flex-shrink: 0; width: 210px; height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(5,209,110,0) 0%, #05D16E 100%); margin: 0 0 30px; }
.mdx-hscroll__text { font: 400 20px/1.5 "Titillium Web", sans-serif; max-width: 640px; margin: 0 0 44px; color: #fff; }
.mdx-hscroll__mlabel { font: 400 14px/1.4 "Open Sans", sans-serif; margin: 0 0 24px; color: #fff; }
.mdx-hscroll__milestones { list-style: none; position: relative; display: flex; gap: 40px; margin: 0; padding: 0; height: 300px; flex-shrink: 0; }
.mdx-hscroll__milestones::before { content: ""; position: absolute; top: 131px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.55); mask-image: var(--tlmaskline, none); -webkit-mask-image: var(--tlmaskline, none); mask-composite: intersect; -webkit-mask-composite: source-in; }
.mdx-hscroll__card--joint-left .mdx-hscroll__milestones::before { left: -50vw; }
.mdx-hscroll__card--joint-right .mdx-hscroll__milestones::before { right: -50vw; }
/* Jointed-left slides arrive with the seam portion of the bar already filled
   (continuity from the previous slide); progress then fills the content span. */
.mdx-hscroll__card--joint-left .mdx-hscroll__milestones::after { left: -50vw; width: calc(var(--tlL, 0) * 50vw + var(--tlp, 0) * 100% + var(--tlR, 0) * 50vw); mask-image: var(--tlmaskline, none); -webkit-mask-image: var(--tlmaskline, none); }
.mdx-hscroll__milestones::after { content: ""; position: absolute; top: 128px; left: 0; height: 7px; width: calc(var(--tlp, 0) * 100% + var(--tlR, 0) * 50vw); background: #05D16E; border-radius: 4px; pointer-events: none; transition: width .45s ease-out; mask-image: var(--tlmask, none); -webkit-mask-image: var(--tlmask, none); mask-composite: intersect; -webkit-mask-composite: source-in; }
.mdx-hscroll__milestone { position: relative; flex: 1 1 0; min-width: 0; font: 400 13px/1.45 "Open Sans", sans-serif; color: #fff; }
.mdx-hscroll__milestone .mdx-hscroll__mdesc { max-width: 220px; }
.mdx-hscroll__milestone::before { content: ""; position: absolute; top: 120.5px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: transparent; border: 3px solid rgba(255,255,255,.55); box-sizing: content-box; transition: border-color .3s ease, box-shadow .3s ease; z-index: 1; }
.mdx-hscroll__milestone.is-shown::before { border-color: #05D16E; box-shadow: 0 0 12px rgba(5,209,110,.6); }
.mdx-hscroll__mimg { display: block; width: 160px; height: 107px; object-fit: cover; border-radius: 4px !important; margin: 0; }
.mdx-hscroll__milestone .mdx-hscroll__mimg { opacity: 0; transform: translateY(-18px); transition: opacity .45s ease, transform .45s ease; }
.mdx-hscroll__milestone .mdx-hscroll__mdesc { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.mdx-hscroll__milestone.is-shown .mdx-hscroll__mimg, .mdx-hscroll__milestone.is-shown .mdx-hscroll__mdesc { opacity: 1; transform: translateY(0); }
.mdx-hscroll__mdesc { display: block; margin-top: 48px; }
.mdx-hscroll__milestone--noimg .mdx-hscroll__mdesc { margin-top: 155px; }
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
	.mdx-hscroll { height: auto !important; }
	.mdx-hscroll__pin { position: static; height: auto; overflow: visible; }

	/* Background: fixed behind the scroll, crossfades per decade */
	.mdx-hscroll__bgs { display: block; position: sticky; top: 0; height: 100vh; z-index: 0; }
	.mdx-hscroll__bgpanel { transition: opacity .6s ease; }
	.mdx-hscroll__bgpanel--title::after { display: none; }

	.mdx-hscroll__track { display: block; width: auto !important; height: auto; transform: none !important; position: relative; z-index: 1; margin-top: -100vh; padding-bottom: 48px; }
	.mdx-hscroll__panel { width: 100%; height: auto; flex: none; }
	.mdx-hscroll__content { position: relative; display: block; height: auto; max-width: none; }

	/* Intro / title: normal scroll, glass card, top-anchored (sticky). No fade. */
	.mdx-hscroll__panel:first-child { min-height: 100vh; }
	.mdx-hscroll__panel:first-child .mdx-hscroll__content { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 56px 20px !important; }
	.mdx-hscroll__introcard { width: 100%; margin: 0; padding: 40px 28px; background: rgba(255,255,255,.10); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 14px; box-shadow: 0 0 40px rgba(0,31,62,.25); text-align: center; }
	.mdx-hscroll__panel:first-child .mdx-hscroll__streak { margin: 10px auto 0; }

	/* Decade content = plain padded block; ONE shared glass sheet (JS-positioned
	   .mdx-hscroll__mglass) spans every decade so the blur has no per-card seams */
	.mdx-hscroll__card, .mdx-hscroll__card--joint-left, .mdx-hscroll__card--joint-right { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-radius: 0; padding: 0; margin: 0; width: 100%; height: auto; overflow: visible; display: block; }
	.mdx-hscroll__panel:not(:first-child) .mdx-hscroll__content { margin: 0 14px; padding: 50px 24px 50px 52px; overflow: hidden; }
	.mdx-hscroll__panel:nth-child(2) .mdx-hscroll__content { margin-top: 24px; }
	.mdx-hscroll__mglass { display: block; position: absolute; left: 14px; right: 14px; background: rgba(255,255,255,.09); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 14px; pointer-events: none; z-index: 0; }

	/* Typography */
	.mdx-hscroll h2.mdx-hscroll__introtitle { font-size: 32px; margin: 0 0 8px; }
	.mdx-hscroll h2.mdx-hscroll__decade { font-size: 32px; margin: 0 0 6px; }
	.mdx-hscroll h3.mdx-hscroll__sub { font-size: 18px; margin: 0 0 14px; }
	.mdx-hscroll__streak { width: 150px; height: 12px; margin: 4px 0 30px; }
	.mdx-hscroll__text { font-size: 16px; line-height: 1.55; max-width: none; margin: 0 0 34px; }

	/* Milestones */
	.mdx-hscroll__card .mdx-hscroll__mlabel { position: static; margin: 0 0 30px; font-size: 13px; }
	.mdx-hscroll__milestones { position: static; display: block; height: auto; margin: 0; padding: 0; }
	.mdx-hscroll__card .mdx-hscroll__milestones { position: static; }
	.mdx-hscroll__milestones::before, .mdx-hscroll__milestones::after { display: none; }
	.mdx-hscroll__milestone { display: block; position: relative; flex: none; padding: 0 0 44px; margin: 0; }
	.mdx-hscroll__milestone:last-child { padding-bottom: 0; }
	.mdx-hscroll__mimg { display: block; width: min(240px, 100%); height: auto; aspect-ratio: 210 / 131; object-fit: cover; border-radius: 8px !important; margin: 0 0 14px; }
	.mdx-hscroll__mdesc { display: block; margin: 0; max-width: none; font-size: 14px; line-height: 1.5; }
	.mdx-hscroll__milestone--noimg .mdx-hscroll__mdesc { margin: 0; }
	.mdx-hscroll__milestone .mdx-hscroll__mimg,
	.mdx-hscroll__milestone .mdx-hscroll__mdesc { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
	.mdx-hscroll__milestone.is-shown .mdx-hscroll__mimg,
	.mdx-hscroll__milestone.is-shown .mdx-hscroll__mdesc { opacity: 1; transform: none; }

	/* Vertical tracker INSIDE each decade card; masked so it is cut at every marker (JS sets --cmask + --cfill) */
	.mdx-hscroll__panel:not(:first-child) .mdx-hscroll__content::before,
	.mdx-hscroll__panel:not(:first-child) .mdx-hscroll__content::after { content: ""; position: absolute; left: 28px; top: 0; width: 4px; z-index: 1; pointer-events: none; -webkit-mask-image: var(--cmask, none); mask-image: var(--cmask, none); -webkit-mask-composite: source-in; mask-composite: intersect; }
	.mdx-hscroll__panel:not(:first-child) .mdx-hscroll__content::before { bottom: 0; background: rgba(255,255,255,.35); }
	.mdx-hscroll__panel:not(:first-child) .mdx-hscroll__content::after { height: var(--cfill, 0px); background: #05D16E; box-shadow: 0 0 10px rgba(5,209,110,.5); }

	/* Ring markers (transparent centre) sitting in the rail's cut */
	.mdx-hscroll__milestone::before { content: ""; position: absolute; left: -29px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: transparent; border: 3px solid rgba(255,255,255,.6); box-sizing: border-box; z-index: 2; transition: border-color .3s ease, box-shadow .3s ease; }
	.mdx-hscroll__milestone.is-shown::before { border-color: #05D16E; box-shadow: 0 0 12px rgba(5,209,110,.7); }
}

