/* History timeline (vis/timeline). Without JavaScript everything is shown
   and the line is full; motion.js adds the scroll-driven fill, the active
   year and the reveals. */
.vis-timeline {
	--tl-gold: var(--wp--preset--color--gold-500);
	--tl-line: color-mix(in srgb, var(--vis-ink) 14%, transparent);
	--tl-year: clamp(4.5rem, 2rem + 8vw, 11rem);
	--tl-sticky: 22vh;
	position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: clamp(1.5rem, 3vw, 3.5rem);
	color: var(--vis-ink);
}
.vis-timeline .screen-reader-text, .vis-timeline__kicker-year { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Tools: jump to year + search */
.vis-timeline__tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin-bottom: clamp(2rem, 5vw, 4rem); }
.vis-timeline__tools select, .vis-timeline__tools input {
	font: inherit; font-size: .9375rem; color: var(--vis-ink); background: color-mix(in srgb, var(--vis-ink) 6%, transparent);
	border: 1px solid color-mix(in srgb, var(--vis-ink) 22%, transparent); border-radius: var(--wp--custom--radius--pill); padding: .8rem 1.25rem; min-height: 48px;
}
.vis-timeline__tools select { padding-right: 2.75rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f8981d' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 12px; }
.vis-timeline__tools select option { color: #0b233f; }
.vis-timeline__tools input { min-width: min(22rem, 100%); }
.vis-timeline__tools input::placeholder { color: color-mix(in srgb, var(--vis-ink) 60%, transparent); }
.vis-timeline__tools :focus-visible { outline: var(--wp--custom--focus--ring); outline-offset: 2px; }

/* Year index rail (desktop) */
.vis-timeline__index { position: sticky; top: 7rem; align-self: start; max-height: calc(100vh - 9rem); overflow-y: auto; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 2rem, #000 calc(100% - 2rem), transparent); }
.vis-timeline__index::-webkit-scrollbar { display: none; }
.vis-timeline__index ol { list-style: none; margin: 0; padding: 1.5rem 0; display: grid; gap: .1rem; }
.vis-timeline__index a { display: flex; align-items: center; gap: .5rem; padding: .2rem 0; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; color: color-mix(in srgb, var(--vis-ink) 38%, transparent); text-decoration: none; transition: color .3s, transform .3s; }
.vis-timeline__index a::before { content: ""; width: .6rem; height: 1px; background: currentColor; transition: width .3s; }
.vis-timeline__index a:hover, .vis-timeline__index a.is-active { color: var(--vis-ink); }
.vis-timeline__index a.is-active { color: var(--tl-gold); }
.vis-timeline__index a.is-active::before { width: 1.4rem; }

/* Track: big year | line | card */
.vis-timeline__track { position: relative; }
.vis-timeline__list { list-style: none; margin: 0; padding: 0; }
.vis-timeline__line { position: absolute; top: 0; bottom: 0; left: var(--tl-line-x, calc(40% + 2rem)); width: 2px; margin-left: -1px; background: var(--tl-line); border-radius: 2px; }
.vis-timeline__line span { position: absolute; inset: 0; background: linear-gradient(180deg, var(--wp--preset--color--gold-300), var(--tl-gold) 40%, var(--tl-gold)); transform-origin: top; border-radius: inherit; box-shadow: 0 0 18px rgba(248, 152, 29, .55); }
.vis-timeline__item { display: grid; grid-template-columns: minmax(0, 40%) 4rem minmax(0, 1fr); align-items: start; padding-block: clamp(3rem, 8vh, 6rem); scroll-margin-top: 6rem; }
.vis-timeline__aside { position: sticky; top: var(--tl-sticky); display: grid; justify-items: end; gap: clamp(1.25rem, 2.5vw, 2rem); padding-right: clamp(.5rem, 2vw, 2rem); }
.vis-timeline__year { text-align: right; }
.vis-timeline__year span {
	display: inline-block; font-family: var(--wp--preset--font-family--display); font-style: italic; text-transform: uppercase; font-size: var(--tl-year); line-height: .8; letter-spacing: -.01em;
	color: var(--vis-ink); transition: color .5s, -webkit-text-stroke-color .5s, opacity .5s;
}
.vis-timeline__dot { position: sticky; top: calc(var(--tl-sticky) + var(--tl-year) * .32); justify-self: center; z-index: 1; width: 18px; height: 18px; margin-top: calc(var(--tl-year) * .32 - 9px); border-radius: 50%; background: var(--wp--preset--color--navy-900); border: 2px solid var(--tl-gold); transition: background .4s, box-shadow .4s, transform .4s; }
.vis-timeline__card { background: var(--vis-surface, color-mix(in srgb, var(--vis-ink) 6%, transparent)); border: 1px solid var(--vis-surface-line, color-mix(in srgb, var(--vis-ink) 12%, transparent)); border-radius: var(--wp--custom--radius--lg); overflow: hidden; transition: opacity .5s, filter .5s; }
.vis-timeline__media { margin: 0; width: min(100%, 26rem); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--wp--custom--radius--lg); background: var(--wp--preset--color--navy-800); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.vis-timeline__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.vis-timeline__body { padding: clamp(1.5rem, 3vw, 2.75rem); }
.vis-timeline__kicker { margin: 0 0 .75rem; color: var(--tl-gold); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.vis-timeline__title { margin: 0; font-family: var(--wp--preset--font-family--display); font-style: italic; text-transform: uppercase; font-weight: 400; font-size: clamp(2rem, 1.25rem + 2.5vw, 3.25rem); line-height: .95; }
.vis-timeline__sport { display: inline-block; margin: 1rem 0 0; padding: .35rem .9rem; border: 1px solid color-mix(in srgb, var(--vis-ink) 30%, transparent); border-radius: var(--wp--custom--radius--pill); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.vis-timeline__text { margin-top: 1.25rem; color: color-mix(in srgb, var(--vis-ink) 82%, transparent); line-height: 1.65; }
.vis-timeline__text p { margin: 0 0 1rem; }
.vis-timeline__text strong { color: var(--vis-ink); }
.vis-timeline__text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.vis-timeline__text li { padding-left: 1.1rem; position: relative; }
.vis-timeline__text li::before { content: ""; position: absolute; left: 0; top: .7em; width: .45rem; height: 2px; background: var(--tl-gold); }

/* Champions: medal counts + full list */
.vis-timeline__stats { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; }
.vis-timeline__stats li { display: grid; }
.vis-timeline__stats strong { font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 400; font-size: clamp(2.75rem, 2rem + 2vw, 4rem); line-height: .9; color: var(--tl-gold); }
.vis-timeline__stats span { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--vis-ink) 70%, transparent); }
.vis-timeline__more { margin-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--vis-ink) 12%, transparent); padding-top: 1.25rem; }
.vis-timeline__more summary { cursor: pointer; display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; font-size: .9375rem; list-style: none; min-height: 44px; }
.vis-timeline__more summary::-webkit-details-marker { display: none; }
.vis-timeline__more summary::after { content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--tl-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%230b233f' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .3s; }
.vis-timeline__more[open] summary::after { transform: rotate(45deg); }
.vis-timeline__more summary:focus-visible { outline: var(--wp--custom--focus--ring); outline-offset: 4px; border-radius: 4px; }
.vis-timeline__more h4 { margin: 1.5rem 0 .5rem; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tl-gold); font-family: inherit; font-style: normal; }
.vis-timeline__people { list-style: none; margin: 0; padding: 0; }
.vis-timeline__people li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid color-mix(in srgb, var(--vis-ink) 8%, transparent); font-size: .9375rem; }
.vis-timeline__people li span:last-child { color: color-mix(in srgb, var(--vis-ink) 60%, transparent); text-align: right; }
.vis-timeline__people mark { background: var(--tl-gold); color: var(--wp--preset--color--navy-900); border-radius: 2px; padding: 0 .1em; }
.vis-timeline__empty { padding: 3rem 0; text-align: center; color: color-mix(in srgb, var(--vis-ink) 70%, transparent); }

/* Scroll states (only once motion.js is running) */
.vis-timeline.is-live .vis-timeline__item .vis-timeline__year span { color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--vis-ink) 28%, transparent); }
.vis-timeline.is-live .vis-timeline__item.is-active .vis-timeline__year span { color: var(--vis-ink); -webkit-text-stroke-color: transparent; }
.vis-timeline.is-live .vis-timeline__item:not(.is-active) :is(.vis-timeline__card, .vis-timeline__media) { opacity: .5; filter: saturate(.3); }
.vis-timeline__media { transition: opacity .5s, filter .5s; }
.vis-timeline.is-live .vis-timeline__item.is-active .vis-timeline__dot { background: var(--tl-gold); box-shadow: 0 0 0 6px rgba(248, 152, 29, .2), 0 0 24px rgba(248, 152, 29, .8); transform: scale(1.15); }
.vis-timeline__item.is-hidden { display: none; }

@media (max-width: 1023px) {
	.vis-timeline { grid-template-columns: minmax(0, 1fr); --tl-year: clamp(3.5rem, 12vw, 5.5rem); }
	.vis-timeline__tools { justify-content: stretch; }
	.vis-timeline__tools > * { flex: 1 1 14rem; }
	.vis-timeline__tools select, .vis-timeline__tools input { width: 100%; }
	.vis-timeline__head .vis-timeline__tools { flex-wrap: wrap; width: 100%; }
	.vis-timeline__head .vis-filters__search { min-width: 0; flex: 1 1 100%; }
	.vis-timeline__head .vis-filters__select { width: 100%; }
	.vis-timeline__index { display: none; }
	/* The year picker stays in reach while the list scrolls (Award of Excellence is ~39,000px on a phone). The site header hides on scroll-down, so top: 0 is the viewport. */
	.vis-timeline .vis-timeline__tools { position: sticky; top: 0; z-index: 20; padding-block: .75rem; background: var(--wp--preset--color--navy-900); }
	/* Our Champions wraps the tools in a section head with the heading. On phones the head gives up its box so only the tools stick (232px of heading + picker is too much screen); the heading keeps the rule and gold tick itself. */
	.vis-timeline .vis-timeline__head { display: contents; }
	.vis-timeline .vis-timeline__head::before { display: none; }
	.vis-timeline .vis-timeline__head > h2 { position: relative; grid-column: 1 / -1; margin: 0 0 .5rem; padding-top: 1.75rem; border-top: 1px solid color-mix(in srgb, var(--vis-ink) 14%, transparent); }
	.vis-timeline .vis-timeline__head > h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; border-top: 2px solid var(--wp--preset--color--gold-500); }
	.vis-timeline .vis-timeline__head > .vis-timeline__span { grid-column: 1 / -1; order: 0; margin: 0 0 1.25rem; }
	.vis-timeline .vis-timeline__head > .vis-timeline__tools { grid-column: 1 / -1; margin: 0 0 clamp(2rem, 5vw, 4rem) !important; }
	.vis-timeline__line { left: 9px; }
	.vis-timeline__item { grid-template-columns: 18px minmax(0, 1fr); column-gap: 1.25rem; padding-block: 2rem; }
	.vis-timeline__aside { position: static; grid-column: 2; grid-row: 1; justify-items: start; padding: 0 0 1.25rem; gap: 1rem; }
	.vis-timeline__year { text-align: left; }
	.vis-timeline__media { width: 100%; aspect-ratio: 16 / 10; }
	.vis-timeline__dot { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 45vh; margin-top: calc(var(--tl-year) * .3); }
	.vis-timeline__card { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
	.vis-timeline *, .vis-timeline *::before, .vis-timeline *::after { transition: none !important; }
}
.vis-timeline__people li.is-match { color: var(--wp--preset--color--navy-900); background: var(--tl-gold); border-radius: 6px; padding-inline: .6rem; }
.vis-timeline__people li.is-match span:last-child { color: inherit; }
.vis-history .vis-legacy__title { margin-bottom: clamp(6rem, 11vw, 10rem); }
.vis-history__intro .legacy-text { max-width: 60rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }

/* Song line layout (Champions). Without motion it is the list above with a
   dotted line. On wide screens motion.js pins it and the years travel left to
   right along the VIS song line (its dots traced from the artwork), cards and
   photos alternating either side of the line. */
.vis-timeline--songline:not(.is-horizontal) { max-width: 1600px; margin-inline: auto; padding-inline: var(--wp--style--root--padding-left, 1.25rem) var(--wp--style--root--padding-right, 1.25rem); }
.vis-timeline--songline .vis-timeline__line { width: 4px; margin-left: -2px; background: radial-gradient(circle, color-mix(in srgb, var(--vis-ink) 30%, transparent) 1.6px, transparent 2px) center top / 4px 12px repeat-y; }
.vis-timeline--songline .vis-timeline__line span { display: none; }
.vis-timeline__wave { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.vis-timeline__wave path { fill: none; stroke-linecap: round; stroke-dasharray: 0 var(--tl-dot-gap, 15px); stroke-width: var(--tl-dot, 6px); }
.vis-timeline__wave .is-base { stroke: color-mix(in srgb, var(--vis-ink) 24%, transparent); }
.vis-timeline__wave .is-lit { stroke: var(--tl-gold); filter: drop-shadow(0 0 6px rgba(248, 152, 29, .55)); }
.vis-timeline__wave .is-head { fill: var(--tl-gold); filter: drop-shadow(0 0 10px rgba(248, 152, 29, .9)); }
.vis-timeline:not(.is-live) .vis-timeline__wave { display: none; }
.vis-timeline--songline.is-live:not(.is-horizontal) .vis-timeline__line { display: none; }
@media (max-width: 1023px) {
	.vis-timeline--songline.is-live .vis-timeline__item { grid-template-columns: 40px minmax(0, 1fr); column-gap: .75rem; }
	.vis-timeline--songline.is-live .vis-timeline__dot { display: none; }
	.vis-timeline--songline { --tl-dot: 5px; --tl-dot-gap: 12px; }
	/* The artwork on phones: the line winds down a column on the left, a
	   dot on it beside each year */
	.vis-timeline--songline.has-art { --tl-colw: 64px; }
	.vis-timeline--songline.has-art .vis-timeline__wave { display: none; }
	.vis-timeline--songline.is-live.has-art .vis-timeline__line { display: block; left: calc(var(--tl-colw) / 2); width: 1px; margin: 0; background: color-mix(in srgb, var(--vis-ink) 16%, transparent); }
	.vis-timeline--songline.is-live.has-art .vis-timeline__line span { display: block; background: var(--tl-gold); }
	.vis-timeline--songline.has-art .vis-timeline__item { position: relative; grid-template-columns: var(--tl-colw) minmax(0, 1fr); column-gap: .5rem; padding-block: 2.5rem; }
	.vis-timeline--songline.has-art .vis-timeline__aside, .vis-timeline--songline.has-art .vis-timeline__card { grid-column: 2; }
	.vis-timeline--songline.has-art .vis-timeline__dot { display: block; position: absolute; top: var(--dot-top, 1rem); left: calc(var(--tl-colw) / 2); width: 12px; height: 12px; margin: 0; translate: -50% -50%; border: 0; border-radius: 50%; box-shadow: 0 0 0 6px var(--wp--preset--color--navy-900); background: color-mix(in srgb, var(--vis-ink) 30%, transparent); transition: background .5s, width .5s, height .5s; }
	.vis-timeline--songline.has-art .vis-timeline__item.is-past .vis-timeline__dot { background: var(--tl-gold); }
	.vis-timeline--songline.has-art .vis-timeline__item.is-active .vis-timeline__dot { width: 16px; height: 16px; background: var(--tl-gold); box-shadow: 0 0 0 2px var(--wp--preset--color--white), 0 0 0 8px var(--wp--preset--color--navy-900); }
	.vis-timeline--songline.has-art .vis-timeline__year span { font-size: clamp(3rem, 11vw, 4.5rem); }
}

/* Horizontal journey (wide screens, motion.js). The song line runs along
   the foot of the screen like ground, a station for every year. The year in
   focus is the one at the middle of the screen: its number, its story and its
   figures set in type, pinned to the line; its photo lies behind the way
   travelled. motion.js moves each year's card and photo into the stage
   (.vis-timeline__scene) and back on cleanup. */
.vis-timeline.is-horizontal {
	--tl-col: clamp(12rem, 15vw, 17rem);
	--tl-band: clamp(8rem, 20vh, 12rem);
	--tl-foot: clamp(4.5rem, 11vh, 7rem);
	--tl-lines: 3;
	--tl-gutter: max(var(--wp--style--root--padding-left, 1.25rem), calc((100vw - 1600px) / 2 + 1.25rem), 3vw);
	--tl-ease: cubic-bezier(.16, 1, .3, 1);
	--tl-dot: 8px; --tl-dot-gap: 18px;
	display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
	height: 100vh; height: 100svh; padding: clamp(1.25rem, 3vh, 2rem) 0 0; overflow: hidden; box-sizing: border-box;
}
/* The journey opens like every section: the rule, the heading in the display
   face, the site's filter bar on the right */
.vis-timeline__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.vis-timeline__head h2 { margin: 0; }
.vis-timeline__head .vis-timeline__span { order: 3; flex-basis: 100%; margin: -.5rem 0 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vis-muted); }
.vis-timeline__head .vis-timeline__tools { margin: 0 !important; }
.vis-timeline__head .vis-filters__search { display: flex; align-items: center; border-radius: var(--wp--custom--radius--pill); }
.vis-timeline.is-horizontal .vis-timeline__head .vis-timeline__tools { flex-wrap: nowrap; }
.vis-timeline.is-horizontal .vis-timeline__head .vis-filters__search { min-width: 16rem; }
.vis-timeline__head .vis-filters__select { min-width: 10rem; }
.vis-timeline.is-horizontal .vis-timeline__head { grid-area: 1 / 1; position: relative; z-index: 5; margin: 0 var(--tl-gutter); }
.vis-timeline.is-horizontal .vis-timeline__head .vis-timeline__span { order: 0; flex-basis: auto; margin: 0 auto 1rem 1.5rem; }
.vis-timeline.is-horizontal .vis-timeline__index { display: none; }
.vis-timeline.is-horizontal .vis-timeline__track { grid-area: 2 / 1; position: relative; align-self: stretch; min-height: 0; overflow: visible; }
.vis-timeline.is-horizontal .vis-timeline__line { display: none; }

/* The line and its stations: a band along the foot of the screen. The line
   is drawn by motion.js in the artwork's language: orange dots inside a
   white outline, a ghost of it ahead, in full behind you */
.vis-timeline.has-art .vis-timeline__wave path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: none; filter: none; }
.vis-timeline.has-art .vis-timeline__wave .is-tube { stroke: var(--wp--preset--color--white); stroke-width: var(--tl-tube, 16px); }
.vis-timeline.has-art .vis-timeline__wave .is-gap { stroke-width: calc(var(--tl-tube, 16px) - 4px); }
.vis-timeline.has-art .vis-timeline__wave .is-dots { stroke: var(--tl-gold); stroke-width: var(--tl-dot, 7px); stroke-dasharray: 0 var(--tl-dot-gap, 9px); }
.vis-timeline.has-art .vis-timeline__wave .is-base { opacity: .2; }
.vis-timeline.has-art .vis-timeline__wave .is-lit { filter: drop-shadow(0 0 10px rgba(248, 152, 29, .35)); }
.vis-timeline.is-horizontal .vis-timeline__list { position: absolute; z-index: 2; top: var(--tl-line-top); left: 0; display: flex; width: max-content; height: var(--tl-band); padding-inline: calc(50vw - var(--tl-col) / 2); will-change: transform; }
.vis-timeline.is-horizontal .vis-timeline__item { z-index: 1; }
/* The line in the band is her own orange song line, one tile of the artwork
   repeating without a seam (motion.js sets its size and the travelled clip):
   a ghost of it ahead of you, the full colour behind you */
.vis-timeline.is-horizontal .vis-timeline__wave { display: none; }
.vis-timeline__rail { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.vis-timeline__rail > div { position: absolute; inset: 0; background: var(--tl-rail) left top / var(--tl-rail-w, auto) var(--tl-rail-h, 100%) repeat-x; }
.vis-timeline__rail > .is-ghost { opacity: .3; }
.vis-timeline__rail > .is-lit { mask-image: linear-gradient(90deg, #000 calc(var(--tl-lit, 0px) - 36px), transparent calc(var(--tl-lit, 0px) + 36px)); }
.vis-timeline.is-horizontal .vis-timeline__item { position: relative; flex: 0 0 var(--tl-col); height: 100%; display: block; padding: 0; }
.vis-timeline.is-horizontal .vis-timeline__item.is-hidden { display: none; }
.vis-timeline.is-horizontal .vis-timeline__item > :not(.vis-timeline__dot, .vis-timeline__station) { display: none; }
/* Station: a dot on the line, the year beneath it */
.vis-timeline.is-horizontal .vis-timeline__dot {
	position: absolute; top: var(--dot-y, 50%); left: 50%; margin: 0; width: 20px; height: 20px; translate: -50% -50%;
	background: var(--wp--preset--color--navy-900); border: 2px solid color-mix(in srgb, var(--vis-ink) 55%, transparent); box-shadow: 0 0 0 7px var(--wp--preset--color--navy-900);
	transition: border-color .5s, background .5s, box-shadow .5s, transform .5s var(--tl-ease);
}
.vis-timeline.is-horizontal .vis-timeline__dot::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px dotted color-mix(in srgb, var(--tl-gold) 75%, transparent); opacity: 0; transform: scale(.6); transition: transform .7s var(--tl-ease), opacity .5s; }
.vis-timeline.is-horizontal .vis-timeline__item.is-active .vis-timeline__dot { background: var(--tl-gold); border-color: var(--tl-gold); box-shadow: 0 0 0 7px var(--wp--preset--color--navy-900), 0 0 36px rgba(248, 152, 29, .9); transform: scale(1.15); }
.vis-timeline.is-horizontal .vis-timeline__item.is-active .vis-timeline__dot::after { opacity: 1; transform: rotate(90deg) scale(1); }
.vis-timeline.is-horizontal .vis-timeline__item.is-past .vis-timeline__dot { border-color: var(--tl-gold); }
.vis-timeline.is-horizontal .vis-timeline__station {
	position: absolute; top: calc(var(--dot-y, 50%) + 1.6rem); left: 50%; translate: -50% 0; display: block;
	font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.25rem; letter-spacing: .03em; line-height: 1;
	color: color-mix(in srgb, var(--vis-ink) 40%, transparent); transition: color .5s, transform .6s var(--tl-ease), opacity .5s, top .5s var(--tl-ease);
}
.vis-timeline.is-horizontal .vis-timeline__item.is-past .vis-timeline__station { color: color-mix(in srgb, var(--vis-ink) 65%, transparent); }
.vis-timeline.is-horizontal .vis-timeline__item.is-active .vis-timeline__station { color: var(--tl-gold); transform: translateY(.25rem) scale(1.2); }

/* With the artwork, each year is a dot in the line's own language. The
   colour runs along the line to the middle of the screen, where you are */
.vis-timeline.has-art .vis-timeline__dot { width: 16px; height: 16px; border: 2px solid color-mix(in srgb, var(--vis-ink) 30%, transparent); background: color-mix(in srgb, var(--vis-ink) 30%, transparent); box-shadow: none; transition: background .5s, border-color .5s, transform .6s var(--tl-ease); }
.vis-timeline.has-art .vis-timeline__dot::after { display: none; }
.vis-timeline.has-art .vis-timeline__item.is-past .vis-timeline__dot, .vis-timeline.has-art .vis-timeline__item.is-active .vis-timeline__dot { background: var(--tl-gold); border-color: var(--wp--preset--color--white); }
.vis-timeline.has-art .vis-timeline__item.is-active .vis-timeline__dot { transform: scale(1.25); box-shadow: none; }
.vis-timeline.has-art .vis-timeline__item:hover:not(.is-active) .vis-timeline__dot { background: var(--vis-ink); border-color: var(--vis-ink); transform: scale(1.2); }
.vis-timeline.has-art .vis-timeline__item.is-active .vis-timeline__station { transform: translateY(.25rem) scale(1.2); }

.vis-timeline.is-horizontal .vis-timeline__item { cursor: pointer; }
.vis-timeline.is-horizontal .vis-timeline__item:hover:not(.is-active) .vis-timeline__station { color: var(--vis-ink); }
.vis-timeline.is-horizontal .vis-timeline__item :is(.vis-timeline__dot, .vis-timeline__station) { transition-property: opacity, color, background, border-color, transform, width, height, top; }
.vis-timeline__nav { position: absolute; z-index: 4; right: var(--tl-gutter); bottom: clamp(2rem, 5vh, 3rem); margin: 0 !important; }
.vis-timeline__nav .vis-carousel__count { font-size: .8125rem; }

/* The stage: the year in focus, laid over (and under) the line. No opacity
   on the scene itself, so its layers keep their place above and below the line. */
.vis-timeline__stage { position: absolute; inset: 0; pointer-events: none; }
.vis-timeline__scene { position: absolute; inset: 0; visibility: hidden; transition: visibility 0s .7s; }
.vis-timeline.is-ready .vis-timeline__scene.is-active { visibility: visible; transition-delay: 0s; }
.vis-timeline__scene.is-hidden { display: none; }
.vis-timeline__band { position: absolute; bottom: var(--tl-foot); left: 0; width: 1px; height: var(--tl-band); }

/* Photo of the year, behind the way travelled: full height, graded into the
   navy, drawing slowly closer while the year is in focus */
.vis-timeline.is-horizontal .vis-timeline__media {
	position: absolute; z-index: 1; inset: 0 auto 0 0; width: 62vw; height: 100%; max-height: none; aspect-ratio: auto; margin: 0; border-radius: 0; box-shadow: none; overflow: hidden;
	mask-image: linear-gradient(90deg, #000 25%, transparent 88%); opacity: 0; filter: saturate(.7) contrast(1.05); clip-path: inset(0 0 0 100%); transition: opacity .9s, clip-path 1.4s var(--tl-ease);
}
.vis-timeline.is-ready .vis-timeline__scene.is-active .vis-timeline__media { clip-path: inset(0); }
.vis-timeline.is-horizontal .vis-timeline__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--wp--preset--color--navy-900) 6%, transparent 50%), linear-gradient(180deg, var(--wp--preset--color--navy-900), transparent 35%), linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--navy-900) 55%, transparent), transparent 40%); }
.vis-timeline.is-horizontal .vis-timeline__media img { width: 110%; height: 100%; margin-left: -5%; object-fit: cover; object-position: 50% 25%; scale: 1.06; transition: scale 9s linear; }
.vis-timeline.is-ready .vis-timeline__scene.is-active .vis-timeline__media { opacity: .62; }
.vis-timeline.is-ready .vis-timeline__scene.is-active .vis-timeline__media img { scale: 1; }

/* The story: set in type above the line. Its
   numerals are the reels (one set for the journey, standing where each
   year's own hidden numerals are); the rest rises in turn as the year arrives,
   the lines of the story behind a mask (motion.js, SplitText). */
.vis-timeline.is-horizontal { --tl-year: clamp(4.5rem, 3.25rem + 4.5vw, 7.5rem); --tl-story-x: calc(50% - 2rem); }
.vis-timeline.is-horizontal .vis-timeline__card {
	position: absolute; z-index: 3; left: var(--tl-story-x); bottom: calc(100% - var(--tl-line-top, 70%) + 1.5rem); width: min(37rem, 44vw); pointer-events: auto;
	background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; transition: none; transform-origin: 0 100%;
}
.vis-timeline.is-horizontal .vis-timeline__body { padding: 0; }
.vis-timeline.is-horizontal .vis-timeline__body > :not(.vis-timeline__text) { opacity: 0; transform: translateY(1.25rem); transition: opacity .6s, transform 1s var(--tl-ease); }
.vis-timeline.is-ready .vis-timeline__scene.is-active .vis-timeline__body > * { opacity: 1; transform: none; }
.vis-timeline.is-ready .vis-timeline__scene.is-active .vis-timeline__body > :nth-child(2) { transition-delay: .1s; }
.vis-timeline.is-ready .vis-timeline__scene.is-active .vis-timeline__body > :nth-child(4) { transition-delay: .3s; }
.vis-timeline.is-horizontal .vis-timeline__kicker { display: flex; align-items: baseline; gap: clamp(1.5rem, 2.5vw, 2.25rem); margin: 0 0 clamp(1rem, 2vh, 1.5rem); font-family: var(--wp--preset--font-family--body); font-style: normal; font-weight: 700; font-size: clamp(.875rem, .75rem + .4vw, 1.0625rem); letter-spacing: .16em; line-height: 1.3; text-transform: uppercase; }
.vis-timeline.is-horizontal .vis-timeline__kicker-year { position: static !important; width: auto; height: auto; clip-path: none; overflow: visible; display: inline-block; font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: var(--tl-year); line-height: .82; letter-spacing: -.01em; text-transform: none; margin-left: -.03em; visibility: hidden; }
.vis-timeline__roll { position: absolute; z-index: 3; left: var(--tl-story-x); top: 0; margin: 0 0 0 -.03em; display: flex; font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: var(--tl-year); line-height: .82; letter-spacing: -.01em; color: var(--vis-ink); opacity: 0; transition: opacity .3s; pointer-events: none; transform-origin: 0 100%; }
.vis-timeline.is-ready .vis-timeline__roll { opacity: 1; }
/* Each reel hides only the digits above and below it: italic numerals lean
   past their box at the sides, so the clip leaves room there. */
.vis-timeline__roll span { display: block; height: .82em; overflow: visible; clip-path: inset(0 -.4em); }
.vis-timeline__roll em { display: block; font-style: italic; will-change: transform; }
.vis-timeline__roll i { display: block; height: .82em; font-style: italic; }
.vis-timeline__text .vis-line { padding-bottom: .1em; margin-bottom: -.1em; }
.vis-timeline.is-horizontal .vis-timeline__stats { display: flex; flex-wrap: nowrap; gap: clamp(1.5rem, 2.5vw, 2.75rem); margin: 0 0 clamp(1rem, 2vh, 1.5rem); }
.vis-timeline.is-horizontal .vis-timeline__stats li { align-content: start; gap: .7rem; }
.vis-timeline.is-horizontal .vis-timeline__stats strong { font-size: clamp(2.5rem, 2rem + 1.5vw, 3.5rem); line-height: .8; letter-spacing: -.01em; color: var(--vis-ink); font-variant-numeric: tabular-nums; }
.vis-timeline.is-horizontal .vis-timeline__stats span { font-size: .6875rem; letter-spacing: .14em; line-height: 1.35; max-width: 7rem; padding-top: .6rem; border-top: 2px solid var(--tl-gold); color: color-mix(in srgb, var(--vis-ink) 78%, transparent); }
.vis-timeline.is-horizontal .vis-timeline__text { margin: 0; font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--medium); line-height: 1.55; color: color-mix(in srgb, var(--vis-ink) 92%, transparent); max-height: calc(1.55em * var(--tl-lines)); overflow: hidden; }
.vis-timeline.is-horizontal .vis-timeline__text.is-clipped { mask-image: linear-gradient(#000 calc(100% - 1.55em), transparent); }
.vis-timeline.is-horizontal .vis-timeline__text p:last-child { margin-bottom: 0; }
.vis-timeline.is-horizontal .vis-timeline__more { margin-top: clamp(1.25rem, 2.5vh, 1.75rem); padding-top: 0; border: 0; }
/* The site's button: a rectangle with the gold arrow block */
.vis-timeline.is-horizontal .vis-timeline__more summary { display: inline-flex; align-items: stretch; gap: 1.25rem; min-height: 48px; padding: 0 0 0 1.25rem; background: var(--vis-btn-bg, var(--wp--preset--color--white)); color: var(--vis-btn-fg, var(--wp--preset--color--navy-950)); font-family: var(--wp--preset--font-family--body); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 48px; transition: background-color .3s ease, color .3s ease; }
.vis-timeline.is-horizontal .vis-timeline__more summary::after { width: 48px; height: auto; min-height: 48px; border-radius: 0 !important; background: var(--wp--preset--color--gold-500) var(--vis-arrow-ink, none) center / 14px no-repeat; transition: background-position .45s var(--vis-ease, ease), background-color .3s; }
.vis-timeline.is-horizontal .vis-timeline__more summary:hover { background: var(--wp--preset--color--gold-500); color: var(--wp--preset--color--navy-950); }
.vis-timeline.is-horizontal .vis-timeline__more summary:hover::after { background-color: var(--wp--preset--color--white); animation: vis-arrow-out .5s var(--vis-ease, ease); }
.vis-timeline.is-horizontal .vis-timeline__more summary:focus-visible { outline: var(--wp--custom--focus--ring); outline-offset: 3px; }
/* The list itself opens in the panel; a search tags the card with its matches */
.vis-timeline.is-horizontal .vis-timeline__more > :not(summary) { display: none; }
.vis-timeline.is-horizontal .vis-timeline__more[open] summary::after { transform: none; }
.vis-timeline.is-horizontal .vis-timeline__more summary[data-hits]::before { content: attr(data-hits) " matches"; align-self: center; flex: none; white-space: nowrap; padding: .25rem .6rem; line-height: 1; border-radius: var(--wp--custom--radius--pill); background: var(--tl-gold); color: var(--wp--preset--color--navy-950); font-size: .6875rem; }
.vis-timeline.is-horizontal .vis-timeline__more summary[data-hits="1"]::before { content: "1 match"; }
@media (max-height: 700px) { .vis-timeline.is-horizontal { --tl-lines: 2; } }
.vis-timeline.is-horizontal .vis-timeline__empty { position: absolute; inset: 0; display: grid; place-content: center; }
.vis-timeline.is-horizontal .vis-timeline__empty[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
	.vis-timeline.is-horizontal :is(.vis-timeline__body > *, .vis-timeline__media, .vis-timeline__media img) { transition-duration: .01s; }
}

/* Champions of a year, opened from the journey */
.vis-timeline__panel {
	--tl-gold: var(--wp--preset--color--gold-500); --vis-ink: var(--wp--preset--color--white);
	position: fixed; inset: 0 0 0 auto; width: min(36rem, 100vw); max-width: none; height: 100%; max-height: none; margin: 0; padding: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 3vw, 3rem); box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
	border: 0; border-left: 1px solid color-mix(in srgb, var(--vis-ink) 12%, transparent); background: var(--wp--preset--color--navy-900); color: var(--vis-ink); box-shadow: -40px 0 80px rgba(0, 0, 0, .45);
}
.vis-timeline__panel::backdrop { background: rgba(4, 18, 36, .55); backdrop-filter: blur(4px); }
.vis-timeline__panel[open] { animation: vis-panel-in .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes vis-panel-in { from { transform: translateX(100%); } }
.vis-timeline__panel .vis-timeline__kicker { font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 400; font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); letter-spacing: 0; line-height: .9; margin: 0 0 1rem; }
.vis-timeline__panel .vis-timeline__text { margin: 0 0 1rem; }
.vis-timeline__panel h4 { margin: 1.75rem 0 .5rem; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tl-gold); font-family: inherit; font-style: normal; }
.vis-timeline__panel-close { position: sticky; top: 0; float: right; margin: -1rem -1rem 0 0; }
.vis-timeline__panel-close button { width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; background: var(--tl-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 1l10 10M11 1L1 11' stroke='%230b233f' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; }
.vis-timeline__panel-close button:focus-visible { outline: var(--wp--custom--focus--ring); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .vis-timeline__panel[open] { animation: none; } }
