/* Suisse Int'l — the typeface the client PSD is set in.
   Licensed to e&; the files live in src /content/dam/eand/anniversary/fonts/, which is gitignored.
   Run `sh tools/install-fonts.sh` to fetch them from the asset drop.

   Only the five weights the PSD uses are declared. Paths are relative to this
   stylesheet, so they resolve the same whether it is loaded on its own from
   src/css/ or concatenated into dist/e50lp.css - tools/package-zip.sh rewrites
   them for the packaged layout.

   swap, not block: the fan measures real card widths on first layout, so a
   blocked first paint would measure against no text at all. */
/* @font-face {
  font-family: "Suisse Intl";
  src: url("/content/dam/eand/anniversary/fonts/SuisseIntl-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("/content/dam/eand/anniversary/fonts/SuisseIntl-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("/content/dam/eand/anniversary/fonts/SuisseIntl-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("/content/dam/eand/anniversary/fonts/SuisseIntl-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("/content/dam/eand/anniversary/fonts/SuisseIntl-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
} */
.e50lp-root {
  --e50lp-bg-edge: #070918;
  --e50lp-bg-centre: #111532;
  /* Translucent, not a flat navy. On the board the wordmark is a faint
     *lightening* of whatever is behind it - stroke rgb(20,22,55) over a plate
     of rgb(10,13,30). A fixed dark colour matched that one spot only while
     the background was uniformly dark; over the real artwork's bright centre
     the same value is darker than its surroundings and reads as a smudge.
     A tint lightens correctly wherever it lands. */
  --e50lp-ghost: rgba(140, 160, 255, 0.10);
  /* Measured off the board's active-tab underline: rgb(224,8,0). Trusted as
     the true value because the flag tokens below round-trip through that
     render exactly (#df3121 samples back as 223,49,33), so its reds are not
     being shifted. */
  --e50lp-accent: #e00800;
  /* White, not the blue-grey this used to be. Sampled off the board at
     1920x1080: the active year pill's border rows read (255,255,255) exactly,
     the connector below it is the same white laid down across two pixels at
     ~57% each (a hairline on a half-pixel boundary), and the scrubber's
     centre tick is white with its neighbours faded by the plate's own mask.
     Distance does the dimming here, through opacityForDistance - the colour
     itself is not pre-dimmed. */
  --e50lp-hairline: #ffffff;
  --e50lp-text: #ffffff;
  --e50lp-text-muted: #6b7199;

  --e50lp-flag-1: #5ecb6e;
  --e50lp-flag-2: #1e3438;
  --e50lp-flag-3: #871723;
  --e50lp-flag-4: #df3121;

  --e50lp-font: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  /* Suisse Int'l has no Arabic cut, so Arabic glyphs fall past it to the next
     family that does. The PSD sets every Arabic run in Myriad Arabic, so that
     is named first - but it is not in the asset drop and is not licensed to
     us, so it only takes effect where the reader already has it. The three
     after it are the shipping fallbacks until e& supply the real face. */
  --e50lp-font-arabic: "Suisse Intl", "Myriad Arabic", "IBM Plex Sans Arabic", "Noto Sans Arabic", "Geeza Pro", sans-serif;

  --e50lp-gutter: 16px;
  --e50lp-sliver: 8px;
  --e50lp-radius: 8px;
  --e50lp-tap: 44px;
  --e50lp-leading: 1.5;

  --e50lp-size-headline: 22px;
  --e50lp-size-body: 15px;
  --e50lp-size-pill: 13px;
}

.e50lp-root[dir="rtl"] {
  --e50lp-font: var(--e50lp-font-arabic);
  --e50lp-leading: 1.65;
}
.e50lp-root {
  /* The board scale, in one place. Every view that draws to the 1920x1080
     comp already computed this for itself; hoisting it here is what lets the
     nav use it too, and the nav is the one part that was still in raw pixels.
     The per-view declarations stay: 10-detail.css overrides the formula at
     one breakpoint, so they are not all the same value. */
  --e50lp-s: min(100vw, 1920px, calc(100vh * 1920 / 1080));
  position: relative;
  display: flex;
  flex-direction: column;
  /* Exactly one screen, not "at least" one. The component is a section of
     someone else's page, so it has to declare a size rather than grow into
     whatever is around it. dvh second so it wins where supported: on a phone
     100vh is the tallest the viewport ever gets, which puts the bottom of the
     component behind the browser's own chrome until the address bar retracts. */
  height: 100vh;
  height: 100dvh;
  font-family: var(--e50lp-font);
  color: var(--e50lp-text);
  /* A baseline for everything text inherits, so the host page's own typography
     does not seep in. The component sets its own font and colour above, but a
     host's `body { line-height: 1.5; text-align: center; text-transform:
     uppercase; letter-spacing: .1em }` (all common) is inherited by every
     element here that does not pin the same property itself - measured: the
     year-title pill took the host's line-height. These are the values a
     clean page gives it, so nothing changes where there is no such host. */
  line-height: normal;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: start;
  text-transform: none;
  text-indent: 0;
  text-shadow: none;
  font-style: normal;
  font-variant: normal;
  font-size-adjust: none;
  white-space: normal;
  background-color: var(--e50lp-bg-edge);
  /* The design's own artwork - a radial glow with fine light rays - over the
     radial gradient that stood in for it. The gradient stays underneath
     deliberately: it is what renders if the artwork is missing (it is client
     media, fetched by tools/install-backgrounds.sh and never committed), so
     the component still looks intentional rather than flat black.

     `cover` on a 1920x1080 plate: the glow is centred and its edges fade to
     the same near-black as --e50lp-bg-edge, so cropping it at other ratios
     never shows a seam. */
  background-image:
    url("/content/dam/eand/anniversary/img/e50lp/e50lp-bg-main-bg.webp"),
    radial-gradient(
      120% 80% at 50% 20%,
      var(--e50lp-bg-centre) 0%,
      var(--e50lp-bg-edge) 70%
    );
  background-repeat: no-repeat;
  /* The vertical offset is driven from lib/parallax.js, and is 0 whenever
     the page does not scroll or the reader has asked for less motion. Moving
     the artwork by its own position rather than by a transform on the root is
     deliberate - see parallax.js for why the root must not be transformed. */
  /* Two authors, one declaration: the scroll's own lag, and the lean toward
     the pointer. Composed here rather than fought over - the same pattern
     the card transform uses for the carousel's scale and the intro's lift. */
  background-position:
    calc(50% + var(--e50lp-lean-bg-x, 0px))
    calc(50% + var(--e50lp-parallax-bg, 0px) + var(--e50lp-lean-bg-y, 0px));
  background-size: cover;
  /* Scrolls with the component, not with the viewport. `fixed` is invisible
     on a page that is nothing but this component, and wrong the moment there
     is anything above or below it: the artwork sits still while the section
     it belongs to slides over it. */
  background-attachment: scroll;
  /* Both axes. A component that declares itself one screen tall must not
     leak into the page around it, whatever its contents do.

     It does have something to clip on an unusually wide-and-short viewport.
     The fan's card size comes from the deck's width, while the rest of the
     layout scales with --e50lp-s, which also accounts for height - so above a
     16:9 ratio the cards are sized for more height than there is. At 1280x680
     that is 6px of the outermost cards' feathered bottom edge, the part
     already faded almost to nothing. Sizing the slot from the board scale
     instead is the real fix; it is carousel maths and belongs in its own
     change, not smuggled into a sizing one. */
  overflow: hidden;
}

.e50lp-root *,
.e50lp-root *::before,
.e50lp-root *::after {
  box-sizing: border-box;
}

/* Every image the component draws - card posters, the detail popup's own and
   its FLIP flyer, the book cover - owns none of its own border anywhere else
   in this codebase, on the assumption that an <img> simply has none unless
   given one. demo/page.html and demo/timeline-page.html both exist to check
   that assumption against a host page that is deliberately not well-behaved
   (their own comments call out a bare `img { border }` rule by name, exactly
   so a host that already matches the component proves nothing) - and it
   failed: every one of those images picked up that host's 4px border, since
   nothing in here ever said otherwise. One rule here is the fix, general
   rather than chased into four separate files one class at a time, and it is
   also the right default on its own terms - a border a host page happens to
   set is never something this component's own imagery should be showing. */
.e50lp-root img {
  border: 0;
}

.e50lp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.e50lp-flagbar {
  flex: 0 0 auto;
  inset-inline: 0;
  /* 14px of the board's 1080, and the supplied strip is 1920x15. */
  height: 14px;
  /* The supplied strip over the gradient that stood in for it. Both are
     PHYSICAL left-to-right and must stay that way: this is the UAE flag, and
     it may never mirror under dir="rtl". A background image cannot be flipped
     by `direction` the way a logical gradient would be, so the artwork is
     safe by construction - and the gradient beneath it keeps that guarantee
     when the artwork is absent. Do not swap `to right` for `to inline-end`,
     and do not put transform: scaleX(-1) on any ancestor. */
  background-image:
    url("/content/dam/eand/anniversary/img/e50lp/e50lp-bg-bg-strip-btm.webp"),
    linear-gradient(
      to right,
      var(--e50lp-flag-1) 0%,
      var(--e50lp-flag-2) 33%,
      var(--e50lp-flag-3) 66%,
      var(--e50lp-flag-4) 100%
    );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.e50lp-ghost {
  position: absolute;
  /* Sits behind the fan, its centre a little above the cards' centre line,
     as on the board - not centred on the viewport. */
  inset-block-start: 42%;
  inset-inline: 0;
  /* -50% centres it on that offset; the parallax shift rides on top. The
     wordmark is not an ancestor of anything that scroll-snaps, so unlike the
     root it is free to carry a transform. */
  transform:
    translateX(var(--e50lp-lean-ghost-x, 0px))
    translateY(calc(-50% + var(--e50lp-parallax-ghost, 0px) + var(--e50lp-lean-ghost-y, 0px)));
  /* This is a <p>, and the component deliberately ships no bare element
     selectors, so nothing resets the UA's 1em margin - at this type size
     that is a ~290px margin, and it silently pushed the wordmark a whole
     line-height below where the offsets put it. */
  margin: 0;
  text-align: center;
  font-size: 11vw;
  font-weight: 500;
  line-height: 1;
  color: var(--e50lp-ghost);
  pointer-events: none;
  user-select: none;
}

/* The floor. Below about 477px of height the fan and its year pills need
   more room than one screen has, and the pills start overlapping the nav -
   measured at 459px, where they cross by 19px. Every current handset clears
   it comfortably (an iPhone SE is 568 tall and leaves 98px), but a component
   can be dropped into a short iframe, where 100vh is the frame's height and
   nothing about the device saves it.
   So the promise holds wherever it can and degrades to readable where it
   cannot: below the floor the component grows and the host page scrolls,
   rather than drawing the nav through the year pills. */
@media (max-height: 500px) {
  .e50lp-root {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

.e50lp-views,
.e50lp-root > .e50lp-tabs {
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
}

.e50lp-root > .e50lp-tabs {
  flex: 0 0 auto;
}

/* The wrapper e50lp-init.js mounts every view into (see its own comment there)
   rather than appending them straight into root: a CSS grid with every view
   sharing the one cell (grid-area: 1/1 below) is what lets two of them
   genuinely overlap for the length of a crossfade, instead of competing for
   height as flex siblings of root would. display: none on a hidden view
   still drops it from the grid the same way it would a flex child, so
   exactly one view sizes this box the rest of the time. */
.e50lp-views {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
}

.e50lp-view {
  grid-area: 1 / 1;
  /* Grid items default to min-width/min-height: auto, the same overflow trap
     flex items do - without this a view sized by its own content (the
     timeline deck's cards, laid out from a width it never actually receives)
     rather than by the cell .e50lp-views gives it. Confirmed live: without
     these two lines the deck never painted at all, width or height
     collapsed to its content's own minimum rather than the space it is
     meant to fill. */
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* align-items stays the stretch default so the child (.e50lp-timeline etc.)
     keeps its full intended width, up to the 1440px cap above - centring
     only the vertical (main) axis here. align-items: center would instead
     shrink-wrap the child to its content width, breaking every width
     assumption the carousel math and the breakpoint tests depend on. */
  justify-content: center;
  /* Every view crossfades now, not just some of them. Documentary and
     Campaign got this first (11-feature.css) and Digital book right after
     (07-book.css), each with its own copy of the same three rules - and the
     gap showed: switching away from Calendar, which still had none of this,
     meant the outgoing view vanished on the spot (its own plain
     display:none, no fade) while the incoming one was only starting its
     own fade-in from opacity 0. For a real stretch of that window neither
     view was actually on screen - confirmed frame by frame from a recorded
     video, not guessed - which is what actually read as a flicker, not any
     one view's own animation. One shared rule here, covering all four real
     views (Offers is a link now, not a panel, so it never had one to miss),
     is what closes that gap - the outgoing view is always fading out for
     exactly as long as the incoming one is fading in, so there is never a
     moment with nothing shown.

     That still left the two sharing a flex column for the length of the
     overlap, each squeezing the other's height rather than simply sitting
     on top of it - the grid above is what actually fixes that: both land on
     the same cell now, so the crossfade is a real dissolve rather than a
     squeeze. The per-view files still carry what is genuinely theirs on top
     of this - the book's own staggered cover/button beat, the feature
     card's own scale. */
  opacity: 1;
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    display 500ms allow-discrete;
}

.e50lp-view[hidden] {
  /* The class selector above (higher specificity than the UA [hidden]
     rule) would otherwise win and keep display: flex on a hidden view,
     showing every view stacked at once instead of just the active one. */
  display: none;
  /* Leaving is quicker than arriving - an open is a reveal worth watching,
     a close is the reader moving on - the same reasoning every other
     transition in this component follows. */
  opacity: 0;
  transition:
    opacity 200ms cubic-bezier(0.45, 0, 0.55, 1),
    display 200ms allow-discrete;
}

@starting-style {
  .e50lp-view:not([hidden]) {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-view {
    transition: none;
  }
}
.e50lp-tabs {
  display: flex;
  /* 12px on a phone. With the type below at 12px this is what gets all five
     tabs inside a 413px screen - at 14 and 13px the fifth still hung off the
     end, and a nav you have to discover by scrolling is one people miss.
     Desktop pins the board's own 24px back. */
  gap: 12px;
  padding-inline: var(--e50lp-gutter);
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 2;
  /* Not sticky, and deliberately so. It was, to hold position in a host page
     that scrolls - but the root is exactly one screen tall now, so the nav is
     on screen whenever the component is and sticky buys nothing. What it cost
     was real: the sticky containing block is the root, so scrolling the host
     page past the component pinned this strip to the top of the viewport and
     rode it down over the cards. Being transparent, it then swallowed taps on
     them while looking like nothing was there - the same failure the desktop
     tier already hit once on a short viewport. */
  background-color: transparent;
  min-height: var(--e50lp-tap);
  align-items: center;
  /* The board centres the tab strip. "safe" rather than a plain center, and
     rather than a width media query: this strip also scrolls horizontally on
     narrow screens, and centring overflowing flex content pushes the leading
     tabs past the scroll origin where they can never be reached. `safe`
     falls back to start alignment exactly when that would happen, so one
     declaration covers both tiers without introducing a CSS breakpoint to
     compete with sidesForWidth() as the source of truth. Browsers that do
     not parse it drop the declaration and keep that same start alignment. */
  justify-content: safe center;
  /* Off the top edge. The board gives the strip a lot of air above it, and
     flush against the viewport the mobile strip read as a browser chrome bar
     rather than part of the page. Desktop replaces this below. */
  padding-block: 40px 16px;
  /* Momentum and a snap per tab, so a strip that overflows still lands on a
     whole tab rather than halfway through a word. */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--e50lp-gutter);
}

.e50lp-tabs::-webkit-scrollbar { display: none; }

/* Five labels this long do not fit a phone at any size worth reading - 12px
   still runs about a tab past a 413px screen, and further past a 360px one.
   So rather than shrink the type until it fits, let it scroll and fade the
   edges: a label that runs under a fade reads as more nav to come, where one
   chopped square at the edge just reads as broken. Selecting a tab scrolls
   it back into view (see revealActive in e50lp-tabs.js), so nothing is ever
   stranded off-screen.

   Phone only: the board's strip is centred with room to spare. */
.e50lp-root:not(:has(.e50lp-timeline--desktop)) .e50lp-tabs {
  -webkit-mask-image: linear-gradient(
    to right, transparent 0, #000 var(--e50lp-gutter),
    #000 calc(100% - 22px), transparent 100%
  );
  mask-image: linear-gradient(
    to right, transparent 0, #000 var(--e50lp-gutter),
    #000 calc(100% - 22px), transparent 100%
  );
}

.e50lp-tabs__tab {
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 10px 0;
  border: 0;
  /* 2px on the board, not 3, and it spans the tab's text exactly - which is
     what a border on a button with no inline padding already does. */
  border-block-end: 2px solid transparent;
  background: transparent;
  color: var(--e50lp-text);
  font-family: inherit;
  /* A no-op on the four <button> tabs, which never had one - but Offers is
     an <a> now (see e50lp-tabs.js), and a plain link carries the UA's default
     underline. It has to read as one of these five tabs, not as body copy
     that happens to leave the page. */
  text-decoration: none;
  /* 12px, not the 15px body size: five tabs at 15 ran half a tab past a
     413px screen, so the last sat off-screen with nothing to suggest it was
     there. At 12 they all fit. The row still answers a 44px touch target -
     that comes from the strip's min-height and this button's own padding,
     not from the type size. Desktop sets its own 16px below. */
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

/* Board type: 19px. Scoped to the desktop tier through the class the
   carousel already sets from sidesForWidth(), so the breakpoint still lives
   in exactly one place and no media query duplicates it. The mobile guide
   gives no tab size, so that tier keeps the 15px it had rather than being
   invented. Browsers without :has() simply keep 15px, which is the current
   behaviour and safe. */
/* Board: the tab ink starts 89px down the page and the rule ends at 115, with
   nothing until the first year pill at 175. The button carries 16px of that
   above the ink, so the strip supplies the rest.

   Desktop only. A phone has no vertical budget for it: 163px of nav on a
   664px viewport pushed the root past 100vh, which started the page
   scrolling, which let this sticky strip ride over the cards - and being
   transparent it swallowed taps on them while looking like nothing was there.

   pointer-events for the same reason. The strip is a wide sticky band that is
   now mostly empty space, so it must not take clicks anywhere except on the
   tabs themselves. Only on this tier: the mobile strip scrolls horizontally,
   and that gesture needs the whole strip to stay touchable. */
.e50lp-root:has(.e50lp-timeline--desktop) .e50lp-tabs {
  /* Board coordinates, not raw pixels. As fixed values these two were the
     one part of the desktop layout that did not shrink with the viewport, so
     a short window - 1280x680, where the board scale is 1209 - overflowed the
     root by 29px and clipped the caption off the bottom. Now the nav gives
     back its share of the height like everything else does. */
  padding-block: calc(var(--e50lp-s) * 73 / 1920) calc(var(--e50lp-s) * 50 / 1920);
  gap: 24px;
  pointer-events: none;
}

.e50lp-root:has(.e50lp-timeline--desktop) .e50lp-tabs__tab {
  pointer-events: auto;
  /* 16px by request. The board's own tabs measure 19px - cap height 14, and
     the five tab widths all sit at 1.28x the 15px they used to render at. */
  font-size: 16px;
  /* The board sets the rule 8px under the text's lowest pixel. Inherited
     leading was adding about 5px of empty line box beneath the ink before the
     padding even started, putting the rule 17px down; pinning the line box
     makes the padding mean what it says. */
  line-height: 1;
  padding-block: 14px 8px;
}

/* The rule is drawn by a pseudo-element rather than the border, so it can
   animate. The transparent border above stays exactly as it was and keeps
   owning the layout - the 2px it reserves is what holds the rule 8px under
   the ink - and this simply paints into that reserved strip. Swapping the
   border out for the pseudo-element entirely would have changed the box. */
.e50lp-tabs__tab {
  position: relative;
}

.e50lp-tabs__tab::after {
  content: "";
  position: absolute;
  /* The border sits outside the padding box, so -2px lands the rule on it. */
  inset-block-end: -2px;
  inset-inline: 0;
  height: 2px;
  background-color: var(--e50lp-accent);
  transform: scaleX(0);
  transition: transform 220ms ease-out;
}

.e50lp-tabs__tab--active::after {
  transform: scaleX(1);
}

/* The underline is already there, already animated, and already scaled to
   nothing on an inactive tab - so hovering one draws it part of the way in.
   The tab says "this is a thing you can pick" before it is picked, using the
   mark it will use when it is, rather than a second idea.

   Not on the active tab: its rule is already full width, and pulling it back
   to answer a hover would read as losing the place rather than pointing at
   one. */
.e50lp-tabs__tab:hover:not(.e50lp-tabs__tab--active)::after {
  transform: scaleX(0.45);
}

.e50lp-tabs__tab {
  transition: color 200ms ease-out;
}

.e50lp-tabs__tab:hover {
  color: var(--e50lp-text);
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-tabs__tab::after { transition: none; }
}
.e50lp-tabs__tab:focus-visible { outline: 2px solid var(--e50lp-accent); outline-offset: 2px; }

/* ---------------------------------------------------------------------------
   The sections menu, on a phone.

   Five labels have never fitted a phone. The strip's own comments say so:
   at 12px the fifth still runs past a 413px screen, so it scrolls and fades
   at the edges. That works, but a section nobody scrolls to is a section
   nobody finds - so on this tier the strip becomes a menu behind a single
   control, in the place the strip itself used to start.

   Nothing here touches the desktop tier, where the board's own strip is
   centred with room to spare.
   --------------------------------------------------------------------------- */

/* No control at all on the board: the strip is already all of it. */
.e50lp-tabs__toggle { display: none; }

.e50lp-root:not(:has(.e50lp-timeline--desktop)) .e50lp-tabs__toggle {
  display: grid;
  place-items: center;
  position: absolute;
  /* Where the strip's first label sat: the same gutter, and the same
     distance down that the strip's own 40px of top padding put its text. */
  inset-block-start: 32px;
  inset-inline-start: var(--e50lp-gutter);
  width: var(--e50lp-tap);
  height: var(--e50lp-tap);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--e50lp-text);
  cursor: pointer;
  /* Above the panel it opens, so the control stays pressable to close it. */
  z-index: 5;
}

.e50lp-tabs__toggle:focus-visible {
  outline: 2px solid var(--e50lp-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Three bars from one element: the middle is the span itself, the other two
   its own corners. One box to move rather than three to keep in step. */
.e50lp-tabs__bars,
.e50lp-tabs__bars::before,
.e50lp-tabs__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
}

.e50lp-tabs__bars {
  position: relative;
  transition: background-color 160ms ease-out;
}

.e50lp-tabs__bars::before,
.e50lp-tabs__bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.e50lp-tabs__bars::before { inset-block-start: -7px; }
.e50lp-tabs__bars::after { inset-block-start: 7px; }

/* Open, the three bars become the cross that closes them. The middle one
   goes rather than rotating with the others - three strokes through one
   point reads as a smudge at this size. */
.e50lp-tabs__toggle[aria-expanded="true"] .e50lp-tabs__bars {
  background-color: transparent;
}

.e50lp-tabs__toggle[aria-expanded="true"] .e50lp-tabs__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.e50lp-tabs__toggle[aria-expanded="true"] .e50lp-tabs__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-tabs__bars,
  .e50lp-tabs__bars::before,
  .e50lp-tabs__bars::after { transition: none; }
}

/* ---- the panel ----------------------------------------------------------
   The same tablist, stood on end under the control. Every label is in view
   at once, which is the whole point of the change: nothing is off an edge,
   and the active one still carries the strip's own underline. */
.e50lp-root:not(:has(.e50lp-timeline--desktop)) .e50lp-tabs {
  position: absolute;
  inset-block-start: 84px;
  inset-inline-start: var(--e50lp-gutter);
  /* Wide enough for the longest label, and never wider than the screen. */
  inline-size: max-content;
  max-inline-size: calc(100% - (var(--e50lp-gutter) * 2));
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 8px 18px 12px;
  /* The strip scrolled and was masked at both ends. Neither applies to a
     list that shows everything it has. */
  overflow: visible;
  scroll-snap-type: none;
  -webkit-mask-image: none;
  mask-image: none;
  background-color: rgba(12, 16, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  z-index: 4;
}

/* Closed is closed: out of the layout and out of the accessibility tree, so
   the labels behind it cannot be reached by tab or read out. The control
   says which state it is in. */
.e50lp-root:not(:has(.e50lp-timeline--desktop)) .e50lp-tabs[data-open="false"] {
  display: none;
}

.e50lp-root:not(:has(.e50lp-timeline--desktop)) .e50lp-tabs__tab {
  /* A row apiece, aligned to the start rather than centred - a column of
     centred labels has no edge for the eye to run down. */
  text-align: start;
  padding-block: 11px;
  scroll-snap-align: none;
}

/* ---------------------------------------------------------------------------
   The top nav is hidden for now - the tab strip on the board and the menu
   control on a phone, which are the one nav in two forms. The client has not
   settled which sections ship (documentary, offers, book and campaign all
   still need their own content), so the landing page is the timeline alone
   until they do.

   display: none, not visibility or opacity: it also takes the tabs out of the
   tab order and the accessibility tree, so nothing invisible can be focused.
   !important because this has to beat the toggle's own rule above, which is
   scoped by :has() to a specificity this block would otherwise have to match
   selector for selector; it is a switch, not a style.

   To bring the nav back, delete this block. Nothing else was changed to hide
   it - the tabs are still built and wired in e50lp-init.js.
   --------------------------------------------------------------------------- */
.e50lp-tabs,
.e50lp-tabs__toggle { display: none !important; }
.e50lp-timeline {
  position: relative;
  padding-block: 12px 24px;
}

.e50lp-timeline__deck {
  /* The deck alone breaks out of the 1440 grid the rest of the component
     sits on: the board runs the carousel edge to edge, clipping the
     outermost card at both sides, and the fan's proportions are measured
     against that full width. Negative inline margins rather than an explicit
     width: 100vw, which would overhang by the scrollbar gutter whenever the
     page has one. The caption below stays on the 1440 grid. */
  margin-inline: calc(50% - 50vw);
  display: flex;
  align-items: center;
  gap: var(--e50lp-gutter);
  padding-inline: var(--e50lp-pad, calc((100% - var(--e50lp-slot, 33.33%)) / 2));
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  /* Room for however far the centre card's scale() spills past its layout
     box, plus a gutter on top of it. Setting overflow-x to auto makes
     overflow-y compute as auto too, so the deck clips vertically whatever
     `visible` says above - without this the phone's larger centre card was
     cut off and ran under the title. The spill and the gutter add rather
     than max out: at the phone's scale the spill alone exactly cancelled the
     padding and left the card and the title touching. Desktop replaces this
     with its own asymmetric pair. */
  /* Top clears the pill stack, which is pinned above the card and out of
     flow, so it overhangs this box. Bottom is the card's own spill plus a
     gutter, or the title ends up against the card. Desktop replaces both. */
  padding-block: calc(var(--e50lp-card-drop, 0px) + 80px)
                 calc(var(--e50lp-card-drop, 0px) + 28px);
  scrollbar-width: none;
  /* Both axes, not pan-y alone. A touch swipe on this deck is the browser's
     own scroll - onPointerDown in e50lp-timeline.js answers a mouse and returns
     straight back out for anything else, so that momentum, snap and rtl all
     come from the scroller rather than from script. pan-y withheld the
     horizontal axis from it, which left a phone with nothing to scroll the
     deck: the browser would not, and the script would not either. Vertical
     stays listed so a swipe down the page still scrolls the page. */
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.e50lp-timeline__deck::-webkit-scrollbar { display: none; }

/* The deck is a genuine keyboard target - tabIndex 0, role group, labelled
   "Fifty years, 1974 to 2026" - and arrow keys move it, so it must show that
   it has focus. What it must not do is show it like this: the deck is
   full-bleed, so a ring around it was two red lines drawn clean across the
   window, above and below the fan. It read as a rendering fault rather than
   as focus, and it said nothing about where in the timeline you were.

   So the ring moves to the card the arrows actually act on. Same colour and
   weight as every other focus style here; it just lands somewhere that means
   something. Removing it outright was the other option and is not one: a
   focusable control with no visible focus fails WCAG 2.4.7, and a keyboard
   user would have no way to tell the timeline was listening. */
.e50lp-timeline__deck:focus-visible {
  outline: none;
}

/* On the active card's year pill. Everything closer to the card is either
   masked or the wrong size:

   .e50lp-media carries the gradient that feathers its left and right edges
   into the page, and a mask clips everything its subtree paints - so an
   outline there, or on .e50lp-media__open inside it, is computed correctly and
   drawn nowhere. An outline offset beyond the masked box is clipped outright.

   .e50lp-timeline__entry is the layout slot, and the card is scaled up out of
   it, so the entry's box sits inside the visible card and an outline there
   is painted underneath the artwork.

   The pill is outside the mask, and it is where a reader looks to know which
   year they are on - which is exactly what the arrow keys change. */
.e50lp-timeline__deck:focus-visible
  .e50lp-timeline__entry[aria-current='true'] .e50lp-timeline__year {
  outline: 2px solid var(--e50lp-accent);
  outline-offset: 3px;
}

.e50lp-timeline__deck--dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

/* On for the length of the glide that follows a drag, and no longer. The
   deck animates itself to the nearest card there (glideToRest), so snap has
   to stay out of the way: it is what the deck is travelling towards, and
   letting it fire mid-flight takes the move away and puts back the very jump
   the glide exists to remove. */
.e50lp-timeline__deck--gliding {
  scroll-snap-type: none;
}

/* Deliberately untransformed: this is the snap target, and a snap area is an
   element's TRANSFORMED border box. Transforming it - or any ancestor of it -
   moves what the browser is snapping to, and since the fan is recomputed from
   scrollLeft on every scroll frame that closes a feedback loop that never
   settles. Every transform belongs on .e50lp-timeline__inner below. */
.e50lp-timeline__entry {
  flex: 0 0 var(--e50lp-slot, 33.33%);
  scroll-snap-align: center;
  cursor: pointer;
}

/* The mobile tier scales the whole entry, pill and card together. Only the
   desktop tier splits the two apart (below), because only the desktop board
   was measured - and because moving the transform onto the card itself made
   Chrome fire pointercancel the moment a mouse drag first scrolled the deck,
   killing drag-to-scroll on touch-capable viewports. This wrapper keeps pill
   and card together, so that behaviour is unchanged. */
/* No scale here. The wrapper holds the year pill and its hairline stacked
   above the card, so its middle sits well above the card's - scaling about
   it slid the big centre card some 27px below its neighbours and the three
   stopped reading as one row. The card scales about its own centre instead,
   just below, which is how the board has always done it. */
.e50lp-timeline__inner {
  /* The pill stack is pinned to this box on both tiers. */
  position: relative;
  transform: none;
}

.e50lp-timeline--desktop .e50lp-timeline__inner {
  position: relative;
  /* Only the horizontal pull toward the design's converging card spacing.
     The board holds every card on one centre line and arcs the pills alone
     above them, so the vertical drop belongs to the pill, not the entry.
     The size falloff likewise lives on the card and the pill separately,
     because the board tapers them on visibly different curves; a single
     scale() here would force the pill to shrink as steeply as the card. */
  transform: translateX(var(--e50lp-shift, 0px));
}

/* Every card shrinks about its own centre, so the deck keeps one horizontal
   centre line however steeply the sizes fall away - on the board each card's
   centre mark sits on that same line, and on the phone the two half-cut
   neighbours line up with the middle of the big card between them. Both
   tiers: the entries are laid out at one height, so scaling each card about
   its own middle is what holds that line. */
.e50lp-timeline__entry .e50lp-media {
  /* Two authors, one declaration. --e50lp-scale is the carousel's, rewritten on
     every scroll frame; --e50lp-intro-lift is the opening animation's and is
     0 at every other moment. Composing them here is what lets the intro move
     a card without owning its transform - see 12-intro.css. The snap target
     is .e50lp-timeline__entry above and must stay untransformed, so there is no
     spare element to put this on. */
  /* perspective() applies to the functions after it, so the carousel's own
     scale stays flat and only the intro's tilt gets depth. Everything from
     --e50lp-intro- is at its identity value except during the opening. */
  transform:
    scale(var(--e50lp-scale, 1))
    perspective(1100px)
    translateY(var(--e50lp-intro-lift, 0))
    rotateX(var(--e50lp-intro-tilt, 0deg))
    scale(var(--e50lp-intro-scale, 1));
}

/* The fan's distance fade. It lands on the card and on the pill stack, not on
   the entry that holds them: see --e50lp-fade in e50lp-timeline.js for why an
   opacity on the shared ancestor made Safari drop the pills entirely. */
.e50lp-timeline__entry .e50lp-media,
.e50lp-timeline__pillwrap {
  /* Multiplied, not overwritten: --e50lp-fade is the fan's own feathering of
     the outermost cards and must survive the intro, which contributes its
     own factor and returns it to 1. */
  opacity: calc(var(--e50lp-fade, 1) * var(--e50lp-intro-fade, 1));
}

.e50lp-timeline__pillwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block-end: 8px;
}

/* The phone tier, arranged the way the board is: the pill stack comes out of
   flow and is pinned from above the card down to the card's own centre, so
   the hairline runs the whole way and ends on the centre mark instead of
   stopping short above the card with a gap after it. Taking it out of flow
   also means the card is the only thing left in the wrapper, so the wrapper
   is exactly the card - which is what keeps every card's middle on one line
   as they scale.

   The top is measured up from the card's edge: --e50lp-card-drop is how far
   the card spills past its layout box as it scales, so this clears the
   biggest the card ever gets and holds the same gap above it at any size. */
.e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__pillwrap {
  position: absolute;
  inset-inline: 0;
  /* 51px, plus the 13px the pill's own UA margin used to contribute before
     .e50lp-timeline__year reset it - the gap this tier was tuned to is
     unchanged, and it is now written down rather than inherited.
     
     --e50lp-lift drops each pill to follow its own card. Every card is scaled
     about the deck's one centre line, so a smaller card has a lower top
     edge, and a fixed offset from the entry's box left the neighbours'
     years hanging further and further above their pictures: measured at
     375px, 22px of air over the active card, 60px over the first neighbour
     and 71px over the second, with a hairline crossing the difference. The
     lift is that difference, so the gap is the same over every card. */
  inset-block: calc(-1 * (var(--e50lp-card-drop, 0px) + 51px) + var(--e50lp-lift, 0px)) 50%;
  margin-block-end: 0;
  /* Over the card, as the board draws it - and never taking the card's tap. */
  z-index: 1;
  pointer-events: none;
}

.e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__connector {
  /* Fills whatever is left between the pill and the centre mark. */
  flex: 1 1 auto;
  height: auto;
}


/* On the board the pills float well clear of the cards, each tethered to the
   fan's centre line by a hairline. Taking the pill out of flow is what lets
   the two move independently: the card keeps that centre line while the pill
   rides the arc above it.

   The wrapper is pinned from the entry's own middle (bottom: 50%, the card's
   centre) up to a fixed height above it, less the arc drop. So as the drop
   grows the pill descends and its connector shortens by exactly the same
   amount, and every connector still lands on the one centre line. */
/* The pills float above the entry box, and the deck would otherwise cut them
   off: setting overflow-x to auto forces the other axis to compute as auto
   too, so overflow-y: visible above is not honoured and the deck clips
   vertically. Padding deep enough for the tether keeps the pills inside the
   deck's own padding box, which is where the clip boundary actually sits. */
.e50lp-timeline--desktop .e50lp-timeline__deck {
  /* Just clears the tallest pill (the tether, plus the pill itself, less the
     half-entry the wrapper is already anchored below). Anything more is dead
     space that drags the whole fan below the optical centre of the view. */
  /* The bottom must clear whatever the centre card's scale() spills past
     its layout box, or the deck's own clip cuts the card off. --e50lp-card-drop
     is measured in e50lp-timeline.js; 28px is the board's resting gap and the
     floor when there is nothing to clear. */
  padding-block: calc(var(--e50lp-pill-rise, 300px) - var(--e50lp-entry-half, 20px))
                 max(28px, var(--e50lp-card-drop, 28px));
}

/* The board's cards are 492x331 - close to 3:2, not the 16:9 the media
   component defaults to for video. Scoped to the timeline's own cards, on
   both tiers: the player and the documentary/campaign features keep 16:9,
   which is the right frame for a playing embed. The phone had been left on
   16:9, which made its cards noticeably shallower than the design's and
   left the view bottom-heavy with empty space. */
.e50lp-timeline__entry .e50lp-media {
  aspect-ratio: 3 / 2;
}

.e50lp-timeline--desktop .e50lp-timeline__entry .e50lp-media {
  border-radius: 16px;
}

.e50lp-timeline--desktop .e50lp-timeline__pillwrap {
  position: absolute;
  inset-inline: 0;
  /* Pinned to the fan's centre line and given the rise as its own height, so
     that "309 above the centre line" is what actually gets drawn. Setting the
     top instead measured the rise from the entry's top edge, which is a
     different line: the centre card is scaled about its middle, so its layout
     box is 174px tall where the card reads 319, and the pill floated 66px
     higher than the board puts it. Every other card in the fan is scaled too,
     by its own factor, so the error varied across the deck. */
  inset-block: auto 50%;
  block-size: calc(var(--e50lp-pill-rise, 300px) - var(--e50lp-lift, 0px));
  margin-block-end: 0;
  /* Draw the hairline over the card, as the board does, not behind it. */
  z-index: 1;
  /* ...but do not let it take the clicks meant for the card. Floating the
     pill above the fan means this box reaches from the pill all the way down
     to the card's centre line, right across the top half of the card and the
     control sitting in the middle of it. Only the pill itself is meant to be
     hit; the connector is aria-hidden decoration. */
  pointer-events: none;
}

.e50lp-timeline--desktop .e50lp-timeline__year {
  /* The pill is a fixed 35px on the board and its height has to come from the
     type size plus its own padding, not from the body's 1.7 leading - which
     was adding some 14px and made every pill sit too tall for its width. */
  line-height: 1;
}

.e50lp-timeline--desktop .e50lp-timeline__connector {
  /* Fills whatever gap is left between the pill and the centre line. */
  flex: 1 1 auto;
  height: auto;
}

.e50lp-timeline__year {
  /* The wrapper holding this is pointer-events: none on both tiers - it
     reaches from the pill down across the top half of the card, and must not
     take the taps meant for the card. The pill itself is a real target
     though: tapping a year brings that entry to the centre. */
  pointer-events: auto;
  display: block;
  /* This is a <p>, and the component ships no bare element selectors, so
     nothing resets the UA's 1em margin - the same trap the ghost wordmark
     fell into. Being an em, it was 20px on the desktop tier and 13px on the
     phone, so it pushed the pill down by a different amount on each and no
     one constant elsewhere could have absorbed it. The phone's tether below
     was tuned with the 13px in place and carries it explicitly now. */
  margin: 0;
  width: fit-content;
  padding: var(--e50lp-pill-pad, 2px 12px);
  font-size: var(--e50lp-pill-size, var(--e50lp-size-pill));
  /* Pinned, like the title pill's: the phone tier never set one, so a host's
     `* { line-height: 1.3 }` made the pill 5px shorter. The desktop tier
     overrides this with its own `1` just above. */
  line-height: normal;
  /* Scaled about its own centre so the taper never shifts the arc that
     positions it. The desktop board tapers pills far more gently than the
     cards below them, so this is its own curve, not the card's. */
  /* Both factors are plain numbers, so calc() of the two is a number and
     scale() accepts it. (A length divided by a number is still a length, and
     scale() rejects that - a trap this file has already fallen into once.) */
  transform: scale(var(--e50lp-pill-scale, 1));
  border: 1px solid var(--e50lp-hairline);
  border-radius: 999px;
  white-space: nowrap;
  /* The year the deck has landed on fills in. Only the fill: the border is
     already --e50lp-hairline, which this component resolved to #ffffff off the
     board comp, so "brighten the border to --e50lp-text" is white on white and
     changes nothing. A declaration that does nothing is worse than none -
     the next person reads it as the emphasis and cannot see why it is
     invisible.

     The scale above is deliberately not transitioned: it is recomputed from
     scrollLeft on every frame, and easing a value that is already continuous
     fights the scroll - the pill would lag the card it belongs to.

     Transparent white rather than `transparent`: that keyword is
     rgba(0,0,0,0), and easing from it to white at 14% runs through grey, so
     the pill darkens before it lights. Same hue, alpha only. */
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.e50lp-timeline__entry[aria-current='true'] .e50lp-timeline__year {
  background-color: rgba(255, 255, 255, 0.14);
  /* The delay hands the entrance to the transition above: for its first
     260ms the pill is simply filling in, and the breath takes over once it
     has arrived. Without it the animation owns the property from frame one
     and the fill snaps on instead of fading. */
  animation: e50lp-year-breathe 3200ms 260ms ease-in-out infinite;
}

/* Around the resting 14%, not away from zero, so the loop has no seam: the
   keyframe starts and ends on the same value it spends most of its time
   near. */
@keyframes e50lp-year-breathe {
  0%, 100% { background-color: rgba(255, 255, 255, 0.1); }
  50% { background-color: rgba(255, 255, 255, 0.22); }
}

/* The tether of every visible year redraws the moment one lands - the one
   just arrived at and every other one on screen together, not staggered
   outward from it. Height is the wrong property to animate: the wrapper's
   block-size is recomputed from --e50lp-lift on every scroll frame, so
   easing it would fight the scroll. This rides on a transform instead,
   which costs no layout.

   Keyed on a class the timeline puts on, not on [aria-current]: a rule fires
   the moment it starts matching, and one scoped to the end of the opening
   sequence fired there too - redrawing a line the sequence had only just
   finished drawing. See announceLanding() for how it is restarted. */
.e50lp-timeline__entry--landed .e50lp-timeline__connector {
  /* `both`, so the line holds its shortened length until the animation
     actually starts. Without the fill it would sit at full height until
     then and snap short, which reads as a glitch rather than a draw. */
  animation: e50lp-tether-draw 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* From most of its length, not from nothing. A full redraw is right for one
   line arriving on its own - it is what the opening sequence does - but run
   across the whole fan on every landing it strobes. */
@keyframes e50lp-tether-draw {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-timeline__year { transition: none; }
  /* The fill still marks the landed year; it just stops moving. */
  .e50lp-timeline__entry[aria-current='true'] .e50lp-timeline__year { animation: none; }
  .e50lp-timeline__entry--landed .e50lp-timeline__connector { animation: none; }
}

.e50lp-timeline__connector {
  display: block;
  width: 1px;
  height: 16px;
  margin-block-start: 4px;
  background-color: var(--e50lp-hairline);
}

/* A real control now - see buildTicks() - draggable and keyboard-operable,
   one tick per year. Still desktop-only: the mobile tier has no equivalent
   on the board to build a matching row from, and the deck itself already
   takes touch drag/swipe directly there. */
.e50lp-timeline__ticks {
  display: none;
}

.e50lp-timeline__ticks {
  /* Drawn outward from the centre mark during the opening, 1 otherwise. */
  transform: scaleX(var(--e50lp-intro-wipe, 1));
  transform-origin: center;
}

/* The phone gets the row too. It was desktop-only, which left the deck at
   phone width with no timeline under it at all - the one element that says
   this is fifty years rather than a handful of pictures, and the one that
   can be dragged. The appearance is shared from here down; only the
   geometry below differs, because the phone has a third of the width to
   draw the same twenty-seven years in.

   Scoped to the calendar view: the documentary and campaign views are decks
   of one entry, and a timeline of a single tick is noise. */
.e50lp-timeline--desktop .e50lp-timeline__ticks,
.e50lp-view[data-view-id="calendar"] .e50lp-timeline__ticks {
  /* 892px of the board's 1920, centred: 46.5% of the full-bleed deck, which
     is 62% of the 1440 grid this row sits on. One tick per year now rather
     than the board's fixed 11, positioned in JS (applyScale() in
     e50lp-timeline.js) rather than spaced by flexbox - the active year has to
     land dead centre on every frame, including mid-drag, and a flex row can
     only ever hold 27 ticks at fixed, evenly-spaced stops. This is the
     viewport onto that positioning; overflow: hidden is what lets ticks
     for years off the visible row scroll out of view instead of pushing it
     wider. */
  display: block;
  position: relative;
  overflow: hidden;
  width: 62%;
  /* Board: the tick row sits at y682, 33px below the centre card's bottom
     edge at y649, and is 33px tall. */
  height: 33px;
  margin: 33px auto 0;
  cursor: pointer;
  /* Not none any more - see buildTicks() and the pointer handlers wired
     alongside it. touch-action stops a drag that starts here from also
     trying to scroll the page vertically on a touch trackpad. */
  touch-action: none;
  /* The row fades out toward both ends rather than stopping dead. Measured
     off the board, discounting the emphasised centre tick (which is a
     different colour by design, not merely brighter): the ticks hold full
     strength through the middle and fall to about a fifth of it at the outer
     ends - 0.21 at the last tick, then 0.36, 0.49, 0.77, full by ~40% in.
     That curve is convex, not linear: it barely moves over the outer fifth
     and then climbs quickly, so the stops below trace the measurements
     rather than ramping straight from one end to the other.

     The end stop is 0.3 rather than the 0.21 measured. A 1px hairline sitting
     exactly on the mask's own edge renders fainter than the alpha there
     nominally asks for - measured, not assumed: at 0.2 the outer ticks came
     out around 0.10. Sweeping the endpoint against the board's profile put
     the best fit at 0.3 (mean error 0.05 across the row, against 0.07 at 0.2
     and 0.08 at 0.4).

     A mask rather than per-tick opacity: the fade is a property of the row,
     so it stays correct if the tick count ever changes, and it needs no
     JS to assign a different value to each span.

     It fades to a fifth, not to nothing: the outermost ticks are still
     faintly visible on the board, and masking them away entirely would
     shorten the row. Symmetric, so it cannot be mirrored wrongly. */
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 20%,
    rgba(0, 0, 0, 0.78) 30%,
    #000 40%,
    #000 60%,
    rgba(0, 0, 0, 0.78) 70%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 0.3) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 20%,
    rgba(0, 0, 0, 0.78) 30%,
    #000 40%,
    #000 60%,
    rgba(0, 0, 0, 0.78) 70%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* The phone's own proportions. Wider as a share of the deck than the
   board's 62%, because 62% of 375px is 232px to hold the same twenty-seven
   years the board gives 892px - and shorter, because the row sits closer to
   a card that is itself much smaller here. */
.e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__ticks {
  width: 78%;
  height: 24px;
  margin: 20px auto 0;
}

.e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__tick {
  height: 11px;
}

.e50lp-timeline__tick {
  /* Every tick is placed by its own transform: translateX() (applyScale() in
     e50lp-timeline.js), off this same left: 0 origin - not by flex layout,
     which cannot slide one specific tick to the row's centre while the deck
     is at an arbitrary fractional scroll position. */
  position: absolute;
  left: 0;
  /* Bottom, not top. Every tick shares one baseline and the active one
     grows *upward* out of it; anchoring to the top instead hangs it
     downward, past the row, which is the one thing it must not do - it is
     what marks the active year. */
  bottom: 0;
  width: 1px;
  height: 16px;
  background-color: var(--e50lp-hairline);
}

/* The one tick naming the active year - marked from JS in paint(), the same
   place that keeps the caption and the active card in step, so this can
   never disagree with either. Not transitioned: at drag speed the active
   tick can move several times a frame, and easing a height change that fast
   just reads as flicker rather than motion. */
.e50lp-timeline__tick--active {
  /* y682-714 on the board: 33px, the full height of the row, against the
     16px of its neighbours. (An earlier 25px came from a scan whose
     brightness threshold was low enough to catch the plate itself.) */
  height: 33px;
  background-color: var(--e50lp-text);
}

/* The same relationship at phone size: the active tick fills the row while
   its neighbours reach under half of it. Stated rather than scaled, so the
   mark stays legible at a height where a proportion of 33px would not. */
.e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__tick--active {
  height: 24px;
}

/* Fixed height, deliberately. Twenty-one of the twenty-two entries have no
   headline yet, so a block that sized itself to its content changed height
   every time the centred entry changed - and since everything below it moves
   with it, the whole view jumped on each swipe. Reserving the board's own
   height means the block is identical whether the headline is two lines, one,
   or absent.

   Board: pill 62px at y754, headline 45px at y846, so 754 to 891 = 137px. */
.e50lp-timeline__caption {
  padding-inline: var(--e50lp-gutter);
  text-align: center;
  /* Deliberately not the component's usual decelerating curve. That one is
     almost back to full within a quarter of its duration, so during a flick -
     where the words change every 150ms or so - the caption recovered to 0.95
     and was yanked down again, over and over. A curve that leaves slowly
     keeps it in a narrow dim band while the years are going past, and still
     reads as a settle on a single step. */
  transition: opacity 440ms cubic-bezier(0.45, 0, 0.55, 1),
    transform 440ms cubic-bezier(0.45, 0, 0.55, 1);
}

/* Held for one frame by swapCaption() as the words change, then released.
   Not 0: the caption is two lines of type and the block holds its height
   either way, so blanking it entirely leaves a hole in the middle of the
   view. Dimmed and nudged down is enough to read as a change. */
/* transition: none, deliberately. The dip has to land in one go so the ease
   back up has somewhere to come from; transitioning into it as well meant the
   value only crept toward dim for the one frame the class was applied. */
.e50lp-timeline__caption--swapping {
  opacity: 0.12;
  transform: translateY(7px);
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-timeline__caption,
  .e50lp-timeline__caption--swapping {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.e50lp-timeline--desktop .e50lp-timeline__caption {
  height: 137px;
  margin-block-start: 39px;
  box-sizing: content-box;
}

.e50lp-timeline__title {
  /* It is a <button> now (see e50lp-timeline.js), not a <p> - the four rules
     below undo what the UA stylesheet puts on a button and nothing this
     component put there itself: a native border and control background that
     would otherwise sit under the semi-transparent fill below, a system
     text colour instead of the one this pill inherits, and the platform's
     own chrome on top of the shape this file already draws. */
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background-color: transparent;
  color: inherit;
  font: inherit;
  /* `font: inherit` also inherits line-height, which is how a host's
     `* { line-height: 1.3 }` reached this pill. Pinned to what a clean page
     gives it. */
  line-height: normal;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* The board's title pill is 358x62. Only the height and type size are
     pinned: its width is set by the title it holds, and the PSD's specimen
     text is not the copy that ships. */
  min-height: var(--e50lp-title-min, var(--e50lp-tap));
  margin: 0 auto;
  /* Named so the hover answer below can grow it by a fixed amount off
     whatever this tier's own resting value is (32px here, 27px on desktop)
     without repeating either number in the hover rule itself. */
  --e50lp-title-pad-x: 32px;
  /* padding-inline-start/-end, not the padding-inline shorthand: traced this
     live and the shorthand was snapping straight to its end value with zero
     intermediate frames even with a transition declared on it, the same
     interpolation gap other logical shorthands have had. The two longhands
     transition properly. */
  padding-inline-start: var(--e50lp-title-pad-x);
  padding-inline-end: var(--e50lp-title-pad-x);
  transition:
    padding-inline-start 320ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-inline-end 320ms cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 999px;
  /* mix-blend-mode below promotes the shine to its own compositing layer,
     and without this that layer's backing surface can rasterize as a plain
     rectangle on some GPU paths - squaring off the pill's own rounded ends
     right where the shine passes over them. overflow: hidden gives the
     browser an explicit rounded clip to snap that surface to, instead of
     trusting the blended layer to pick up border-radius on its own. */
  overflow: hidden;
  /* Sampled down a clean vertical strip of the board render, left of the
     glyphs: #9FA2B4 at the pill's top edge falling to #6B6D82 at its bottom,
     over a #101333 ground. That resolves to white at 0.60 and 0.38 alpha -
     nothing like the flat 0.08 this used to carry, which rendered the pill
     almost invisible. */
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.38) 100%
  );
  font-weight: 500;
  font-size: var(--e50lp-title-size, var(--e50lp-size-body));
}

/* A soft diagonal shine, sitting on top of the fill above rather than
   replacing it - a pseudo element instead of a second background-image on
   the title itself, because the mobile and desktop tiers already set two
   different fills (see below) and this way neither has to repeat itself.
   mix-blend-mode: screen only ever lightens what is under it, so it washes
   over the glass fill without ever dimming or obscuring the glyphs sitting
   on top of it in paint order. */
.e50lp-timeline__title::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: linear-gradient(
    100deg,
    transparent 35%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 65%
  );
  background-repeat: no-repeat;
  background-size: 55% 100%;
  background-position: -70% 0;
  mix-blend-mode: screen;
  transition: background-size 380ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: e50lp-title-shine 5200ms ease-in-out infinite;
}

/* Held off past both ends of the box (-70% and 170%, against a 55%-wide
   band) so the loop's own wrap is invisible - the sweep is already off
   screen on both sides of the jump. The two dwells either side of the
   travel are the "with a delay" pause between passes; without them this
   just reads as continuous flicker. */
@keyframes e50lp-title-shine {
  0%, 14% { background-position: -70% 0; }
  46% { background-position: 170% 0; }
  100% { background-position: 170% 0; }
}

.e50lp-timeline--desktop .e50lp-timeline__title {
  /* Board: 62px tall. Fixed rather than a minimum - the caption block's own
     height depends on it. */
  height: 62px;
  min-height: 0;
  /* Board: glyphs run x807-1111 inside a pill of x781-1139, so ~27px a side. */
  --e50lp-title-pad-x: 27px;
  padding-inline: var(--e50lp-title-pad-x);
  /* The fill is diagonal, not vertical. The rule above was sampled down a
     single strip left of the glyphs, which catches the vertical falloff and
     misses the much larger horizontal one - across the pill's interior the
     board runs from 140 at 10% to 58 by 70%, while top-to-bottom it only
     drops 140 to 102 at that same left end and barely moves at all by the
     middle (61 to 53). Iso-lines that steep on one axis and shallow on the
     other are a diagonal, so this replaces the gradient rather than adding
     to it. Opaque stops, because the measurements are of the composite and
     the artwork behind the pill is not a constant.

     148deg is not a guess: the board falls about 0.38 per px across and 0.61
     per px down, and a gradient axis through those rates points 148deg round
     from vertical. Sweeping the angle against the board's own grid agreed -
     mean error 6.4 at 148deg against 7.7 at 135 and 11.0 at 100, and the
     left-end vertical drop lands on 39 where the board has 38. */
  background-image: linear-gradient(
    148deg,
    rgb(178, 182, 198) 0%,
    rgb(140, 145, 166) 10%,
    rgb(104, 109, 139) 26%,
    rgb(76, 81, 114) 42%,
    rgb(60, 64, 101) 58%,
    rgb(56, 59, 94) 74%,
    rgb(62, 66, 101) 100%
  );
}

/* Always two lines of space, whether or not there is a headline to put in
   them. It is never hidden and never collapses, which is what keeps the
   caption block - and everything below it - from moving. */
.e50lp-timeline__subhead {
  margin: 10px 0 0;
  height: calc(var(--e50lp-size-body) * var(--e50lp-leading) * 2);
  overflow: hidden;
  color: var(--e50lp-text-muted);
  font-size: var(--e50lp-size-body);
  line-height: var(--e50lp-leading);
}

/* The board sets the headline in full-strength text on two lines, narrower
   than the title pill above it. A max-width rather than a hard break, so the
   wrap follows the copy - Arabic included - instead of a hardcoded split.

   In `em`, deliberately, not `ch`. A `ch` is the width of the font's "0"
   glyph, so it changes with the font - and this component swaps to an Arabic
   stack under dir="rtl". The same 14ch measured 206px in Latin and 154px in
   Arabic, which collapsed the headline to one word per line. `em` follows
   only the font-size set right here, so the box is the same in both. */
.e50lp-timeline--desktop .e50lp-timeline__subhead {
  /* Board: 149px wide, 45px tall over two lines at y846 - so 22.5px a line,
     which puts the type at 19px. 30px clear of the pill above (816 to 846).
     The sampled colour is #FBFFFF: white, not the muted grey this used to
     use. */
  /* 70% of the caption's width, not the board's 168px. That measure wrapped
     "Connection Comes Home" and "50 years together. 50 years etisalat." onto
     a second line under the pill; a share of the width gives them room on a
     single line at any desktop size and still wraps a longer headline onto
     its second line rather than clipping it. The 45px height stays on
     purpose: it is what reserves the caption's block (see the note on
     .e50lp-timeline__caption), so a one-line headline leaves a blank second
     line rather than letting everything beneath it move when the entry
     changes. A percentage, not `ch`/`em`, so Arabic and Latin get the same
     box. */
  max-width: 70%;
  height: 45px;
  margin: 30px auto 0;
  color: var(--e50lp-text);
  /* 16px Thin, set on request rather than measured - the board's own line
     works out at 19px. The 22.5px leading stays, so the block is still the
     same two lines and 45px tall, and nothing below it moves. Weight 100 has
     a real face behind it (SuisseIntl-Thin); the css-contract test fails if a
     weight is ever asked for without one, since the browser answers that by
     faking the stroke. */
  font-weight: 100;
  font-size: 16px;
  line-height: 22.5px;
}

/* ---- the caption, styled the same on both tiers -------------------------
   The phone was falling through to the base rules and coming out looking
   like a different design: the title pill carried the flat translucent
   white gradient rather than the board's own diagonal fill, and the
   subhead was muted grey at the default weight where the desktop sets it
   white and Thin. The sizes stay the phone's - a 168px measure on a 375px
   screen would be four words a line - but nothing else should differ. */
/* The tick row ended exactly where the title pill began - measured, a gap
   of 0 - so the timeline and the caption read as one block with the
   hairlines growing out of the pill. The desktop tier already holds the
   caption 39px clear; the phone had no top margin at all. 50px, as asked,
   which both opens the gap and carries the whole bottom block down. */
.e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__caption {
  margin-block-start: 50px;
}

.e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__title {
  background-image: linear-gradient(
    148deg,
    rgb(178, 182, 198) 0%,
    rgb(140, 145, 166) 10%,
    rgb(104, 109, 139) 26%,
    rgb(76, 81, 114) 42%,
    rgb(60, 64, 101) 58%,
    rgb(56, 59, 94) 74%,
    rgb(62, 66, 101) 100%
  );
}

.e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__subhead {
  color: var(--e50lp-text);
  /* Weight 100 has a real face behind it (SuisseIntl-Thin); the
     css-contract test fails on a weight with no file, since the browser
     answers that by faking the stroke. */
  font-weight: 100;
  margin-block-start: 16px;
  /* Three lines, not the two the base rule reserves. The client's Arabic 1994
     subheading is three lines wide at phone width and was losing the last
     one to the overflow clip. Still a fixed height, so a shorter headline
     leaves blank lines rather than letting the block move between entries. */
  height: calc(var(--e50lp-size-body) * var(--e50lp-leading) * 3);
}

.e50lp-timeline__nav {
  position: absolute;
  inset-block-start: 40%;
  width: var(--e50lp-tap);
  height: var(--e50lp-tap);
  border: 0;
  background: transparent;
  color: var(--e50lp-text);
  cursor: pointer;
  z-index: 1;
}

.e50lp-timeline__nav[disabled] { opacity: 0.3; cursor: default; }
.e50lp-timeline__nav--prev { inset-inline-start: 0; }
.e50lp-timeline__nav--next { inset-inline-end: 0; }

@media (prefers-reduced-motion: reduce) {
  .e50lp-timeline__deck { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------------
   Answering the cursor.

   The component had no :hover rule anywhere in it - the whole stylesheet,
   not just this file - so nothing on screen acknowledged the mouse at all.

   Where these can and cannot go is decided for them. Both .e50lp-media and,
   on desktop, .e50lp-timeline__inner carry transforms the carousel rewrites
   on every scroll frame, so a transition on either would make the fan itself
   lag the finger. The poster inside the card is the one box nothing else is
   animating, and .e50lp-media already clips to its radius - so the photograph
   moves and the card's own frame, which is what the deck snaps to, holds
   perfectly still.
   --------------------------------------------------------------------------- */

.e50lp-media__poster {
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 320ms ease-out;
}

/* Pushes in and lifts a little out of the dark. Small: the card is already
   the brightest thing on the page when it is centred, and a big move here
   would compete with the fan's own scale rather than answer the cursor. */
.e50lp-timeline__entry:hover .e50lp-media__poster {
  transform: scale(1.05);
  filter: brightness(1.12);
}

/* The neighbours are dimmed by the fan's distance fade, so on those the
   brightening is the whole signal and is worth more. */
.e50lp-timeline__entry:not(.e50lp-timeline__entry--active):hover .e50lp-media__poster {
  filter: brightness(1.3);
}

/* The pill answers too, on the same press. Its background already
   transitions - see the fill above - so this only has to name the value. */
.e50lp-timeline__entry:hover .e50lp-timeline__year {
  background-color: rgba(255, 255, 255, 0.2);
}

/* The caption's own pill, "The First Call" - it is a real button now (see
   e50lp-timeline.js) with something to open, so it should answer the cursor
   too. Grows the box on either side of the glyphs rather than the glyphs
   themselves - a transform: scale() here would stretch the type along with
   the fill, which is exactly the "not the text" this was asked to avoid.
   +12px is added to whatever this tier's own resting inline padding already
   is (--e50lp-title-pad-x, 32px here, 27px on desktop) rather than naming a
   tier-specific number, so one rule serves both.

   Paired with the desktop tier explicitly rather than left to win on source
   order alone: .e50lp-timeline--desktop .e50lp-timeline__title carries the same
   two-class specificity as a bare :hover here, and relying on which one
   happens to come later in the file is exactly the kind of tie a future
   edit to this stylesheet could flip by accident. */
.e50lp-timeline__title:hover,
.e50lp-timeline--desktop .e50lp-timeline__title:hover {
  padding-inline: calc(var(--e50lp-title-pad-x, 32px) + 12px);
}

.e50lp-timeline__nav {
  transition: opacity 220ms ease-out, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.75;
}

.e50lp-timeline__nav:hover:not([disabled]) {
  opacity: 1;
  transform: scale(1.14);
}

/* Disabled means the end of the story. It must not answer, or the control
   says "there is more this way" with its motion while saying the opposite
   with its colour. */
.e50lp-timeline__nav[disabled]:hover {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-media__poster,
  .e50lp-timeline__nav,
  .e50lp-timeline__title,
  .e50lp-timeline__title::before { transition: none; }
  .e50lp-timeline__entry:hover .e50lp-media__poster { transform: none; }
  .e50lp-timeline__nav:hover:not([disabled]) { transform: none; }
  .e50lp-timeline__title:hover,
  .e50lp-timeline--desktop .e50lp-timeline__title:hover {
    padding-inline: var(--e50lp-title-pad-x, 32px);
  }
  .e50lp-timeline__title::before {
    animation: none;
    background-position: -70% 0;
  }
}
/* No ground of its own, deliberately. A colour here is invisible once the
   poster paints - it covers the box exactly - but it is not invisible before
   that, and it is not invisible at the edges: the timeline feathers each
   card's left and right into the page, and the card is scaled and given
   perspective, so the image rasterises a hair inside its parent. Both leave
   a plate of this colour showing as a pale frame around every card. The page
   behind is the right ground. */
.e50lp-media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--e50lp-radius);
  overflow: hidden;
}

.e50lp-media__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A filled card, not a dashed outline: an outline on a dark background reads
   as a hole cut into the fan rather than a card that is simply waiting on an
   image. Client copy still names it explicitly ("Image to follow"), so it is
   never mistaken for a real photo - it just does not look broken. */
.e50lp-media__fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #232a52 0%, #171b38 100%);
  color: var(--e50lp-text-muted);
}

.e50lp-media__fallback-icon {
  width: 15%;
  max-width: 40px;
  height: auto;
  opacity: 0.55;
}

.e50lp-media__fallback-year {
  /* No shared heading token in this file's scope, so a literal - same
     convention as the other one-off sizes measured directly off the board
     elsewhere in this component. */
  font-size: 22px;
  font-weight: 700;
  color: var(--e50lp-text);
}

.e50lp-media__fallback-label {
  font-size: calc(var(--e50lp-size-body) * 0.85);
}

.e50lp-media__play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: var(--e50lp-tap);
  height: var(--e50lp-tap);
  padding: 0;
  border: 1.5px solid var(--e50lp-text);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

/* Physical left/right, not inline-start/end: the play glyph must point
   right in both directions (spec section 8). A logical border here would
   flip the triangle's point in rtl, which is exactly what must never
   happen. */
.e50lp-media__play::before {
  content: "";
  display: block;
  margin-left: 55%;
  width: 0;
  height: 0;
  border-block: 7px solid transparent;
  border-left: 11px solid var(--e50lp-text);
  border-right: 0;
  transform: translateX(-50%);
}

.e50lp-root[dir="rtl"] .e50lp-media__play {
  transform: translate(50%, -50%);
}

/* The terminus of the hairline running down from the year pill: a ring with
   a solid centre, drawn on the card's middle. Measured off the board at
   1920x1080 - the ring is 22px across the outside at 1.5px, the centre dot
   is 8px, and both are solid white.

   Physical top/left rather than logical: the mark is symmetrical, so it has
   no start or end edge to mirror, and centring it physically means no second
   rule to undo the translate in rtl.

   Decoration, so it must never take the click belonging to the overlay that
   covers the whole card. */
.e50lp-media__node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--e50lp-text);
  border-radius: 50%;
  pointer-events: none;
  /* The board tapers this on the pills' gentle curve, not the cards' steep
     one: at one card out it is still ~0.85 where the card itself is 0.61.
     Dividing out the card's own scale leaves the mark at the pill's. */
  transform: translate(-50%, -50%)
             scale(calc(var(--e50lp-pill-scale, 1) / var(--e50lp-scale, 1)));
}

/* The ring that goes out when the deck lands on this card. A separate
   pseudo-element because ::before is already the solid dot in the middle,
   and because a ring that scales must not take the dot with it.

   Sized and placed off the node rather than inheriting its box: the node
   carries a scale of its own (the pill's taper, divided by the card's), and
   this rides along with it, which is what keeps the ring the same weight
   relative to the mark on every card in the fan. */
.e50lp-media__node::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border: 1.5px solid var(--e50lp-text);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* The wave: one ring as the landing reaches this card. */
.e50lp-timeline__entry--landed .e50lp-media__node::after {
  animation: e50lp-node-ring 620ms cubic-bezier(0.22, 1, 0.36, 1)
    var(--e50lp-ripple-delay, 0ms);
}

/* The centred card keeps ringing. It wins over the wave rule above on
   specificity - the attribute selector - which is what it should do: the
   wave's single ring is that same ping's first beat, so there is nothing to
   hand over.

   3200ms is the period the year pill breathes on, deliberately. Two marks on
   the same card pulsing at unrelated rates read as two things going wrong;
   on one rate they read as one thing alive. */
.e50lp-timeline__entry[aria-current='true'] .e50lp-media__node::after {
  animation: e50lp-node-pulse 3200ms cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes e50lp-node-ring {
  from { transform: scale(1); opacity: 0.85; }
  to { transform: scale(2.6); opacity: 0; }
}

/* The ring is out and gone by a fifth of the way through; the rest of the
   cycle is the pause before the next one. Holding the finished state to 100%
   rather than shortening the duration is what puts the gap there - an
   animation that simply repeated every 640ms would be a strobe, not a pulse. */
@keyframes e50lp-node-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  20% { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-timeline__entry--landed .e50lp-media__node::after,
  .e50lp-timeline__entry[aria-current='true'] .e50lp-media__node::after {
    animation: none;
  }
}

.e50lp-media__node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--e50lp-text);
  transform: translate(-50%, -50%);
}

/* Landing cards are static images that open the detail popup. The overlay
   button covers the whole card so the image itself stays decorative, and it
   carries the accessible name rather than the img. */
.e50lp-media__open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.e50lp-media__open:focus-visible {
  outline: 2px solid var(--e50lp-accent);
  outline-offset: 2px;
}
.e50lp-player {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Opaque, not 0.96. The player can open on top of the detail popup - a
     card's own play button routes here the same way a feature's does - and
     a backdrop short of full alpha lets the popup paint through it: at
     0.96 that is a faint but real "\u00d7", confirmed live at
     elementFromPoint() landing back on .e50lp-player rather than
     .e50lp-detail__close, so what a reader sees there is a close control
     that does nothing. The popup's own controls have no idea the player
     has opened over them (no event passes between the two - see
     e50lp-init.js's PLAY_REQUEST handler, which only ever talks to the
     player), so there is nothing on the popup's side to fix; the backdrop
     that is meant to cover it needs to actually do that.

     --e50lp-bg-edge, not a literal: it is already the page's own darkest
     ground colour (01-tokens.css), so the player reads as the page itself
     taking over rather than a different black being layered on top. */
  background-color: var(--e50lp-bg-edge, #070918);
}

.e50lp-player[hidden] { display: none; }

.e50lp-player__frame {
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
}

.e50lp-player__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.e50lp-player__notice {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  color: var(--e50lp-text-muted);
  font-size: var(--e50lp-size-body);
}

.e50lp-player__close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  width: var(--e50lp-tap);
  height: var(--e50lp-tap);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--e50lp-text);
  font-size: 20px;
  cursor: pointer;
}

.e50lp-player__close::before { content: "\00d7"; }
/* The digital book view: the cover standing on the page with one control
   under it. Sized off the board at 1920x1080 - the book measures 430x558
   there and the control 220x62, with 102 between them - so it sits at the
   same scale as the rest. */
.e50lp-book {
  --e50lp-s: min(100vw, 1920px, calc(100vh * 1920 / 1080));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--e50lp-s) * 102 / 1920);
  width: 100%;
  height: 100%;
  padding: 24px var(--e50lp-gutter);
  text-align: center;
}

/* The view itself just crossfades now - see 02-base.css's own comment on
   .e50lp-root > .e50lp-view for why that lives there rather than here: this
   used to carry its own copy of the same three rules, scoped to just this
   view on the reasoning that the other views switched instantly anyway, and
   that turned out to be exactly backwards - Calendar switching instantly
   while this one faded is what produced a real, measured blank gap on the
   way out of it. One shared crossfade for every view closes that gap.

   What is still genuinely this view's own: the cover and the download
   control each carry their own further entrance on top of the shared fade -
   book, then button, not both arriving in the same beat. The cover's own
   transition below runs the instant the view stops being hidden; the
   download control's carries a delay (--e50lp-book-cta-delay) past that, so
   the reader sees the book land and then the control step in after it. */

.e50lp-book__cover {
  display: block;
  /* The render is 744x594 and carries its own perspective and shadow; the
     book itself occupies x282..709, y2..561 of it, and the shadow spreads
     left into the rest. The board comp places this artwork at its natural
     size - the book measures 428x560 in the file and 430x558 there - so it
     is sized 744 wide here rather than scaled to the book's own 430.

     Centring the box would leave the shadow's width to one side of the book
     and almost none to the other, putting the book 124px right of the middle
     - which is what it was doing. The book's centre sits at two thirds of the
     file's width, so a sixth of a width to the left brings the book itself to
     the centre, at any scale and without a magic pixel figure.

     The bottom margin removes the 32 empty pixels under the book so the gap
     below runs from its base rather than from where the file happens to end. */
  width: calc(var(--e50lp-s) * 744 / 1920);
  height: auto;
  max-width: none;
  margin: 0 0 calc(var(--e50lp-s) * -32 / 1920);
  border-radius: 0;
  /* Physical, not logical: the artwork must not mirror on the Arabic page.
     Carried in every transform below rather than left as its own
     declaration, since the rise-in these add shares the property with it -
     the translateY/scale pair changes, this offset never does. */
  --e50lp-book-cover-x: translateX(-16.667%);
  transform: var(--e50lp-book-cover-x) translateY(0) scale(1);
  opacity: 1;
  /* Slower and travelling further than the first pass - asked for something
     that reads clearly as motion, not a quick cut. 950ms/850ms is well past
     "snappy UI" territory on purpose; this is a once-per-visit arrival, not
     something the reader sits through repeatedly the way a hover is. */
  transition:
    transform 950ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.e50lp-view[data-view-id="book"][hidden] .e50lp-book__cover {
  transform: var(--e50lp-book-cover-x) translateY(10px) scale(0.97);
  opacity: 0;
  transition:
    transform 200ms cubic-bezier(0.45, 0, 0.55, 1),
    opacity 160ms cubic-bezier(0.45, 0, 0.55, 1);
}

@starting-style {
  .e50lp-view[data-view-id="book"]:not([hidden]) .e50lp-book__cover {
    /* More travel too, not just more time - 28px/0.94 read as a twitch once
       stretched over the full second above; the motion has to be visible to
       the eye at any point in the trip, not just add up to one over time. */
    transform: var(--e50lp-book-cover-x) translateY(56px) scale(0.88);
    opacity: 0;
  }
}

/* Measured off the comp: a 220x62 glass pill lit from the top left, over a
   rim that is bright on the two caps and all but absent along the top and
   bottom edges. Sampling the comp put the fill at 37% white falling to 6%
   across the diagonal, and the rim, once the fill under it is divided out,
   at 0.26 and 0.36 on the left and right caps against 0.06 and 0.03 top and
   bottom.

   That rim is four inset shadows rather than a border colour, because a
   single solid border is the same on all four edges: bright enough for the
   caps, it draws a hard outline along the top and bottom that the comp does
   not have. A gradient painted under a transparent border does not work here
   either - that needs an opaque fill to confine it to the edge, and this fill
   is 4% white at its far end, so the gradient reads straight through the
   middle of the pill. Inset shadows follow the radius, need no compositing,
   and each one carries its own strength.

   This was a much brighter top-to-bottom wash before - that is the deck's
   caption pill, a different control that happens to share the shape. */
.e50lp-book__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  /* Clips the shine pseudo-element below to the pill's own rounded shape -
     see .e50lp-timeline__title, the control this is matched to, for why. */
  overflow: hidden;
  min-width: calc(var(--e50lp-s) * 220 / 1920);
  min-height: calc(var(--e50lp-s) * 62 / 1920);
  /* padding-inline-start/-end, not the padding-inline shorthand - matching
     .e50lp-timeline__title (04-timeline.css), which found the shorthand snaps
     straight to its end value with no intermediate frames even with a
     transition declared on it; the two longhands transition properly. */
  --e50lp-book-cta-pad-x: calc(var(--e50lp-s) * 40 / 1920);
  padding-inline-start: var(--e50lp-book-cta-pad-x);
  padding-inline-end: var(--e50lp-book-cta-pad-x);
  border: 0;
  border-radius: 999px;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.26),
    inset -1px 0 0 rgba(255, 255, 255, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  color: var(--e50lp-text);
  font-weight: 700;
  font-size: calc(var(--e50lp-s) * 23 / 1920);
  text-decoration: none;
  z-index: 1;
  /* The rise-in below, plus a hover grow in the same spirit as
     .e50lp-timeline__title's own (padding-inline-start/-end, not the
     shorthand - see that control's own comment on why the shorthand snaps
     rather than transitions) - asked afterwards to widen further than that
     match on its own, so --e50lp-book-cta-grow is this control's own amount
     rather than the shared +12px. The delay is what makes the rise-in a
     second beat rather than a second copy of the cover's own motion: held
     until the cover is most of the way through its own 950ms rise (480ms in
     - past the visible part of its travel, not waiting for the last,
     barely-moving tail of the ease-out), then covers ground of its own
     slowly enough to still read as deliberate rather than a blip. */
  --e50lp-book-cta-grow: 20px;
  transform: translateY(0);
  opacity: 1;
  transition:
    padding-inline-start 320ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-inline-end 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1) var(--e50lp-book-cta-delay, 480ms),
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1) var(--e50lp-book-cta-delay, 480ms);
}

/* The same diagonal shine .e50lp-timeline__title carries, the same keyframe
   (defined once, in 04-timeline.css, which every page that draws this
   control already loads) - asked to match it exactly, not echo it. */
.e50lp-book__download::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: linear-gradient(
    100deg,
    transparent 35%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 65%
  );
  background-repeat: no-repeat;
  background-size: 55% 100%;
  background-position: -70% 0;
  mix-blend-mode: screen;
  animation: e50lp-title-shine 5200ms ease-in-out infinite;
}

.e50lp-book__download:hover {
  padding-inline-start: calc(var(--e50lp-book-cta-pad-x) + var(--e50lp-book-cta-grow));
  padding-inline-end: calc(var(--e50lp-book-cta-pad-x) + var(--e50lp-book-cta-grow));
}

.e50lp-book__download:focus-visible {
  outline: 2px solid var(--e50lp-accent);
  outline-offset: 3px;
}

/* No delay leaving - both the cover and this fade out together, quicker than
   either arrived. See the book view's own [hidden] rule above. */
.e50lp-view[data-view-id="book"][hidden] .e50lp-book__download {
  transform: translateY(10px);
  opacity: 0;
  transition:
    transform 180ms cubic-bezier(0.45, 0, 0.55, 1),
    opacity 160ms cubic-bezier(0.45, 0, 0.55, 1);
}

@starting-style {
  .e50lp-view[data-view-id="book"]:not([hidden]) .e50lp-book__download {
    transform: translateY(36px);
    opacity: 0;
  }
}

/* The phone tier: the book takes the width it is given rather than a share of
   a 1920 grid, and the control returns to a readable body size. */
@media (max-width: 1023px) and (orientation: portrait), (max-width: 1023px) and (pointer: coarse), (max-width: 639px) {
  .e50lp-book { gap: 40px; }

  /* Sized by the book rather than by the file, so the shadow's share of the
     width does not eat into it: the book is 430 of the artwork's 744. */
  .e50lp-book__cover {
    --e50lp-book-width: min(300px, 62vw);
    width: calc(var(--e50lp-book-width) * 744 / 430);
    height: auto;
    margin-bottom: calc(var(--e50lp-book-width) * -32 / 430);
  }

  .e50lp-book__download {
    min-width: 200px;
    min-height: 48px;
    --e50lp-book-cta-pad-x: 32px;
    font-size: var(--e50lp-size-body);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* The view wrapper's own transition:none lives in 02-base.css now, shared
     by every view. */
  .e50lp-book__cover,
  .e50lp-book__download {
    transition: none;
  }
  .e50lp-view[data-view-id="book"][hidden] .e50lp-book__cover,
  .e50lp-view[data-view-id="book"][hidden] .e50lp-book__download {
    transform: none;
  }
  .e50lp-book__download:hover {
    padding-inline-start: var(--e50lp-book-cta-pad-x);
    padding-inline-end: var(--e50lp-book-cta-pad-x);
  }
  .e50lp-book__download::before {
    animation: none;
    background-position: -70% 0;
  }
}

.e50lp-book__notice {
  color: var(--e50lp-text-muted);
  font-size: var(--e50lp-size-body);
}
/* Development-placeholder marking.
   Inert unless the component root also carries .e50lp-root--placeholders, which
   only the demo harnesses in demo/ do. A client integration never sets it, so
   these badges cannot reach production.

   Why this exists: some poster images in src/assets/ are frames extracted
   from the client's content deck and carry visible third-party watermarks
   and, on some frames, burnt-in video player chrome. Without a mark, the
   harness looks like finished work and invites the conclusion that
   watermarked stock imagery was shipped into an e& deliverable.

   It badges only those. e& have since supplied real thumbnails for most of
   the timeline, and a badge across every card labelled their own photography
   as placeholder material - which is worse than no badge, because it makes
   the marking meaningless. The mark follows
   .e50lp-media__poster--placeholder, which e50lp-media.js puts on a stand-in and
   on any poster the content file flags with posterPlaceholder. */

.e50lp-root--placeholders {
  --e50lp-placeholder-bg: #f0b429;
  --e50lp-placeholder-fg: #241a00;
}

/* :has() keeps the badge off the "image to follow" fallback cards, which
   already say so in words. Browsers without :has() simply show no badge —
   acceptable degradation for a development aid. */
.e50lp-root--placeholders .e50lp-media:has(.e50lp-media__poster--placeholder)::after,
.e50lp-root--placeholders
  .e50lp-detail__card:has(.e50lp-detail__poster--placeholder:not([hidden]))::before {
  content: "PLACEHOLDER";
  position: absolute;
  z-index: 2;
  padding: 2px 5px;
  font-family: var(--e50lp-font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--e50lp-placeholder-fg);
  background-color: var(--e50lp-placeholder-bg);
  pointer-events: none;
}

.e50lp-root--placeholders .e50lp-media:has(.e50lp-media__poster--placeholder)::after {
  inset-block-start: 0;
  inset-inline-start: 0;
  border-end-end-radius: 4px;
}

.e50lp-root--placeholders .e50lp-book {
  position: relative;
}

/* The book cover is the client's own artwork, so it carries no badge. What
   is standing in on this view is the PDF behind the Download control, and a
   badge on the cover would point at the wrong thing - npm run audit and the
   packaging guard report that one instead. */
.e50lp-root--placeholders .e50lp-book__cover--unused::after {
  inset-block-start: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
}

/* Above the popup's scrim, which is z-index-free but paints after the img. */
.e50lp-root--placeholders .e50lp-detail__card:has(.e50lp-detail__poster:not([hidden]))::before {
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 3;
  border-end-end-radius: 4px;
}
/* Detail popup — board 2 of the client PSD ("2/Detail View").

   Every offset below is that board's real layer coordinate divided by 1920,
   so the composition is exact at the design width and scales proportionally
   under it. The board is 1920x1080; --e50lp-s is the widest 16:9 stage that
   fits the viewport, capped at the design width, so one divisor serves both
   axes.

   Board coordinates this file encodes:
     card    1195x674 at (363,203)      close   49x49  at (1477,236)
     play    81x81    at (920,500)      arrows  23x38  at (276,521)/(1617,521)
     title   452x112  at (402,647)      body    641x36 at (402,790)
     years   197x17   at (861,916)      ruler   1434x50 at (243,948)

   Layered at z-index 1 on purpose: that covers the deck and the ghost
   wordmark, which sit in normal flow, while the sticky tab strip at z-index 2
   stays visible above it — exactly as the board shows. The player sits at
   9999 and covers everything, which is board 3.

   That level is low for a page that is not the board: a host's own sticky
   header (typically z-index 100-1100) is drawn over the top of the popup, and
   on a phone that includes the close button. A host can raise it from its own
   stylesheet - `.e50lp-root { --e50lp-popup-z: 2000; }` - and nothing changes
   for one that does not. */

.e50lp-detail {
  --e50lp-s: min(100vw, 1920px, calc(100vh * 1920 / 1080));
  position: fixed;
  inset: 0;
  z-index: var(--e50lp-popup-z, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--e50lp-bg-edge);
  /* The same plate the root carries, over the same gradient. The popup
     covers the whole viewport, so without the artwork it replaced the
     design's lit background with a flat wash for as long as it was open -
     the rays simply vanished when a card was opened and came back when it
     was closed.

     The gradient stays underneath for the same reason it does on the root:
     the artwork is client media, fetched by tools/install-backgrounds.sh and
     never committed, so this is what renders if it is missing. */
  background-image:
    url("/content/dam/eand/anniversary/img/e50lp/e50lp-bg-main-bg.webp"),
    radial-gradient(
      120% 80% at 50% 20%,
      var(--e50lp-bg-centre) 0%,
      var(--e50lp-bg-edge) 70%
    );
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Opening and closing, in CSS rather than in the sequencing. The popup is
   shown and hidden by the `hidden` attribute, and display: none cannot be
   eased - so this leans on the pair of properties that exist for exactly
   that: allow-discrete holds the display flip until the rest of the
   transition has run, and @starting-style supplies the values to come in
   from.

   Doing it here rather than in e50lp-detail.js is what keeps close() honest:
   it still sets `hidden` synchronously, so anything that asks whether the
   popup is open gets the right answer on the same tick, and only the
   painting is deferred. A close that waited on a transition before setting
   the attribute would have made every caller wait with it.

   Browsers without the two properties get what they get today: an instant
   show and hide. Nothing is lost that was ever there. */
.e50lp-detail[hidden] { display: none; }

.e50lp-detail {
  opacity: 1;
  transition:
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
    display 240ms allow-discrete;
}

/* Leaving is quicker than arriving. A transition takes its duration from the
   state it is going *to*, so these are the closing figures and the base rule
   above stays the opening ones. Matched timings read as sluggish on the way
   out: an open is a reveal and can afford to be admired, a close is the
   reader saying "done" and should get out of the way.

   The curve is (0.45, 0, 0.55, 1), which the build already uses elsewhere -
   not the exact reverse of the entry curve. Reversing (0.22, 1, 0.36, 1)
   gives (0.64, 0, 0.78, 0), which is the correct mirror mathematically and
   the wrong motion: y1 and y2 both at 0 hold the value almost still for the
   first 60% of the duration and then drop it all at once. Measured on the
   flight, it sat at 996px through 59ms and 962px at 160ms of 260ms before
   collapsing to 396px - a snap, not an exit. A gentle ease-in-out eases out
   of the held state and into the target at both ends.

   Kept well inside the 320ms that e50lp-detail.js waits before dropping the
   poster, so the picture is still there for every frame of this. */
.e50lp-detail[hidden] {
  opacity: 0;
  transition:
    opacity 180ms cubic-bezier(0.45, 0, 0.55, 1),
    display 180ms allow-discrete;
}

@starting-style {
  .e50lp-detail:not([hidden]) {
    opacity: 0;
  }
}

/* The card carries the movement: the overlay only fades, because it is a
   full-screen fixed box and scaling it would show the page through the gap
   at its edges. */
.e50lp-detail__card {
  transform: translateY(0) scale(1);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Less distance as well as less time. The 16px rise and 0.98 scale are right
   for an entrance, where there is room to watch them; compressed into a
   shorter exit the same distance reads as a lurch, so the close travels about
   half as far. */
.e50lp-detail[hidden] .e50lp-detail__card {
  transform: translateY(8px) scale(0.99);
  opacity: 0;
  transition:
    transform 200ms cubic-bezier(0.45, 0, 0.55, 1),
    opacity 160ms cubic-bezier(0.45, 0, 0.55, 1);
}

@starting-style {
  .e50lp-detail:not([hidden]) .e50lp-detail__card {
    transform: translateY(16px) scale(0.98);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-detail,
  .e50lp-detail__card {
    transition: none;
  }

  .e50lp-detail[hidden] .e50lp-detail__card {
    transform: none;
  }
}

/* Its own flag bar, rather than fighting the root's over z-index. */
.e50lp-detail::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--e50lp-flag-1) 0%,
    var(--e50lp-flag-2) 33%,
    var(--e50lp-flag-3) 66%,
    var(--e50lp-flag-4) 100%
  );
}

.e50lp-detail__stage {
  position: relative;
  width: var(--e50lp-s);
  height: calc(var(--e50lp-s) * 1080 / 1920);
}

/* ---- card ---- */

.e50lp-detail__card {
  position: absolute;
  inset-block-start: calc(var(--e50lp-s) * 203 / 1920);
  inset-inline-start: calc(var(--e50lp-s) * 363 / 1920);
  width: calc(var(--e50lp-s) * 1195 / 1920);
  height: calc(var(--e50lp-s) * 674 / 1920);
  border-radius: calc(var(--e50lp-s) * 24 / 1920);
  overflow: hidden;
  background-color: #12172f;
}

.e50lp-detail__frame {
  position: absolute;
  inset: 0;
  /* .e50lp-detail__card already clips to its own rounded corner two levels up
     (overflow: hidden there, border-radius on it, frame and iframe both
     inset: 0 inside it) - this repeats just the clip, not the radius, on
     frame itself. An <iframe> is composited on its own GPU layer in Chrome,
     and a layer promoted like that can paint past an ancestor's rounded
     overflow:hidden instead of being clipped by it - measured as a hairline
     of the iframe's own square corner showing past the card's curve at the
     bottom edge, only once a video was actually playing (a poster <img> has
     no layer of its own and never showed it). Clipping again on the iframe's
     own parent is what a browser's layer promotion cannot skip. */
  overflow: hidden;
}

/* The node renderVideo() mounts (e50lp-detail.js) - an <iframe>, or the "not
   yet available" notice built by e50lp-player.js's buildMedia(). This file
   never sees which; it only has to fill the same box the poster does. */
.e50lp-detail__frame iframe {
  /* Exactly 16:9, centred, as tall as the frame - not the frame's own box.
     The frame is the board's 1195:674 (1.773:1) and every video is 16:9
     (1.778:1), so an iframe stretched to the frame gave the player a box
     slightly taller than its picture and it drew black bars along the top
     and bottom: a hairline 1-2px thick that read as a gap above the video.
     Sizing the iframe to the video's own ratio leaves the player nothing to
     letterbox; the frame's overflow: hidden trims the ~1px this overshoots
     it by at each side, which is the video's own edge. Physical left/
     translate, not inset-inline: it is centring, which is the same in rtl. */
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  aspect-ratio: 16 / 9;
  transform: translateX(-50%);
  border: 0;
  /* The clip that actually holds: frame's own overflow: hidden above clips a
     square box, and a square clip cannot round a corner it has none of. A
     composited layer clips reliably to its OWN border-radius, which is what
     this is - the same figure as the card's, so the video's corners land
     exactly on the card's curve instead of just short of it. */
  border-radius: calc(var(--e50lp-s) * 24 / 1920);
}

/* Two different things share the frame, and they are treated differently.
   The PREVIEW (--previewing) is a picture that moves: the headline, body,
   years and scrim all stay on top of it, and e50lp-detail.js mounts it under
   the scrim for exactly that. The reader's own PLAY (--playing) is the video
   itself, so it plays with nothing over it: the scrim, the neighbouring
   years, the play ring and - where it overlays the picture, at desktop width -
   the headline and body all step aside. (At phone width the text sits below
   the picture rather than over it, so it stays; see the media block below.)
   Close becomes Stop and stays above everything on purpose, and
   onCloseClick makes its first press mean "stop this", not "leave". Both come
   straight back when the video stops (clearVideo drops the class). */
.e50lp-detail--playing .e50lp-detail__scrim,
.e50lp-detail--playing .e50lp-detail__edgeyear,
.e50lp-detail--playing .e50lp-detail__play {
  display: none;
}

@media (min-width: 1024px), (orientation: landscape) and (pointer: fine) and (min-width: 640px) {
  .e50lp-detail--playing .e50lp-detail__text {
    display: none;
  }
}

/* The popup's own picture (and the written fallback that stands in for it)
   goes too, while the video is up. It sits under the player at the same size,
   and with the player on top it is only ever seen at the edges - a hairline of
   photograph around the video where its corners round off, and the whole
   picture behind it for the moment before the player has drawn its first frame.
   Both come straight back when the video stops (clearVideo drops the class),
   so closing the video returns to the picture it started from. */
.e50lp-detail--playing .e50lp-detail__poster,
.e50lp-detail--playing .e50lp-detail__fallback,
.e50lp-detail--previewing:not(.e50lp-detail--loading) .e50lp-detail__poster,
.e50lp-detail--previewing:not(.e50lp-detail--loading) .e50lp-detail__fallback {
  visibility: hidden;
}

/* The reader's own play never shows the slide picture - not even while the
   player is still starting (the preview is the one thing that holds the
   picture back until it is ready). Until the embed has loaded the frame is
   dark with a loader on it; then the video. */
.e50lp-detail--playing .e50lp-detail__frame {
  background-color: #12172f;
}

.e50lp-detail__loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(36px, calc(var(--e50lp-s) * 64 / 1920), 64px);
  aspect-ratio: 1;
  margin: calc(clamp(36px, calc(var(--e50lp-s) * 64 / 1920), 64px) / -2) 0 0 calc(clamp(36px, calc(var(--e50lp-s) * 64 / 1920), 64px) / -2);
  box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--e50lp-text);
  border-radius: 50%;
  pointer-events: none;
  animation: e50lp-detail-spin 900ms linear infinite;
}

.e50lp-detail--playing.e50lp-detail--loading .e50lp-detail__loader {
  display: block;
}

@keyframes e50lp-detail-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  /* Still a visible ring, just not a spinning one: a slow pulse instead. */
  .e50lp-detail__loader {
    animation: e50lp-detail-pulse 1600ms ease-in-out infinite;
    border-top-color: rgba(255, 255, 255, 0.22);
  }
  @keyframes e50lp-detail-pulse {
    50% { opacity: 0.35; }
  }
}

/* The looping preview is a picture that moves, not a player: it takes no
   pointer input, so a tap on it is a tap on the card (or the play ring)
   above it, and a swipe across it still pages. It holds two players
   stacked on each other (e50lp-player.js hands the loop over between them);
   exactly one is on show, and which one changes instantly when they swap. */
.e50lp-detail__preview {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 500ms ease;
}

.e50lp-detail__preview-frame {
  opacity: 0;
}

.e50lp-detail__preview-frame--front {
  opacity: 1;
}

/* Invisible while YouTube's own overlay (title, logo, pause button) is still
   on the first player - the picture shows instead, and the preview dissolves
   in once that has faded. Only the preview: the reader's own full video is
   never hidden. */
.e50lp-detail--loading .e50lp-detail__preview {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-detail__preview { transition: none; }
}

.e50lp-detail__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e50lp-detail__poster[hidden],
.e50lp-detail__fallback[hidden] { display: none; }

.e50lp-detail__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--e50lp-s) * 17 / 1920);
  color: var(--e50lp-text-muted);
}

/* Keeps the headline legible over archive footage: heavy at the bottom
   inline-start corner where the text sits, gone by the top opposite corner. */
.e50lp-detail__scrim {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to top,
      rgba(4, 6, 20, 0.88) 0%,
      rgba(4, 6, 20, 0.45) 26%,
      rgba(4, 6, 20, 0) 52%
    ),
    linear-gradient(
      to right,
      rgba(4, 6, 20, 0.72) 0%,
      rgba(4, 6, 20, 0.28) 34%,
      rgba(4, 6, 20, 0) 62%
    );
}

/* The horizontal half of the scrim must follow the text, and gradient
   directions are physical, so rtl needs an explicit flip. Unlike the flag
   bar - which must never mirror - this one must, because it exists to sit
   behind the headline, and the headline moves. */
.e50lp-root[dir="rtl"] .e50lp-detail__scrim {
  background-image:
    linear-gradient(
      to top,
      rgba(4, 6, 20, 0.88) 0%,
      rgba(4, 6, 20, 0.45) 26%,
      rgba(4, 6, 20, 0) 52%
    ),
    linear-gradient(
      to left,
      rgba(4, 6, 20, 0.72) 0%,
      rgba(4, 6, 20, 0.28) 34%,
      rgba(4, 6, 20, 0) 62%
    );
}

/* .e50lp-detail__stop is the same control in the same corner, for a different
   moment: close ends the popup, stop only ends the video playing inside it
   (renderVideo() hides one and shows the other - see e50lp-detail.js - so the
   two are never on screen together and never need telling apart by look,
   only by which is there). Sharing every rule below is what keeps them
   sharing a look automatically, rather than two X buttons quietly drifting
   apart the next time either one is restyled. */
.e50lp-detail__close,
.e50lp-detail__stop {
  position: absolute;
  inset-block-start: calc(var(--e50lp-s) * 33 / 1920);
  inset-inline-end: calc(var(--e50lp-s) * 32 / 1920);
  width: calc(var(--e50lp-s) * 49 / 1920);
  height: calc(var(--e50lp-s) * 49 / 1920);
  padding: 0;
  border: 0;
  border-radius: 50%;
  /* Explicitly transparent: this is a <button>, and dropping the colour it
     used to carry let the UA's own buttonface grey (rgb(239,239,239)) show
     through under the gradient. */
  background-color: transparent !important;
  /* Darkens the image behind it on a diagonal, rather than lightening it.
     Sampled off board 2, where the button sits on flat sky of rgb(141,157,173):
     the fill keeps that colour's exact channel relationships (+16 green, +16
     blue) and only reduces it, so it is a translucent black, not a grey tint.
     The reduction runs from about 0.85 of the backdrop at the top left to
     0.48 at the right - light to dark across the same diagonal the title
     capsule uses. */
  background-image: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.33) 50%,
    rgba(0, 0, 0, 0.60) 100%
  );
  cursor: pointer;
}

/* Above the video it sits on: an <iframe>/<video> is stacked here right
   after this button in DOM order (renderVideo() appends it to frame last -
   see e50lp-detail.js), so without its own stacking order Stop would paint
   underneath the very thing it exists to stop. */
.e50lp-detail__stop {
  z-index: 5;
}

.e50lp-detail__stop[hidden] { display: none; }

/* Physical left, not inset-inline-start - the same reason the play glyph
   just above takes it: translate(-50%, -50%) below is a fixed physical
   shift, so it only cancels a physical `left` anchor back onto centre.
   inset-inline-start:50% resolves to `right:50%` under rtl, and the same
   leftward translate then carries the bar a further half of its own width
   past centre instead of back onto it - a whole bar-width off, not a subtle
   nudge, which is what actually showed up as the close mark sitting toward
   the ring's corner in Arabic. The mark itself is symmetric (two mirrored
   diagonals), so there is no direction-dependent shape to preserve here,
   unlike the play triangle - a plain physical anchor is the whole fix, no
   rtl override needed on top of it. */
.e50lp-detail__close::before,
.e50lp-detail__close::after,
.e50lp-detail__stop::before,
.e50lp-detail__stop::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  left: 50%;
  width: calc(var(--e50lp-s) * 17 / 1920);
  height: 1.5px;
  background-color: var(--e50lp-text);
}

.e50lp-detail__close::before,
.e50lp-detail__stop::before { transform: translate(-50%, -50%) rotate(45deg); }
.e50lp-detail__close::after,
.e50lp-detail__stop::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Play ring, centred on the card exactly as the board has it. Its inside is a
   frosted-glass fill - translucent, with a backdrop blur - the same size as
   the ring itself, so the video behind it (and YouTube's own pause button,
   drawn at this same centre for the first seconds) is blurred inside the ring
   and nowhere else. */
.e50lp-detail__play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--e50lp-s) * 81 / 1920);
  height: calc(var(--e50lp-s) * 81 / 1920);
  padding: 0;
  border: 2.5px solid var(--e50lp-text);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.e50lp-detail__play[hidden] { display: none; }

/* Physical left, not inset-inline-start: the anchor has to stay physical too,
   not just the border-left glyph it draws. inset-inline-start flips to a
   physical `right` under rtl, and the transform below does not follow it
   there (it is not direction-aware, same as the media play button's own
   translateX(-50%)) - so the glyph slid off to the wrong side in Arabic even
   though its shape kept pointing right. `.e50lp-detail__play` itself gets its
   own rtl transform override just below for the same reason its
   inset-inline-start flips; this pseudo-element sidesteps the problem
   entirely by never using a logical property for its position. */
.e50lp-detail__play::before {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-block: calc(var(--e50lp-s) * 11 / 1920) solid transparent;
  border-left: calc(var(--e50lp-s) * 18 / 1920) solid var(--e50lp-text);
  border-right: 0;
  transform: translate(-50%, -50%);
}

.e50lp-root[dir="rtl"] .e50lp-detail__play { transform: translate(50%, -50%); }

/* Neighbouring years, inside the card at its vertical centre - and, now that
   e50lp-detail.js makes these buttons rather than decorative spans, a second
   way to page beside the 23x38 arrow next to each one. Nudged up from the
   board's own 328 (the card's exact centre line) on request, clear of the
   play ring's own 81px circle at the same height. */
.e50lp-detail__edgeyear {
  position: absolute;
  inset-block-start: calc(var(--e50lp-s) * 300 / 1920);
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: calc(var(--e50lp-s) * 18 / 1920);
  line-height: 1;
  color: var(--e50lp-text);
  cursor: pointer;
}

.e50lp-detail__edgeyear--prev { inset-inline-start: calc(var(--e50lp-s) * 39 / 1920); }
.e50lp-detail__edgeyear--next { inset-inline-end: calc(var(--e50lp-s) * 38 / 1920); }

.e50lp-detail__edgeyear:hover { color: var(--e50lp-accent); }

.e50lp-detail__edgeyear:focus-visible {
  outline: 2px solid var(--e50lp-accent);
  outline-offset: 4px;
}

/* Anchored to the bottom inline-start corner so a longer body grows upward
   instead of overflowing the card. */
.e50lp-detail__text {
  position: absolute;
  inset-block-end: calc(var(--e50lp-s) * 51 / 1920);
  inset-inline-start: calc(var(--e50lp-s) * 39 / 1920);
  display: flex;
  flex-direction: column;
  gap: calc(var(--e50lp-s) * 31 / 1920);
}

.e50lp-detail__headline {
  margin: 0;
  /* Widened from the board's own 490 on request: several entries' real copy
     (e.g. "A Faster Connected Future") wrapped to three lines at that width
     rather than the two every headline is meant to read as. 620 is wide
     enough for a three- or four-word headline like that one to settle on
     two lines without visibly outgrowing the card - the text block still
     sits well inside the frame at every breakpoint --e50lp-s covers. */
  max-width: calc(var(--e50lp-s) * 620 / 1920);
  /* Set at 48 now, on request: at the board's 60 a two-line heading sat hard
     against the play button and the year labels on some screens. What follows
     is why the board itself reads 60.

     60px, not 48. Two independent reads off board 2 agree: "Connected" has a
     43px cap height (~60px of Suisse) and measures 310px wide, which is 60px
     type - at 48 it would set 250px. Lines sit 59px apart, so the leading is
     fractionally tighter than the type size. */
  font-size: calc(var(--e50lp-s) * 48 / 1920);
  font-weight: 700;
  line-height: calc(var(--e50lp-s) * 59 / 1920);
  letter-spacing: -0.01em;
}

.e50lp-detail__body {
  margin: 0;
  max-width: calc(var(--e50lp-s) * 660 / 1920);
  /* Board: 13px caps (~18px type) on a 20px rhythm. The inherited 1.5 leading
     was setting these 25.5px apart and pushing the block taller than the
     design's. */
  font-size: calc(var(--e50lp-s) * 18 / 1920);
  line-height: calc(var(--e50lp-s) * 20 / 1920);
}

/* Arabic needs more leading than the Latin the board was drawn in. The board's
   own 20px lines on 18px type (1.11) were set for Suisse; Arabic stacks
   diacritics above and below the line (the shadda in "شقّ", the kasra under
   "الإقليمي") and its letterforms run taller, so at 1.11 one line's marks
   touch the next line's. Unitless, so it follows the font size on both tiers
   instead of being restated per breakpoint, and the headline gets less than
   the body because it is display type on two lines rather than a paragraph. */
.e50lp-root[dir="rtl"] .e50lp-detail__headline { line-height: 1.4; }
.e50lp-root[dir="rtl"] .e50lp-detail__body { line-height: 1.75; }

/* ---- outside the card ---- */

.e50lp-detail__nav {
  position: absolute;
  inset-block-start: calc(var(--e50lp-s) * 521 / 1920);
  width: calc(var(--e50lp-s) * 23 / 1920);
  height: calc(var(--e50lp-s) * 38 / 1920);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* The ends of the story. The popup clamps there rather than wrapping, so
   these have to say so - an arrow that looks live and does nothing is worse
   than one that is plainly spent. Dimmed and inert, matching the deck's own
   nav, and no hover lift: a control must not promise somewhere to go with
   its motion while denying it with its colour. */
.e50lp-detail__nav[disabled] {
  opacity: 0.25;
  cursor: default;
}

.e50lp-detail__nav--prev { inset-inline-start: calc(var(--e50lp-s) * 276 / 1920); }
.e50lp-detail__nav--next { inset-inline-end: calc(var(--e50lp-s) * 280 / 1920); }

.e50lp-detail__nav::before {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: calc(var(--e50lp-s) * 17 / 1920);
  height: calc(var(--e50lp-s) * 17 / 1920);
  border-top: 2px solid var(--e50lp-text);
  border-right: 2px solid var(--e50lp-text);
}

.e50lp-detail__nav--prev::before { transform: translate(-50%, -50%) rotate(-135deg); }
.e50lp-detail__nav--next::before { transform: translate(-50%, -50%) rotate(45deg); }

.e50lp-root[dir="rtl"] .e50lp-detail__nav--prev::before { transform: translate(-50%, -50%) rotate(45deg); }
.e50lp-root[dir="rtl"] .e50lp-detail__nav--next::before { transform: translate(-50%, -50%) rotate(-135deg); }

.e50lp-detail__years {
  position: absolute;
  inset-block-start: calc(var(--e50lp-s) * 916 / 1920);
  inset-inline: 0;
  /* Three tracks with the active year alone in the middle one, not a centred
     flex row. At either end of the story the missing neighbour's label is
     hidden, and a flex row re-centres whatever is left - the lone pair
     "1974 1976" sat off to the left with the active year no longer over the
     ruler's centre mark. Explicit columns keep a hidden neighbour's track
     (the outer two are equal, 1fr) so the active year never moves. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: calc(var(--e50lp-s) * 48 / 1920);
  /* 16px at the 1920 design size, by request - the board's own labels measure
     15. Kept proportional to --e50lp-s like everything else in the popup, so it
     holds its ratio at smaller desktop widths; the mobile block below sets
     its own size and is unaffected. */
  font-size: calc(var(--e50lp-s) * 16 / 1920);
  line-height: 1;
}

/* The neighbouring years dissolve outward rather than simply sitting dim.
   Measured across board 2's year row: the left year climbs 65 -> 268 in
   contrast as it approaches the centre and the right one falls 368 -> 36 away
   from it, against 709 for the active year - so each neighbour carries a
   gradient across itself, which a flat opacity cannot express.

   The stops are anchored to the labels' own span, not to percentages of this
   element. It stretches the full width of the stage, so a percentage mask
   would put all three labels in its dead centre where the alpha is 1 and do
   nothing at all. --e50lp-years-fade is the half-span the board fades over:
   the labels run x890-1082 about a centre of 984. */
.e50lp-detail__years {
  --e50lp-years-fade: calc(var(--e50lp-s) * 108 / 1920);
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.06) calc(50% - var(--e50lp-years-fade)),
    rgba(0, 0, 0, 0.38) calc(50% - var(--e50lp-years-fade) * 0.65),
    rgba(0, 0, 0, 0.62) calc(50% - var(--e50lp-years-fade) * 0.4),
    #000 50%,
    rgba(0, 0, 0, 0.62) calc(50% + var(--e50lp-years-fade) * 0.4),
    rgba(0, 0, 0, 0.38) calc(50% + var(--e50lp-years-fade) * 0.65),
    rgba(0, 0, 0, 0.06) calc(50% + var(--e50lp-years-fade))
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.06) calc(50% - var(--e50lp-years-fade)),
    rgba(0, 0, 0, 0.38) calc(50% - var(--e50lp-years-fade) * 0.65),
    rgba(0, 0, 0, 0.62) calc(50% - var(--e50lp-years-fade) * 0.4),
    #000 50%,
    rgba(0, 0, 0, 0.62) calc(50% + var(--e50lp-years-fade) * 0.4),
    rgba(0, 0, 0, 0.38) calc(50% + var(--e50lp-years-fade) * 0.65),
    rgba(0, 0, 0, 0.06) calc(50% + var(--e50lp-years-fade))
  );
}

/* Brighter than it looks it should be, because the mask above now does the
   dimming: a neighbour renders at this alpha times the mask's, and at 0.32
   the two compounded to 0.17 of the active year where the board has 0.38. */
/* nowrap: a range such as 1976–1982 breaks at its dash in a narrow phone
   track otherwise, and stacks onto two lines. */
.e50lp-detail__yearlabel { color: rgba(255, 255, 255, 0.6); white-space: nowrap; }

/* Placed by column, not by order: a hidden neighbour is out of the grid's
   auto-placement, which would slide the remaining ones into the wrong track.
   justify-self hugs each neighbour to the active year - logical values, so
   it mirrors in RTL with the grid itself. */
.e50lp-detail__yearlabel--prev { grid-column: 1; justify-self: end; }
.e50lp-detail__yearlabel--active { grid-column: 2; }
.e50lp-detail__yearlabel--next { grid-column: 3; justify-self: start; }

.e50lp-detail__yearlabel--active {
  font-weight: 700;
  color: var(--e50lp-text);
}

/* The whole board is the swipe surface - card, year strip and ruler alike.
   pan-y keeps vertical scrolling native while horizontal drags reach us as
   pointer events instead of being swallowed by the browser's own panning.
   Selecting the body copy mid-swipe would turn the gesture into a text drag. */
.e50lp-detail__stage { touch-action: pan-y; }

.e50lp-detail__stage--swiping {
  user-select: none;
  -webkit-user-select: none;
}

/* Swipe strips over the playing video's left and right edges (phone tier
   only; see the note where e50lp-detail.js builds them). Nowhere else do they
   exist. */
.e50lp-detail__swipezone { display: none; }

/* ---- following the finger (phone and tablet width; see e50lp-detail.js) ----
   While a swipe is in flight the real card is moved with the independent
   `translate` property - `transform` is the open/close animation's - and the
   neighbouring entry is a second, lighter card (.e50lp-detail__ghost) inside
   it, parked a card's width and a gutter to one side, so one movement carries
   both. It has no box at wider widths: the gesture there is discrete. */
.e50lp-detail__ghost { display: none; }

.e50lp-detail__card--settling {
  /* The card's own open/close transitions are kept alongside the slide. */
  transition:
    translate 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-detail__card--settling { transition: none; }
}

/* Decoration. The year strip above is what actually reports position, so
   this is hidden from assistive tech and takes no pointer events. */
.e50lp-detail__ruler {
  /* Measured off board 2: ticks every 20px, 2px wide and 20px tall, all
     sharing a bottom edge at y996. The centre carries a three-mark cluster
     rather than a single needle - 37px in the middle with 34px marks one
     pitch either side, and nothing else on the scale is tall, so it is a
     fixed indicator and not a major/minor pattern. */
  --e50lp-tick-pitch: calc(var(--e50lp-s) * 20 / 1920);
  --e50lp-tick-height: calc(var(--e50lp-s) * 20 / 1920);
  --e50lp-needle-height: calc(var(--e50lp-s) * 37 / 1920);
  --e50lp-needle-side: calc(var(--e50lp-s) * 34 / 1920);
  position: absolute;
  /* Bottom edge at y996, so the top is that less the tallest mark. */
  inset-block-start: calc(var(--e50lp-s) * 959 / 1920);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  /* 1440, not the 1434 the board's visible ticks span: the tick layer is
     three times this wide and its pattern starts at that layer's left edge,
     so a tick only lands on the ruler's centre when 1.5 x width is a whole
     number of pitches. That needs width to be an EVEN multiple of the pitch -
     1440 is 72 - and at 1434 (71.7) the centre cluster sat half a pitch off
     the grid it is supposed to mark. */
  width: calc(var(--e50lp-s) * 1440 / 1920);
  height: var(--e50lp-needle-height);
  pointer-events: none;
  /* Holds the moving ticks inside the ruler's own box. */
  overflow: hidden;
  /* The fade lives here, on the fixed box, so the ticks can travel beneath a
     stationary mask. Board 2 does not hold the ticks at full strength across
     a flat middle and fade only the ends - contrast peaks at the centre and
     falls away continuously, 1.00 / 0.75 / 0.53 / 0.31 / 0.16 / 0.05 at 10%
     steps out - so this is a centre-weighted ramp, not a band with fades. */
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.015) 0%,
    rgba(0, 0, 0, 0.10) 10%,
    rgba(0, 0, 0, 0.26) 20%,
    rgba(0, 0, 0, 0.53) 30%,
    rgba(0, 0, 0, 0.75) 40%,
    #000 50%,
    rgba(0, 0, 0, 0.75) 60%,
    rgba(0, 0, 0, 0.53) 70%,
    rgba(0, 0, 0, 0.26) 80%,
    rgba(0, 0, 0, 0.10) 90%,
    rgba(0, 0, 0, 0.015) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.015) 0%,
    rgba(0, 0, 0, 0.10) 10%,
    rgba(0, 0, 0, 0.26) 20%,
    rgba(0, 0, 0, 0.53) 30%,
    rgba(0, 0, 0, 0.75) 40%,
    #000 50%,
    rgba(0, 0, 0, 0.75) 60%,
    rgba(0, 0, 0, 0.53) 70%,
    rgba(0, 0, 0, 0.26) 80%,
    rgba(0, 0, 0, 0.10) 90%,
    rgba(0, 0, 0, 0.015) 100%
  );
}

/* The stationary window. Ticks are hidden across the span the indicator
   cluster occupies, so the two can never interleave: at a fractional phase -
   any moment mid-drag - the moving grid would otherwise land marks between
   the cluster's, showing a 10px spacing through the middle of a 20px scale.
   Edges soft over a few pixels so ticks fade at the boundary instead of
   blinking out. This box never moves, which is the point: a mask on the
   travelling layer would travel with it and window the wrong ticks. */
.e50lp-detail__ticks {
  /* 1.7 pitches either side of centre. The cluster's outer marks sit one
     pitch out, so the window has to clear them by most of a pitch again or a
     travelling tick creeps up beside one: at 1.5 a tick landed 11px from the
     right-hand mark, on a scale whose spacing is 20. */
  --e50lp-gap: calc(var(--e50lp-tick-pitch) * 1.7);
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(
    to right,
    #000 calc(50% - var(--e50lp-gap) - 3px),
    transparent calc(50% - var(--e50lp-gap)),
    transparent calc(50% + var(--e50lp-gap)),
    #000 calc(50% + var(--e50lp-gap) + 3px)
  );
  mask-image: linear-gradient(
    to right,
    #000 calc(50% - var(--e50lp-gap) - 3px),
    transparent calc(50% - var(--e50lp-gap)),
    transparent calc(50% + var(--e50lp-gap)),
    #000 calc(50% + var(--e50lp-gap) + 3px)
  );
}

.e50lp-detail__ticks::before {
  content: "";
  position: absolute;
  /* Bottom-aligned with the centre cluster, as on the board. */
  inset-block-end: 0;
  height: var(--e50lp-tick-height);
  /* Three times the ruler's width and centred, so translating it never drags
     an end into view. The pitch is an absolute length rather than 100%/75
     for the same reason: at triple width that percentage would triple too. */
  inset-inline: -100%;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.7) 0 2px,
    transparent 2px var(--e50lp-tick-pitch)
  );
  /* The ruler is what moves when the entry changes: the ticks travel under
     the fixed centre marker, the way a scale passes a needle.

     A transform, not background-position. Both move the ticks, but only a
     transform is handed to the compositor - background-position is repainted
     on the main thread every frame, which is what made the settle judder.

     --e50lp-ruler-pos is set from JS and counted in ticks: whole entries at
     rest, plus a fraction while a gesture is in flight, so the ruler previews
     where the swipe will land. */
  transform: translateX(calc(var(--e50lp-ruler-pos, 0) * var(--e50lp-tick-pitch) * -1));
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.e50lp-detail__ruler::after {
  content: "";
  position: absolute;
  /* Three bars in one element: the tall centre mark and the two shorter ones
     a pitch either side. They belong to the fixed indicator, so unlike the
     ticks above they do not travel with --e50lp-ruler-pos. */
  inset-inline: 0;
  inset-block-end: 0;
  height: var(--e50lp-needle-height);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95));
  background-size:
    2px var(--e50lp-needle-height),
    2px var(--e50lp-needle-side),
    2px var(--e50lp-needle-side);
  /* +1px: a 2px bar at 50% has its left edge at half-width minus one, while
     the tick grid's edge falls on half-width exactly. */
  background-position:
    calc(50% + 1px) bottom,
    calc(50% - var(--e50lp-tick-pitch) + 1px) bottom,
    calc(50% + var(--e50lp-tick-pitch) + 1px) bottom;
  background-repeat: no-repeat;
}

/* ---- below the desktop board's breakpoint ---- */

/* While the finger is down the ruler must track it, not ease behind it. */
.e50lp-detail__stage--swiping .e50lp-detail__ticks::before {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-detail__ticks::before { transition: none; }
}

@media (max-width: 1023px) and (orientation: portrait), (max-width: 1023px) and (pointer: coarse), (max-width: 639px) {
  /* Above the tab strip on a phone, where the board's layering cannot hold.
     The board is 1920x1080 and shows the strip sitting over the popup, which
     is why this is z-index 1 on the desktop tier - see the note at the top.
     A phone is 664px tall: the popup's close button lands at y78-94 there
     while the strip's box ends at 99, so the strip swallowed the tap and the
     reader had no way out of the popup at all. A modal that cannot be closed
     beats design fidelity, so on this tier only, the popup wins.

     The strip's box, not its tabs, is what intercepts - it carries 40px of
     padding above the labels. Making the strip pointer-events: none the way
     the desktop tier does is not open here: this one scrolls sideways, and
     that gesture needs the whole strip to stay touchable. */
  .e50lp-detail { z-index: var(--e50lp-popup-z, 3); }

  /* The video's edges: a swipe can start here while the YouTube player has the
     middle. Not the bottom bar (play/pause, scrub, volume) and not the corner
     the Stop button sits in. */
  .e50lp-detail--playing .e50lp-detail__swipezone {
    display: block;
    position: absolute;
    top: 0;
    bottom: 48px;
    width: 22%;
    touch-action: pan-y;
  }

  .e50lp-detail--playing .e50lp-detail__swipezone--start { left: 0; }
  .e50lp-detail--playing .e50lp-detail__swipezone--end { right: 0; }

  /* A card sliding in from the side must not be able to widen the popup. */
  .e50lp-detail { overflow: hidden; }

  .e50lp-detail__ghost {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .e50lp-detail__ghost[hidden] { display: none; }

  .e50lp-detail {
    --e50lp-s: calc(100vw * 1920 / 1195);
    /* Stretch, not centre. The stage has to fill the popup for the year
       strip and the ruler to sit at the foot of it; the card is centred by
       the grid's own slack row instead, which it was relying on this for. */
    align-items: stretch;
  }

  .e50lp-detail__stage {
    width: 100%;
    height: auto;
    min-block-size: 100%;
    padding-block: 24px;
  }

  /* Relative, not static.
  
     These carry absolutely positioned children - the nav its chevron, the
     ruler its travelling ticks - and taking the containing block away sent
     both to the nearest positioned ancestor, which is the stage. Measured:
     the chevron computed to left 187.5px, top 406px, dead centre of a
     375x812 popup, so both arrows drew their mark on top of the headline
     and the buttons themselves were empty 44px boxes. Only the board
     positioning needed clearing, not the containing block. */
  .e50lp-detail__nav,
  .e50lp-detail__years,
  .e50lp-detail__ruler {
    position: relative;
    inset: auto;
    transform: none;
  }

  /* Deliberately not in the transform: none group above - the card's
     transform is the swipe follow, not board positioning, and swiping
     matters most at this width. */
  .e50lp-detail__card {
    position: static;
    inset: auto;
  }

  .e50lp-detail__card {
    position: relative;
    width: calc(100% - (var(--e50lp-gutter) * 2));
    height: auto;
    aspect-ratio: auto;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
  }

  /* The image keeps the board's ratio; the text drops below it rather than
     over it, so it cannot cover the play control at phone width. */
  .e50lp-detail__frame {
    position: relative;
    inset: auto;
    aspect-ratio: 1195 / 674;
    border-radius: var(--e50lp-radius);
    overflow: hidden;
    background-color: #12172f;
  }

  /* A fixed height, not the content's own - every entry's body runs a
     different length (69px to 174px measured across the current copy), and
     this sits in the stage's 1fr row alongside the image above it. Letting
     it size to content meant the grid row's slack, and so the card's
     vertical centring within it, recalculated on every page: the picture
     itself visibly rose and fell as a reader moved between a short entry and
     a long one, even though neither the image nor its position had actually
     changed. Pinning the height removes the card's one variable dimension,
     so the picture sits still and only the text underneath it can move.
     180px covers every entry today with room to spare, not tuned to the
     tightest fit, so the gap below the body is slack for a shorter entry,
     not a near-miss; overflow-y is the backstop for copy that outgrows it
     later, not an expected everyday state. */
  .e50lp-detail__text {
    position: static;
    inset: auto;
    margin-block-start: 16px;
    height: 200px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    /* Stated here, not left to the stage's own pan-y. A scroll container
       decides its touch-action for itself - the stage's rule stops at the
       nearest scroller - so a drag that began on the copy was handed to the
       browser as a pan and the popup got a pointercancel after one move:
       swiping over the text paged nothing, while the picture, the year strip
       and the ruler all did. Only vertical panning (reading the copy) belongs
       to the browser; sideways is the popup's swipe. */
    touch-action: pan-y;
  }

  /* Arabic runs taller at the leading above: the longest entry (2026's "Fifty
     Years Forward") measured exactly 180px - a fit with nothing to spare, so
     a slightly wider Arabic face on a real phone would tip it into the
     scrollbar. 200px gave it room, then the client's longer replacement 2026
     copy and its longer 1994 heading (up to three lines) outgrew that too:
     measured at 205px in Arabic and 195px in English at a 360px phone, so
     the two heights are now 200 and 220. */
  .e50lp-root[dir="rtl"] .e50lp-detail__text { height: 220px; }

  /* A row for the card, then a row for the controls.
     
     The navs used to float - prev inline-start, next inline-end - and floats
     do not make a row out of elements that are not adjacent. prev comes
     before the card in the DOM, so it floated to the top and the card wrapped
     around it: measured at 375px, prev sat at x0/y190 over the left of the
     photograph and next at x331/y537, a full 350px below its pair.

     A grid puts them where a thumb expects them without touching the DOM
     order, which the flight and the live region both depend on. The card
     keeps the full width - swiping is the real navigation at this size, and
     flanking arrows would have taken 88px of a 375px screen off the picture
     to duplicate it. */
  .e50lp-detail__stage {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "card  card  card"
      "prev  years next"
      "ruler ruler ruler";
    align-items: center;
    justify-items: center;
    row-gap: 16px;
  }

  .e50lp-detail__card { grid-area: card; }
  .e50lp-detail__nav--prev { grid-area: prev; }
  .e50lp-detail__nav--next { grid-area: next; }
  .e50lp-detail__years { grid-area: years; }
  .e50lp-detail__ruler { grid-area: ruler; }

  .e50lp-detail__nav {
    width: var(--e50lp-tap);
    height: var(--e50lp-tap);
    margin-block-start: 0;
  }

  /* Inside the same gutter the card keeps. The grid's outer columns start at
     the stage's own edge, which put the back arrow hard against the side of
     the screen while the picture above it began 16px in. */
  .e50lp-detail__nav--prev { margin-inline-start: var(--e50lp-gutter); }
  .e50lp-detail__nav--next { margin-inline-end: var(--e50lp-gutter); }

  .e50lp-detail__years {
    /* The grid's row-gap spaces this now; the old top margin was pushing it
       clear of floated navs that are no longer floating. */
    margin-block-start: 0;
    gap: 40px;
    font-size: var(--e50lp-size-pill);
    /* The board's fade span (108 of 1920) scales with --e50lp-s, which here
       resolves against the viewport: ~34px at 375px wide, while the
       neighbouring labels sit ~70px either side of the active one. They
       landed past the end of the mask at its 6% floor - effectively gone,
       where the desktop strip shows both. Fixed in px for the same reason the
       gap above is: it has to track where the labels actually sit, and they
       are not laid out from the board down here. 110px puts a neighbour
       around 0.4, the same legibility as the board's. */
    --e50lp-years-fade: 110px;
  }

  /* ---- controls sized for a thumb, not for the board -------------------
     Both of these take their size from --e50lp-s, which on this tier resolves
     against the viewport rather than the 1920 board. At 375px that puts the
     close button at 15px square and the play control at 25px - a third of
     the 44px this component uses everywhere else, and the close button is
     the one control a reader has to be able to hit. Stop shares Close's
     rules for the same reason it shares its base ones in the desktop block
     above: same corner, same reasons to be a proper tap target - it would
     be just as unreachable left at the board's own math down here. */
  .e50lp-detail__close,
  .e50lp-detail__stop,
  .e50lp-detail__play {
    width: var(--e50lp-tap);
    height: var(--e50lp-tap);
  }

  /* Inset from the frame's corner by a thumb's width rather than the
     board's 32px, which scaled down to 10px here. */
  .e50lp-detail__close,
  .e50lp-detail__stop {
    inset-block-start: 8px;
    inset-inline-end: 8px;
    /* Smaller to look at, the same size to hit. The padding is not painted -
       background-clip keeps the fill inside the content box - so the circle
       reads at 32px while the button stays a 44px target. Shrinking the
       button itself would put us back where this started, at a close control
       a thumb cannot reliably land on. */
    padding: 6px;
    background-clip: content-box;
  }

  /* ---- the play control --------------------------------------------------
     The ring was given a thumb's size and the triangle inside it was not:
     its borders are drawn from --e50lp-s, so on a 44px ring the glyph came out
     5.5px wide and 6px tall - a large empty circle with a speck in it.
     Sized against the ring instead, at roughly the board's own proportion of
     glyph to circle. */
  .e50lp-detail__play::before {
    border-block-width: 8px;
    border-left-width: 13px;
  }

  /* The chevron is drawn from the board too, so it came out 5.3px inside a
     44px button. */
  .e50lp-detail__nav::before {
    width: 10px;
    height: 10px;
  }

  /* The glyph was drawn from the board too, so it shrank with the button. */
  .e50lp-detail__close::before,
  .e50lp-detail__close::after,
  .e50lp-detail__stop::before,
  .e50lp-detail__stop::after {
    width: 14px;
    height: 1.5px;
  }

  .e50lp-detail__play { border-width: 2px; }

  /* ---- text across the card, not down one side of it -------------------
     The headline and body carry a max-width measured off the board - 490
     and 660 of 1920 - and the phone tier overrode their type size without
     it. At 375px that capped the headline at 154px and the body at 207px
     inside a 343px card: a narrow column of text with half the card empty
     beside it. */
  .e50lp-detail__headline,
  .e50lp-detail__body {
    max-width: none;
  }

  .e50lp-detail__ruler {
    /* Relative, not static.
    
       The travelling ticks are an absolutely positioned layer with inset: 0,
       so they are drawn against the nearest positioned ancestor - and the
       group above had taken that away. Measured: the ruler's own box was
       518x24 at y723 while its ticks were 550x544 starting at y227, a layer
       most of the screen tall hanging off the stage. Nothing was visible in
       the ruler, which is why the popup had no timeline on it at all. */
    position: relative;
    width: calc(100% - (var(--e50lp-gutter) * 2));
    height: 24px;
    /* Sits at the foot of the popup, 60px clear of the bottom, with the
       year strip directly above it - asked for, and it also stops the two
       floating in the middle of a screen with 275px of nothing underneath
       them. */
    margin: 0 auto;
  }

  /* The year strip and the ruler travel together to the bottom. The grid's
     last row takes whatever height is left, so pushing that row's content
     down is what puts them there. */
  .e50lp-detail__stage {
    /* The card's row takes the slack, which centres it in whatever is left
       once the strip and the ruler have taken their place at the bottom. */
    grid-template-rows: 1fr auto auto;
    padding-block-end: 60px;
  }

  .e50lp-detail__years { margin-block-start: 32px; }

  /* ---- the years at the card's edges -------------------------------------
     Drawn from the board as well, which put them at 5.6px - a four-digit
     year in a 12x6 box. They name the entries either side, so they have to
     be readable at arm's length. */
  .e50lp-detail__edgeyear {
    font-size: var(--e50lp-size-pill);
  }

  .e50lp-detail__headline { font-size: 18px; }
  /* The leading has to come with the size. The board's rule sets both from
     --e50lp-s, which on this tier resolves against the viewport rather than the
     1920 board - so overriding the size alone left 15px type on 6.5px of
     leading, and every body in the popup printed its lines on top of one
     another. Stated as a ratio here so the two can never come apart again. */
  .e50lp-detail__body {
    font-size: 14px;
    line-height: 1.5;
  }
  .e50lp-detail__text { gap: 8px; }
}

/* ---- shared-element flight ----

   The carousel card grows into this card, and shrinks back into a card on
   close. See docs/superpowers/specs/2026-09-17-popup-shared-element-design.md.

   The flyer is a single <img> carrying the same poster. It is appended to the
   document body, not to this popup: on close the popup's own fade takes it to
   display: none well before the flight lands, which would cut the flyer off
   mid-air if it were a child.

   It animates top/left/width/height rather than a transform, deliberately -
   matching the deck card's 3:2 to this card's 1.773:1 needs a non-uniform
   scale, which distorts the photograph, and counter-scaling the image instead
   turns the zoom into a curtain reveal. Animating the box lets `cover`
   re-crop, which is the motion the design asks for. The cost is that this is
   not compositor-accelerated; it is one element, and the e2e measures it. */
.e50lp-detail {
  --e50lp-flight-open: 420ms;
  --e50lp-flight-close: 260ms;
  /* How long the opening flyer takes to dissolve into the real card's own
     picture, once the move above has finished - see e50lp-detail-card-arrive
     below and the matching CROSSFADE_MS in e50lp-detail.js's fly(). 260ms,
     not the 180ms this started at: the card's image, headline and body are
     all one fade (see below), invisible for the whole move and then revealed
     in one go, and 180ms of that read as a flash on a phone rather than a
     fade. Kept in sync with CROSSFADE_MS by hand: the flyer lives on the
     body and cannot read this var (see the note in .e50lp-detail__flyer), so
     JS carries its own copy of the number rather than this one. */
  --e50lp-crossfade: 260ms;
}

/* No duration here, deliberately. The flyer lives on the document body so the
   popup going to display: none cannot cut its flight off - and custom
   properties inherit down the DOM, so --e50lp-flight-* declared on .e50lp-detail
   never reaches it. A var() that resolves to nothing invalidates the whole
   shorthand and the transition is dropped silently, which is an instant jump
   rather than a flight. e50lp-detail.js reads the duration off .e50lp-detail,
   where it is declared once, and sets it inline. */
.e50lp-detail__flyer {
  position: fixed;
  z-index: 3;
  margin: 0;
  object-fit: cover;
  pointer-events: none;
  will-change: top, left, width, height;
  transition-property: top, left, width, height, border-radius;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* The same gentle ease-in-out the popup's own close uses, for the reason
   recorded there: the exact reverse of the entry curve holds the box still
   and then snaps it. A curve, not a duration, so it can live here. */
.e50lp-detail__flyer--closing {
  transition-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
}

/* While a flyer is in the air the real card holds still and waits: the flyer
   is providing the movement, so the card's own rise would be a second,
   conflicting one. It only starts revealing itself once the flyer's own move
   has finished (animation-delay: the flight duration) and dissolves in over
   --e50lp-crossfade - the same two numbers e50lp-detail.js uses to fade the
   flyer out from the other side, so the two meet in the middle rather than
   one outlasting the other. Kept as a plain fade on its own delay rather than
   the flight's one combined keyframe: the box the flyer travels can change
   length (--e50lp-flight-open is overridable), and a delay reads off that var
   directly where a keyframe's percentage stops cannot. */
@keyframes e50lp-detail-card-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

.e50lp-detail[data-flight="in"] .e50lp-detail__card {
  transform: none;
  animation: e50lp-detail-card-arrive var(--e50lp-crossfade)
    cubic-bezier(0.22, 1, 0.36, 1) var(--e50lp-flight-open) both;
}

/* Closing, the flyer stands in for the card from the first frame, so the card
   simply is not there. No fade: two copies of the same picture cross-fading
   over each other only muddies it. */
.e50lp-detail[data-flight="out"] .e50lp-detail__card {
  transform: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-detail__flyer { transition: none; }

  .e50lp-detail[data-flight="in"] .e50lp-detail__card {
    animation: none;
    opacity: 1;
  }
}
/* The documentary and campaign views: one hero card with its copy laid over
   it. Sized from the same board coordinates the detail popup uses - card
   1195x674 of 1920x1080, close 49x49 at its top right, play 81x81 centred -
   so the two read as the same object at the same scale. */

.e50lp-feature {
  --e50lp-s: min(100vw, 1920px, calc(100vh * 1920 / 1080));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.e50lp-feature__card {
  position: relative;
  width: calc(var(--e50lp-s) * 1195 / 1920);
  border-radius: calc(var(--e50lp-s) * 24 / 1920);
  overflow: hidden;
  /* Scale, on top of the plain crossfade every .e50lp-view now gets from
     02-base.css - see that file's own comment for why the fade itself lives
     there and not here: Documentary and Campaign used to carry their own
     copy of it, and Calendar not having a matching one turned out to be
     exactly what read as a flicker on switching away from it.

     Scale only here, not a second opacity fade alongside this element's own
     - opacity compounds through ancestors, and layering a second 0->1 fade
     on top of the view wrapper's multiplied the two together (0.5 view x
     0.5 card = 0.25 rendered, not 0.5), which stayed visibly dim for most of
     the animation and then snapped bright at the very end - measured live,
     and it read exactly like a flicker in its own right. One opacity source
     is enough to make the card invisible until the wrapper lets it show
     through. */
  transform: scale(1);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.e50lp-view[data-view-id="documentary"][hidden] .e50lp-feature__card,
.e50lp-view[data-view-id="campaign"][hidden] .e50lp-feature__card {
  transform: scale(0.96);
  transition: transform 200ms cubic-bezier(0.45, 0, 0.55, 1);
}

@starting-style {
  .e50lp-view[data-view-id="documentary"]:not([hidden]) .e50lp-feature__card,
  .e50lp-view[data-view-id="campaign"]:not([hidden]) .e50lp-feature__card {
    transform: scale(0.88);
  }
}

@media (prefers-reduced-motion: reduce) {
  .e50lp-feature__card {
    transition: none;
  }
  .e50lp-view[data-view-id="documentary"][hidden] .e50lp-feature__card,
  .e50lp-view[data-view-id="campaign"][hidden] .e50lp-feature__card {
    transform: none;
  }
}

/* The media fills the card rather than keeping its own 16:9 - the board's
   card is a little squarer than that, and letterboxing it inside would read
   as a second frame within the frame. */
.e50lp-feature .e50lp-media {
  aspect-ratio: 1195 / 674;
  border-radius: inherit;
}

.e50lp-feature .e50lp-media__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 81px on the board, against the media component's 44px tap target. Sized
   rather than scaled: scale() takes a number, and --e50lp-s is a length, so
   dividing it down still leaves a length - calc(var(--e50lp-s) * 81 / 1920 / 44)
   is invalid inside scale(), which drops the whole declaration and takes the
   centring translate with it. The button ended up 44px and off-centre.
   Setting the box leaves the base rule's transform, its rtl variant and the
   focus ring exactly as they are everywhere else. */
.e50lp-feature .e50lp-media__play {
  width: calc(var(--e50lp-s) * 81 / 1920);
  height: calc(var(--e50lp-s) * 81 / 1920);
  border-width: calc(var(--e50lp-s) * 2 / 1920);
}

/* The triangle is drawn from borders, so it has to grow with the ring. */
.e50lp-feature .e50lp-media__play::before {
  border-block-width: calc(var(--e50lp-s) * 13 / 1920);
  border-left-width: calc(var(--e50lp-s) * 21 / 1920);
}

/* The copy sits on the picture, so it carries its own ground: a scrim from
   the foot of the card, dark enough to hold white type over any frame the
   client supplies without dimming the whole image. */
.e50lp-feature__text {
  position: absolute;
  inset-inline-start: calc(var(--e50lp-s) * 40 / 1920);
  inset-block-end: calc(var(--e50lp-s) * 40 / 1920);
  inset-inline-end: calc(var(--e50lp-s) * 40 / 1920);
  display: flex;
  flex-direction: column;
  gap: calc(var(--e50lp-s) * 8 / 1920);
  pointer-events: none;
}

.e50lp-feature__card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 55%;
  background-image: linear-gradient(
    to top,
    rgba(4, 6, 16, 0.85) 0%,
    rgba(4, 6, 16, 0.55) 45%,
    rgba(4, 6, 16, 0) 100%
  );
  pointer-events: none;
}

.e50lp-feature__text { z-index: 1; }

.e50lp-feature__title {
  margin: 0;
  font-size: calc(var(--e50lp-s) * 56 / 1920);
  line-height: 1.05;
  font-weight: 700;
  color: var(--e50lp-text);
}

.e50lp-feature__headline {
  margin: 0;
  font-size: calc(var(--e50lp-s) * 22 / 1920);
  line-height: 1.3;
  color: var(--e50lp-text);
}

.e50lp-feature__dates {
  margin: 0;
  font-size: calc(var(--e50lp-s) * 22 / 1920);
  line-height: 1.3;
  font-weight: 700;
  color: var(--e50lp-text);
}

/* .e50lp-feature__stop is the same control in the same corner, for a
   different moment - close leaves the view, stop only ends the video
   playing inside it (renderVideo()/clearVideo() in e50lp-feature.js hide one
   and show the other, the same pattern the detail popup's Close/Stop
   pair uses), so the two are never on screen together. Sharing every rule
   below is what keeps them sharing a look automatically. */
.e50lp-feature__close,
.e50lp-feature__stop {
  position: absolute;
  inset-block-start: calc(var(--e50lp-s) * 28 / 1920);
  inset-inline-end: calc(var(--e50lp-s) * 28 / 1920);
  width: calc(var(--e50lp-s) * 49 / 1920);
  height: calc(var(--e50lp-s) * 49 / 1920);
  min-width: 44px;
  min-height: 44px;
  z-index: 2;
  border: 0;
  border-radius: 50%;
  /* Dark, not a white wash. The card behind it is whatever frame the client
     supplies, and a translucent white disc with a white glyph disappeared
     completely over a light one - which is most of the documentary's
     black-and-white footage. A dark disc reads over both. */
  background-color: rgba(4, 6, 16, 0.55);
  color: var(--e50lp-text);
  /* Floored the same way width/height are two lines up: --e50lp-s tracks the
     viewport below the 1920 board, so on a phone it was drawing the ring at
     a real 44px (min-width/min-height caught that) while the "×" glyph
     inside it, sized from the same board math with no floor of its own, kept
     shrinking - about 4px at 375px wide, a circle with no visible mark in
     it. max() never exceeds the board's own 20px (--e50lp-s is itself capped
     at 1920), so above the floor this is identical to the plain calc(). */
  font-size: max(20px, calc(var(--e50lp-s) * 20 / 1920));
  cursor: pointer;
}

.e50lp-feature__stop[hidden] { display: none; }

.e50lp-feature__close::before,
.e50lp-feature__stop::before { content: "\00d7"; }

.e50lp-feature__close:focus-visible,
.e50lp-feature__stop:focus-visible {
  outline: 2px solid var(--e50lp-accent);
  outline-offset: 2px;
}

/* The node renderVideo() mounts (e50lp-feature.js) - an <iframe>, or the
   "not yet available" notice built by e50lp-player.js's buildMedia(). Matches
   the detail popup's own iframe rule: border-radius directly on the node
   itself, not only on an ancestor's overflow: hidden - an <iframe> is
   composited on its own layer in Chrome, and a layer promoted like that can
   paint past an ancestor's rounded clip instead of being cut by it. */
.e50lp-feature .e50lp-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

/* Playing: the poster's own overlay content - the play ring and the
   title/headline/dates - has nothing left to say once the picture itself is
   playing, so it steps aside. Stop stays (it is what the CSS above swaps in
   for Close): it is the only way back. */
.e50lp-feature--playing .e50lp-media__play,
.e50lp-feature--playing .e50lp-feature__text {
  display: none;
}

/* The phone tier. The board's proportions stop making sense once the card is
   most of the screen: it goes taller than it is wide, and the type drops to
   sizes meant to be read at arm's length rather than scaled off a 1920 grid. */
@media (max-width: 1023px) and (orientation: portrait), (max-width: 1023px) and (pointer: coarse), (max-width: 639px) {
  .e50lp-feature__card {
    width: calc(100% - (var(--e50lp-gutter) * 2));
    border-radius: 16px;
  }

  .e50lp-feature .e50lp-media { aspect-ratio: 3 / 4; }

  .e50lp-feature .e50lp-media__play {
    width: 64px;
    height: 64px;
    border-width: 2px;
  }

  .e50lp-feature .e50lp-media__play::before {
    border-block-width: 10px;
    border-left-width: 16px;
  }

  .e50lp-feature__text {
    inset-inline: 20px;
    inset-block-end: 24px;
    gap: 6px;
  }

  .e50lp-feature__title { font-size: 32px; }
  .e50lp-feature__headline,
  .e50lp-feature__dates { font-size: var(--e50lp-size-body); }

  .e50lp-feature__close,
  .e50lp-feature__stop {
    inset-block-start: 16px;
    inset-inline-end: 16px;
  }
}

/* The harness's PLACEHOLDER badge sits in the card's top corner, and this
   card is rounded far more than the deck's - enough of the corner is clipped
   away to eat the first letter. Nudge it inside the curve. Development aid
   only: it is gated on .e50lp-root--placeholders and never ships. */
.e50lp-root--placeholders .e50lp-feature .e50lp-media:has(.e50lp-media__poster)::after {
  inset-block-start: calc(var(--e50lp-s) * 14 / 1920);
  inset-inline-start: calc(var(--e50lp-s) * 14 / 1920);
  border-radius: 4px;
}
/* The opening sequence. e50lp-intro.js writes data-intro on .e50lp-root,
   toggles HERO_CLASS on whichever card is centred when it runs, and sets
   --e50lp-intro-delay on every other on-screen entry from its ring out along
   the story; the whole choreography is here.

   Every property the cards move on - lift, tilt, scale, wipe, fade - is
   declared in 04-timeline.css, composed into the carousel's own transform
   and opacity. This file only sets them. It must never write `transform` or
   `opacity` on a card: the carousel rewrites both on every scroll frame,
   and the last author to touch the declaration wins. */

/* Identity values, so a component with no JS - or one already past its
   opening - renders exactly as it did before this file existed. */
.e50lp-root {
  --e50lp-intro-lift: 0px;
  --e50lp-intro-tilt: 0deg;
  --e50lp-intro-scale: 1;
  --e50lp-intro-fade: 1;
  --e50lp-intro-wipe: 1;
}

/* Registered so the hero's own zoom (below) can run as a keyframe animation
   with a guaranteed starting point. It has to be an animation rather than a
   transition: stageCards() marks the hero and flips the phase to 'wordmark'
   in the same synchronous tick (see e50lp-intro.js), so the entry never
   actually renders with this file's own hero resting state below - a
   transition would see it still wearing the *non-hero* resting values
   (0.9 scale, 32px lift, no tilt at all) as its "before", and barely move.
   An animation defines its own 0% state outright, independent of whatever
   the entry's computed style happened to be a moment earlier. Registering
   the property is what lets it interpolate smoothly through that animation
   rather than jumping at each keyframe stop. */
@property --e50lp-intro-lift {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}
@property --e50lp-intro-tilt {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}
@property --e50lp-intro-scale {
  syntax: '<number>';
  inherits: true;
  initial-value: 1;
}

/* The two curves. The cards settle with a little overshoot, because arriving
   dead on the mark is what made the first attempt read as flat; everything
   else uses the decelerating curve the rest of the component moves on. */
.e50lp-root[data-intro] {
  --e50lp-intro-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --e50lp-intro-land: cubic-bezier(0.25, 1.15, 0.45, 1);
}

/* The deck takes no input until the sequence is over. The skip listener
   deliberately does not stop propagation - swallowing the press would mean
   the component decided what the press was for - so without this the same
   tap that dismissed the animation carried on into the card underneath and
   opened the popup for an entry sitting at opacity 0. Dismissing an
   animation must not act on something nobody could see.
   The first press skips; the next one interacts.

   data-intro reaching 'done' is only the cards settling into place, not the
   deck coming to rest - root.dataset.showcase (e50lp-init.js) marks the sweep
   that follows, out to the last entry and back, which is what actually lands
   the deck on 1974. Without naming it here too, that whole sweep was already
   clickable: a tap mid-sweep could open whatever entry happened to be
   scrolling past, or fight the auto-scroll outright. Same reasoning the tabs
   already get below - not interactive until the reader has actually watched
   the deck come to rest, not just until it exists. */
.e50lp-root[data-intro='loading'] .e50lp-timeline,
.e50lp-root[data-intro='wordmark'] .e50lp-timeline,
.e50lp-root[data-intro='cards'] .e50lp-timeline,
.e50lp-root[data-showcase] .e50lp-timeline {
  pointer-events: none;
}

/* The tabs used to stay live and visible throughout the sequence, on the
   reasoning that they are how someone leaves without watching it - asked to
   reverse that: the tabs are hidden and inert until the reader has actually
   seen the whole opening, not just until the deck has formed. That is two
   holds, not one: data-intro reaching 'done' is only the cards settling into
   place - root.dataset.showcase (e50lp-init.js) marks the following sweep out
   to the last entry and back, which is what actually lands the deck on 1974,
   and the tabs wait for that to clear too. The toggle (.e50lp-tabs__toggle) is
   a sibling of .e50lp-tabs, not a child of it (see e50lp-init.js's own
   root.append order), so it is named here too - without it the phone tier
   would still show a working hamburger over a menu that is not there yet. */
.e50lp-root[data-intro='loading'] .e50lp-tabs,
.e50lp-root[data-intro='wordmark'] .e50lp-tabs,
.e50lp-root[data-intro='cards'] .e50lp-tabs,
.e50lp-root[data-showcase] .e50lp-tabs,
.e50lp-root[data-intro='loading'] .e50lp-tabs__toggle,
.e50lp-root[data-intro='wordmark'] .e50lp-tabs__toggle,
.e50lp-root[data-intro='cards'] .e50lp-tabs__toggle,
.e50lp-root[data-showcase] .e50lp-tabs__toggle {
  opacity: 0;
  pointer-events: none;
}

/* Revealed once the sequence actually reaches 'done' AND the showcase sweep
   that follows it has cleared - a plain fade rather than a hard pop-in,
   since the deck itself is what draws the eye at that instant (landing back
   on 1974), and a sudden appearance beside it would compete rather than
   simply arrive alongside it.

   No pointer-events here, on purpose - only opacity. Setting `auto` on
   .e50lp-tabs itself used to win the cascade over 03-tabs.css's own desktop
   rule (`.e50lp-root:has(.e50lp-timeline--desktop) .e50lp-tabs { pointer-
   events: none }`, the empty strip must not swallow clicks meant for the
   deck below it), since this file loads after that one - caught live, a
   click on the strip's own empty padding landed back on .e50lp-tabs instead
   of passing through to the card underneath, once the sequence had finished.
   Leaving pointer-events alone here lets it simply revert to whatever
   03-tabs.css already establishes (none on the container plus auto on each
   .e50lp-tabs__tab, desktop only; the browser's own default auto everywhere
   else, .e50lp-tabs__toggle included) once these selectors' hidden
   counterparts above stop matching. */
.e50lp-root[data-intro='done']:not([data-showcase]) .e50lp-tabs,
.e50lp-root[data-intro='done']:not([data-showcase]) .e50lp-tabs__toggle {
  opacity: 1;
  transition: opacity 500ms var(--e50lp-intro-ease);
}

/* Nothing is shown until the imagery has decoded. The background is the page
   itself, so a held frame reads as a pause rather than as a blank. */
.e50lp-root[data-intro='loading'] .e50lp-timeline,
.e50lp-root[data-intro='loading'] .e50lp-ghost {
  opacity: 0;
}

/* The caption names the centred card, so it used to come in last, once the
   hero had landed and the fan was on its way out - naming a card that had
   not arrived would have been worse than naming nothing.

   Held on its own two elements now, not the caption block as a whole: the
   title and the subhead reveal separately, one after the other (further
   down this file), and a parent still sitting at opacity: 0 would multiply
   through onto both of them regardless of what either one's own opacity
   says. :not(.e50lp-timeline__caption--revealed) is what lets the reveal
   rules below take over once e50lp-init.js marks the caption for it - the
   same shape as the per-card hold above, just on the caption's own two
   children instead of a whole entry. */
.e50lp-root[data-intro='loading'] .e50lp-timeline__title,
.e50lp-root[data-intro='wordmark'] .e50lp-timeline__title,
.e50lp-root[data-intro='cards'] .e50lp-timeline__title,
.e50lp-root[data-intro='done'] .e50lp-timeline__caption:not(.e50lp-timeline__caption--revealed) .e50lp-timeline__title,
.e50lp-root[data-intro='loading'] .e50lp-timeline__subhead,
.e50lp-root[data-intro='wordmark'] .e50lp-timeline__subhead,
.e50lp-root[data-intro='cards'] .e50lp-timeline__subhead,
.e50lp-root[data-intro='done'] .e50lp-timeline__caption:not(.e50lp-timeline__caption--revealed) .e50lp-timeline__subhead {
  opacity: 0;
  transform: scale(0.85) translateY(6px);
}

/* The reveal: the title first, the subhead a small beat behind it - once
   e50lp-init.js marks the caption --revealed (timed to the active card's own
   year/centre-mark/tether reveal above finishing, not a fixed guess at how
   long that takes). Scale and lift on top of the plain fade this used to
   be, on request - var(--e50lp-intro-land) is the same settle-with-a-little-
   overshoot curve the rest of the component lands on, so the pill pops
   into place rather than just fading in flat. */
.e50lp-timeline__caption--revealed .e50lp-timeline__title {
  /* transition is a shorthand, so redeclaring it here - needed for the
     reveal's own opacity/transform - would otherwise silently wipe out the
     padding-inline-start/-end transition 04-timeline.css puts on the base
     rule for the hover answer: this selector outranks that one on
     specificity (two classes against one) and --revealed is permanent from
     the moment the intro adds it, so its transition list is the only one
     ever in effect from then on. Traced live and confirmed - without this,
     hovering after the reveal snapped the pill straight to its hover width
     with no interpolation at all. */
  transition:
    opacity 420ms var(--e50lp-intro-ease),
    transform 420ms var(--e50lp-intro-land),
    padding-inline-start 320ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-inline-end 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.e50lp-timeline__caption--revealed .e50lp-timeline__subhead {
  transition:
    opacity 420ms var(--e50lp-intro-ease) 150ms,
    transform 420ms var(--e50lp-intro-land) 150ms;
}

/* On initial load - every card, hero included - the centre mark (the ringed
   dot on the image) and its tether line are switched off in favour of the
   year sitting directly on the image's own middle. Neither is part of the
   card's own fade/scale composition (--e50lp-intro-fade etc., composed in
   04-timeline.css) - they are the carousel's permanent UI, styled in
   05-media.css and 04-timeline.css respectively - so this reaches in and
   hides them outright, the same way the rules above reach the caption/tabs/
   ghost directly rather than through a composed property.

   Held through 'done' as well as the three running phases - but only until
   e50lp-init.js marks an entry .e50lp-timeline__entry--revealed (once the
   post-intro showcase has carried the deck back to its first card): the
   :not() below is what lets the reveal rules further down simply take over
   for a revealed entry, rather than fighting these for it.

   opacity, not display, for the connector and node: the deck's own
   settle-detection (carousel-motion's settled() helper, and the same logic
   drawTether()/the node's own ring choreography lean on) watches for the
   e50lp-tether-draw and e50lp-node-ring animations via document.getAnimations()
   - which never fire on a display:none element, so a display:none
   connector/node silently broke every test that waits on them, well beyond
   this component's own tests. Opacity hides them just as completely
   without stopping the animation.

   The pillwrap's own block-size is what actually does the work here,
   pinned to the year's own rendered height (35px on the desktop tier, 28px
   on the phone one - see 04-timeline.css's own .e50lp-timeline__year rules
   for where those come from) rather than left at its normal floating
   height. A block-size transition sounds like the thing this file's own
   header warns against, but the warning there is about *auto* specifically
   - block-size transitions perfectly well between two explicit lengths,
   which this is on both ends (a fixed px here, a calc() of --e50lp-pill-rise
   and --e50lp-lift once revealed - see 04-timeline.css). A first attempt at
   this held the pillwrap at its full normal height and only translated it
   into place instead, on the reasoning that transform is always safe where
   sizing properties are not - true as far as it went, but a translated
   box's own footprint still counts toward an ancestor's scrollable
   overflow regardless of whether anything in it is visible, and moving a
   ~300px box most of its own height off its resting position pushed the
   deck's scrollHeight out with it. Shrinking the box for real, to
   something that never had to move far in the first place, is what avoids
   that rather than working around it.

   transform: translateY(50%) then carries the (now year-sized) box the
   rest of the way, from "hanging off the centre line" to sitting on it:
   moving a box from bottom-anchored to centred on that same anchor is
   exactly half of its own height, whatever that height currently is - the
   one place a percentage transform is the right tool, since it is always
   relative to the box's own (explicit) size rather than needing to know
   that size up front. */
.e50lp-root[data-intro='loading'] .e50lp-timeline__connector,
.e50lp-root[data-intro='wordmark'] .e50lp-timeline__connector,
.e50lp-root[data-intro='cards'] .e50lp-timeline__connector,
.e50lp-root[data-intro='done'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--revealed) .e50lp-timeline__connector {
  opacity: 0;
}

.e50lp-root[data-intro='loading'] .e50lp-media__node,
.e50lp-root[data-intro='wordmark'] .e50lp-media__node,
.e50lp-root[data-intro='cards'] .e50lp-media__node,
.e50lp-root[data-intro='done'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--revealed) .e50lp-media__node {
  opacity: 0;
}

/* inset-block-start: auto is not redundant here - the phone tier's own
   base rule (04-timeline.css) sets both ends of inset-block explicitly
   (top *and* bottom, unlike the desktop tier's auto-start), and adding an
   explicit block-size on top of two explicit insets over-constrains the
   box: the spec then discards one of the insets to resolve it, bottom in
   an LTR document, which is the 50% anchor this whole thing depends on.
   Freeing inset-block-start back to auto first is what keeps bottom: 50%
   in force instead of losing it to that resolution. */
.e50lp-root[data-intro='loading'] .e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__pillwrap,
.e50lp-root[data-intro='wordmark'] .e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__pillwrap,
.e50lp-root[data-intro='cards'] .e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__pillwrap,
.e50lp-root[data-intro='done'] .e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__entry:not(.e50lp-timeline__entry--revealed) .e50lp-timeline__pillwrap {
  inset-block-start: auto;
  block-size: 28px;
  transform: translateY(50%);
}

.e50lp-root[data-intro='loading'] .e50lp-timeline--desktop .e50lp-timeline__pillwrap,
.e50lp-root[data-intro='wordmark'] .e50lp-timeline--desktop .e50lp-timeline__pillwrap,
.e50lp-root[data-intro='cards'] .e50lp-timeline--desktop .e50lp-timeline__pillwrap,
.e50lp-root[data-intro='done'] .e50lp-timeline--desktop .e50lp-timeline__entry:not(.e50lp-timeline__entry--revealed) .e50lp-timeline__pillwrap {
  block-size: 35px;
  transform: translateY(50%);
}

/* 04-timeline.css turns pointer-events back on for the year specifically -
   only needed so it takes its own :hover, which never mattered for clicks
   while it floated clear of the card above. Sitting on the image now, it
   would otherwise catch the tap meant for the card underneath it.

   --e50lp-pill-scale is what the fan normally tapers the pill down by,
   distance from the centre card - set as an inline style on the entry
   (e50lp-timeline.js, recomputed every scroll frame) and read here through
   inheritance. Declaring it again directly on the year itself overrides
   that inherited value outright, on every card at once: at its own normal
   size, not the taper, is the size this step wants - the reveal is what
   lets each card go back to its own actual (tapered) size afterwards. */
.e50lp-root[data-intro='loading'] .e50lp-timeline__year,
.e50lp-root[data-intro='wordmark'] .e50lp-timeline__year,
.e50lp-root[data-intro='cards'] .e50lp-timeline__year,
.e50lp-root[data-intro='done'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--revealed) .e50lp-timeline__year {
  pointer-events: none;
  --e50lp-pill-scale: 1;
}

/* The reveal. Once e50lp-init.js marks an entry --revealed, the three holds
   above simply stop matching for it - what plays here is each element
   easing back to its own ordinary rule (04-timeline.css / 05-media.css),
   not something this file computes itself. The centre mark fades in, the
   tether draws itself in - not by any animation of its own, but simply by
   existing again: once the pillwrap's own block-size transitions back to
   its full floating height, the connector's flex: 1 1 auto (04-timeline.css)
   naturally grows to fill the new space as that transition plays, frame by
   frame, which reads as the line drawing itself in without this file
   having to choreograph that separately. The pillwrap itself rises back
   off the image to its normal floating position carrying the year with
   it, and the year eases from the flat size the hold fixed it at back to
   its own actual, fan-tapered size.

   --e50lp-reveal-delay (e50lp-init.js) is 0 on the card the deck opens on and a
   small stagger on every other one, rippling outward from it - the same
   shape as the cards-phase reveal, just a smaller gap, since this is a
   coda rather than the main event. */
.e50lp-timeline__entry--revealed .e50lp-timeline__connector {
  transition: opacity 420ms var(--e50lp-intro-ease) var(--e50lp-reveal-delay, 0ms);
}

.e50lp-timeline__entry--revealed .e50lp-media__node {
  transition: opacity 420ms var(--e50lp-intro-ease) var(--e50lp-reveal-delay, 0ms);
}

/* The phone tier's own pillwrap rule (04-timeline.css) never sets
   block-size explicitly - it sizes the box from its two insets instead
   (top and bottom both set), leaving the block-size property itself at its
   auto default. That is fine for layout, but a transition needs an
   explicit length on both ends to interpolate, and the "used height comes
   from inset math while the property stays auto" way of sizing a box does
   not count as one here even though the box's own rendered height is a
   perfectly definite number - measured, this just snapped straight to it
   instead of easing there. Restating that same math as an explicit
   block-size, matching what 04-timeline.css's own insets already compute,
   is what gives the transition below two real lengths to interpolate
   between. The desktop tier needs no equivalent: its own pillwrap rule
   already states block-size explicitly. */
.e50lp-timeline:not(.e50lp-timeline--desktop) .e50lp-timeline__entry--revealed .e50lp-timeline__pillwrap {
  /* Same over-constraint as the hold rule's own comment further up: without
     this, the base rule's explicit inset-block-start comes back alongside
     the explicit block-size just added, and bottom: 50% is what would be
     discarded to resolve it again. */
  inset-block-start: auto;
  /* --e50lp-lift subtracted, exactly as 04-timeline.css's own insets now add
     it: this restates that math as a length so the reveal has something to
     transition, and the two have to agree or the pills jump at the moment
     the reveal hands over. It is what drops each pill to follow its own
     card - every card is scaled about the deck's one centre line, so a
     smaller card has a lower top edge, and without this the neighbours'
     years hung further and further above their pictures. */
  block-size: calc(50% + var(--e50lp-card-drop, 0px) + 51px - var(--e50lp-lift, 0px));
}

.e50lp-timeline__entry--revealed .e50lp-timeline__pillwrap {
  transition:
    block-size 550ms var(--e50lp-intro-land) var(--e50lp-reveal-delay, 0ms),
    transform 550ms var(--e50lp-intro-land) var(--e50lp-reveal-delay, 0ms);
}

.e50lp-timeline__entry--revealed .e50lp-timeline__year {
  transition: transform 550ms var(--e50lp-intro-land) var(--e50lp-reveal-delay, 0ms);
}

/* The hero's own resting state before it arrives: small and out of focus,
   scaled to 30% ready to zoom to 100%. */
.e50lp-root[data-intro='loading'] .e50lp-timeline__entry--intro-hero,
.e50lp-root[data-intro='wordmark'] .e50lp-timeline__entry--intro-hero {
  --e50lp-intro-fade: 0;
  --e50lp-intro-lift: 64px;
  --e50lp-intro-tilt: 26deg;
  --e50lp-intro-scale: 0.3;
}

/* Every other on-screen card stays hidden, below its own resting position
   and slightly smaller, until the hero has had the screen to itself - then
   each rises into place one at a time (its own --e50lp-intro-delay, set from
   its ring out along the story), fading in with a small scale-up rather
   than the hero's own dramatic 30%-to-100% zoom. Held here through loading
   and wordmark both, same as the hero's own resting state above, since
   nobody but the hero is meant to be visible yet. */
.e50lp-root[data-intro='loading'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--intro-hero),
.e50lp-root[data-intro='wordmark'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--intro-hero) {
  --e50lp-intro-fade: 0;
  --e50lp-intro-lift: 32px;
  --e50lp-intro-scale: 0.9;
}

.e50lp-root[data-intro='loading'] {
  --e50lp-intro-wipe: 0;
}

/* The rule draws first now, not last: asked for the line to establish
   itself and the hero card to land on it, rather than being ruled in under
   an already-assembled fan. wipe flips to 1 the moment wordmark begins, and
   the transition below is what makes that a draw rather than a snap. Scoped
   to wordmark alone: cards and done both inherit the finished, fully-drawn
   value as their own identity rather than re-triggering the animation. */
.e50lp-root[data-intro='wordmark'] {
  --e50lp-intro-wipe: 1;
}

.e50lp-root[data-intro='wordmark'] .e50lp-timeline__ticks {
  transition: transform 900ms var(--e50lp-intro-ease) 120ms;
}

/* blur() is scoped to the phases that use it rather than left at 0 on the
   card for good: a filter creates a containing block and a stacking context
   whatever its value, and this component has already been bitten once by a
   compositing change it did not ask for. Past `done` there is no filter.
   Hero-only, like the resting state above - every other card is never
   blurred at all. */
.e50lp-root[data-intro='loading'] .e50lp-timeline__entry--intro-hero .e50lp-media,
.e50lp-root[data-intro='wordmark'] .e50lp-timeline__entry--intro-hero .e50lp-media {
  filter: blur(10px);
}

/* ---- the hero: the single card the sequence opens on --------------------
   Placed after the blur() rule above on purpose: both now share the exact
   same selector for the wordmark phase, so which one wins is decided by
   source order rather than anything more principled - the later rule wins
   a tie, and this is that later rule. Asked for the opening year to arrive
   alone, zoomed in from the centre, before anything else does. e50lp-intro.js
   marks whichever card is actually first on screen with this class; every
   other card is untouched, rendering at its own normal position and size
   throughout rather than following the hero on any stagger of its own.

   A single, plain zoom: 30% scale to 100%, fading in, everything the entry
   contains (image, pill, connector) arriving together rather than staged
   as separate beats. Removed a more elaborate cascade that stopped here
   first (a centre mark, a drawn connector line, an oversized year shrinking
   to size, the image held back until all of that had settled), and then a
   second one after that (every other card starting stacked behind the hero
   and released with a lean, staggered ring by ring) by request, in favour
   of this.

   Tried an overshoot past 100% (to 150%) before settling back, on request -
   reverted just as quickly, also on request, once that overshoot turned out
   to clip the card against its own frame. Landing directly on 100%, with
   the plain decelerating curve rather than the bounce one (--e50lp-intro-land,
   used elsewhere in this file), is what keeps the zoom from ever exceeding
   the card's own bounds.

   A keyframe animation, not a transition - see the @property comment above
   for why a transition alone silently fails to zoom from anywhere close to
   30%. */
@keyframes e50lp-intro-hero-land {
  0% {
    --e50lp-intro-lift: 64px;
    --e50lp-intro-tilt: 26deg;
    --e50lp-intro-scale: 0.3;
  }
  100% {
    --e50lp-intro-lift: 0px;
    --e50lp-intro-tilt: 0deg;
    --e50lp-intro-scale: 1;
  }
}

.e50lp-root[data-intro='wordmark'] .e50lp-timeline__entry--intro-hero {
  --e50lp-intro-fade: 1;
  animation: e50lp-intro-hero-land 850ms var(--e50lp-intro-ease) forwards;
}

.e50lp-root[data-intro='wordmark'] .e50lp-timeline__entry--intro-hero .e50lp-media {
  filter: blur(0);
  transition:
    opacity 700ms var(--e50lp-intro-ease),
    filter 700ms var(--e50lp-intro-ease);
}

/* The pill fades in alongside the card - quick, and starting at the same
   moment - rather than carrying any staged reveal of its own. The
   connector and year are not listed here at all: neither has an
   independent transition any more, so they simply appear with the
   pillwrap that fades them in, at whatever size the fan already puts them
   at (04-timeline.css is explicit that the year's own scale is never
   transitioned, since it is recomputed from scroll position every frame). */
.e50lp-root[data-intro='wordmark'] .e50lp-timeline__entry--intro-hero .e50lp-timeline__pillwrap {
  transition: opacity 420ms var(--e50lp-intro-ease);
}

/* The wordmark. The tabs used to be named here too, arriving with it rather
   than waiting for the deck - see the tabs' own reveal, now held to 'done'
   instead, further up this file for why that changed. */
.e50lp-root[data-intro='wordmark'] .e50lp-ghost,
.e50lp-root[data-intro='cards'] .e50lp-ghost,
.e50lp-root[data-intro='done'] .e50lp-ghost {
  opacity: 1;
  transition: opacity 950ms var(--e50lp-intro-ease);
}

/* A focus pull rather than a fade: the wordmark resolves out of the
   background the way a title does on film, which is the register the archive
   footage behind it is in. */
.e50lp-root[data-intro='wordmark'] .e50lp-ghost {
  animation: e50lp-intro-wordmark 1500ms var(--e50lp-intro-ease) both;
}

/* The shift is carried through both keyframes. An animation overrides the
   base transform for as long as it runs, so writing a bare translateY(-50%)
   here dropped the parallax offset for the length of the wordmark phase and
   the wordmark jumped back into place when the animation ended. */
@keyframes e50lp-intro-wordmark {
  from {
    transform:
      translateX(var(--e50lp-lean-ghost-x, 0px))
      translateY(calc(-50% + var(--e50lp-parallax-ghost, 0px) + var(--e50lp-lean-ghost-y, 0px)))
      scale(1.16);
    opacity: 0;
    filter: blur(18px);
    letter-spacing: 0.08em;
  }
  to {
    transform:
      translateX(var(--e50lp-lean-ghost-x, 0px))
      translateY(calc(-50% + var(--e50lp-parallax-ghost, 0px) + var(--e50lp-lean-ghost-y, 0px)))
      scale(1);
    opacity: 1;
    filter: blur(0);
    letter-spacing: normal;
  }
}

.e50lp-root[data-intro='wordmark'] .e50lp-timeline {
  opacity: 1;
}

/* The deck's own chrome becomes visible once cards begins - the timeline
   container, the caption above. */
.e50lp-root[data-intro='cards'] .e50lp-timeline,
.e50lp-root[data-intro='done'] .e50lp-timeline {
  opacity: 1;
}

/* The hero's own zoom is already finished by the time this phase begins,
   so nothing further is declared for it here - falling back to the
   .e50lp-root identity (fade: 1, lift: 0, scale: 1) is exactly where it
   already is. Every other on-screen card rises into place now, one at a
   time by its own --e50lp-intro-delay. */
.e50lp-root[data-intro='cards'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--intro-hero) {
  --e50lp-intro-fade: 1;
  --e50lp-intro-lift: 0px;
  --e50lp-intro-scale: 1;
}

.e50lp-root[data-intro='cards'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--intro-hero) .e50lp-media {
  transition:
    opacity 450ms var(--e50lp-intro-ease) var(--e50lp-intro-delay, 0ms),
    transform 550ms var(--e50lp-intro-land) var(--e50lp-intro-delay, 0ms);
}

/* The pill rises and fades in with its own card, at the same delay. */
.e50lp-root[data-intro='cards'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--intro-hero) .e50lp-timeline__pillwrap {
  transition: opacity 450ms var(--e50lp-intro-ease) var(--e50lp-intro-delay, 0ms);
}

/* Reduced motion: the imagery is still waited for - that is about painting
   the right thing - but nothing travels, tilts, scales or blurs. One fade,
   and the component is there. The sequencer also collapses its phases, so
   this is belt and braces for a preference that changes mid-session. */
@media (prefers-reduced-motion: reduce) {
  .e50lp-root[data-intro] {
    --e50lp-intro-lift: 0px;
    --e50lp-intro-tilt: 0deg;
    --e50lp-intro-scale: 1;
    --e50lp-intro-wipe: 1;
  }

  .e50lp-root[data-intro='loading'] {
    --e50lp-intro-fade: 0;
  }

  /* The non-hero resting state above sets lift/scale with a selector that
     is more specific than the generic reset just above - class plus :not()
     against a bare attribute selector - so it would otherwise win the tie
     and keep travelling/scaling even under reduced motion. Matching its
     exact selector here, later in the file, is what lets this reset win
     instead. */
  .e50lp-root[data-intro='loading'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--intro-hero),
  .e50lp-root[data-intro='wordmark'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--intro-hero) {
    --e50lp-intro-lift: 0px;
    --e50lp-intro-scale: 1;
  }

  /* The hero's own wordmark rule runs a keyframe animation now (see the
     @property comment above for why a transition can't be trusted here), so
     without an explicit override it would still play in full under reduced
     motion. Same specificity, later in the file, wins the tie the same way
     the rule above does. */
  .e50lp-root[data-intro='wordmark'] .e50lp-timeline__entry--intro-hero {
    animation: none;
    --e50lp-intro-lift: 0px;
    --e50lp-intro-tilt: 0deg;
    --e50lp-intro-scale: 1;
  }

  .e50lp-root[data-intro='loading'] .e50lp-timeline__entry--intro-hero .e50lp-media,
  .e50lp-root[data-intro='wordmark'] .e50lp-timeline__entry--intro-hero .e50lp-media {
    filter: none;
  }

  .e50lp-root[data-intro='wordmark'] .e50lp-ghost {
    animation: none;
  }

  /* Every card still arrives in the same order - the hero alone, then
     everyone else one at a time - that part is not travel, it is order,
     but nothing about any arrival moves, tilts or scales. Belt and braces
     with the identity reset above, the same as the rest of this block: the
     sequencer also collapses its phases, so this covers a preference that
     changes mid-session too. */
  .e50lp-root[data-intro='wordmark'] .e50lp-timeline__entry--intro-hero .e50lp-media,
  .e50lp-root[data-intro='wordmark'] .e50lp-timeline__entry--intro-hero .e50lp-timeline__pillwrap,
  .e50lp-root[data-intro='wordmark'] .e50lp-timeline__ticks,
  .e50lp-root[data-intro='cards'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--intro-hero) .e50lp-media,
  .e50lp-root[data-intro='cards'] .e50lp-timeline__entry:not(.e50lp-timeline__entry--intro-hero) .e50lp-timeline__pillwrap {
    transition: opacity 200ms linear;
  }

  .e50lp-root[data-intro] .e50lp-ghost,
  .e50lp-root[data-intro] .e50lp-tabs {
    transition: opacity 200ms linear;
  }
}

/* ---------------------------------------------------------------------------
   The loader: the fifty years counting past while the imagery decodes.

   The wait is the story rather than a spinner laid over it. e50lp-loader.js
   writes the year and --e50lp-loader-progress; the number never reaches the
   last year until the content has arrived, so the count landing IS the
   component being ready rather than a coincidence timed to look like it.
   --------------------------------------------------------------------------- */

.e50lp-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  /* Above the held component, below nothing else - the popup and the player
     cannot be open before the opening has finished. */
  z-index: 2;
  pointer-events: none;
  /* It is removed from the DOM when the count lands, so this only has to
     cover the count itself. */
  opacity: 1;
  transition: opacity 420ms var(--e50lp-intro-ease, ease-out);
}

/* Present but not counting - the sequence was skipped, or there is no JS to
   run it. Never a number sitting over a finished component.

   Two attributes, because two independent callers create their own loader
   instance and set their own phase: e50lp-init.js's own intro walks
   data-intro, but demo/timeline.html builds a loader directly and walks
   data-opening instead, to hold the count-up before the space scene even
   starts - reusing this element without also reusing the collision
   data-opening was split off to avoid (see e50lp-opening.js). Either phase
   attribute reading 'loading' is enough to keep this loader visible. */
.e50lp-root:not([data-intro='loading']):not([data-opening='loading']) .e50lp-loader {
  opacity: 0;
}

.e50lp-loader__year {
  margin: 0;
  font-family: var(--e50lp-font);
  /* Thin at this size: the year is large because it is the only thing on
     screen, not because it is shouting. Weight 100 has a real face behind
     it - the css-contract test fails on a weight with no file, since the
     browser answers that by faking the stroke. */
  font-weight: 100;
  font-size: clamp(64px, 12vw, 180px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--e50lp-text);
  /* Tabular, or the number jitters sideways as it counts: the digits of a
     proportional face are different widths, and 1974 through 2026 changes
     every digit several times a second. */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* The rule fills as the count runs, from the same progress the number is
   drawn from, so the two cannot disagree. */
.e50lp-loader__rule {
  position: relative;
  display: block;
  width: min(260px, 40vw);
  height: 1px;
  background-color: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.e50lp-loader__rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--e50lp-text);
  /* Logical, so the fill grows from the start edge in both directions -
     left to right in English, right to left in Arabic. */
  transform-origin: inset-inline-start;
  transform: scaleX(var(--e50lp-loader-progress, 0));
}

/* transform-origin takes no logical keyword, so the rtl case is written out.
   Same exception, and the same reason, as the flag bar's gradient. */
.e50lp-loader__rule::after { transform-origin: left center; }
[dir='rtl'] .e50lp-loader__rule::after { transform-origin: right center; }

/* The count is decoration over a component that is about to move a great
   deal. Reduced motion keeps the number - it is information, not flourish -
   and stops the rule sliding. */
@media (prefers-reduced-motion: reduce) {
  .e50lp-loader { transition: none; }
  .e50lp-loader__rule::after { transition: none; }
}

/* The line under the count. Quiet: the year is what is being watched, and
   this only has to say why it is moving. */
.e50lp-loader__message {
  margin: 0;
  font-family: var(--e50lp-font);
  font-weight: 300;
  font-size: var(--e50lp-size-body);
  letter-spacing: 0.06em;
  color: var(--e50lp-text-muted);
  text-align: center;
  max-width: min(420px, 78vw);
}
/* The opening's scenery: the space the reader arrives through, and the light
   that settles over it. e50lp-opening.js builds the two layers and writes
   data-opening on the root; every frame of the motion is here.

   Both plates are the client's own artwork. space.png is a burst of streaks
   radiating from the centre - the shape of travelling towards something -
   and e50lp-bg-overlay-shadow.webp is the soft light that settles once the travelling
   stops. */

/* The ground the whole opening happens on. Flat, and named here rather than
   left to the component's own background artwork: the sequence starts on a
   colour, and the space arrives later as its own event. */
.e50lp-root {
  --e50lp-opening-ground: #191f49;
}

.e50lp-opening {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  /* Opaque, so it covers the component's background plate. The opening owns
     what is on screen for as long as it is mounted - which, asked for it to
     stand as the backdrop for everything rather than being cleared away
     once it settles, is now indefinitely. */
  background-color: var(--e50lp-opening-ground);
  /* 0, not 1 as this used to be - the two only ever needed to differ from
     the preloader's count (z-index 2 in 12-intro.css), which is still true
     at 0. What changed is everything else this can now share a page with:
     asked for this to sit behind the carousel rather than hand over to it,
     and most of the carousel's own content is positioned with no z-index of
     its own (.e50lp-timeline__inner, for one) - which paints at exactly the
     same level as z-index: 0, ahead of plain unpositioned content but not
     ahead of another explicit stacking context. z-index: 1 sat above that
     level regardless of paint order, which put this in front of the cards
     rather than behind them the moment it was left mounted rather than
     torn down. 0 ties it with them instead, and it being first in the DOM
     - built before the carousel ever mounts - settles that tie behind. */
  z-index: 0;
}

/* The field fills the box and is sliced by its own preserveAspectRatio, so
   nothing here has to oversize it the way a background plate needed. */
.e50lp-opening__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* One colour for every streak: the line elements carry their own opacity
     and width, which is what varies them, and a single currentColor means
     the whole field can be retinted from one declaration. */
  color: #6f86ff;
  overflow: visible;
}

.e50lp-opening__field line {
  stroke: currentColor;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* Scaled about the burst's own centre, named in user units rather than as a
   percentage.

   `50% 50%` looked right and was not: with transform-box: view-box the
   percentage resolved from user-space zero rather than from the viewBox's
   own corner, giving an origin of (100,100) - the bottom-right of a viewBox
   that runs -100..100. The field scaled about its corner and the burst's
   centre drifted up and to the left as it grew, which reads as the camera
   sliding sideways rather than flying forward.
   
   The viewBox is centred on the origin precisely so this can be `0 0`, which
   is unambiguous, needs no arithmetic, and holds at any aspect ratio. */
.e50lp-opening__layer {
  transform-box: view-box;
  transform-origin: 0 0;
  will-change: transform, opacity;
}

/* Edge to edge, deliberately: the plate is a vignette whose own falloff has
   to land on the frame's corners to read as one. Bled out past the frame
   (it was inset -20%) only the bright core stayed on screen and the picture
   became a flat wash - the shadow was painting, just never where it shows.
   The arrival's scale lives in the keyframes instead, where it is temporary. */
.e50lp-opening__glow {
  position: absolute;
  inset: 0;
  background-image: url("/content/dam/eand/anniversary/img/e50lp/e50lp-bg-overlay-shadow.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  will-change: transform, opacity;
}

/* ---- the preloader is on the flat ground ----------------------------------
   Nothing but the colour and the count. The space is not shown yet, out of
   focus or otherwise: it is the next thing that happens, and showing a
   preview of it under the years would spend the arrival before it arrives. */
.e50lp-root[data-opening='loading'] .e50lp-opening__field {
  opacity: 0;
}

.e50lp-root[data-opening='loading'] .e50lp-opening__layer {
  transform: scale(1.02);
}

/* ---- the field arrives: a fade, nothing else moving it -------------------
   Used to carry a second animation here too - a zoom-in/pull-back/settle
   envelope on the field, composing multiplicatively with the travel below.
   Asked for that, then measured it: field scale and layer scale are two
   independent curves running at once, and their PRODUCT - what the reader
   actually sees - went 1.02 -> 1.24 -> 0.92 -> climbing continuously from
   there. Two reversals in the first 400ms, on top of a travel that is
   already its own smooth, monotonic acceleration from rest. That reads as
   the zoom restarting partway through, not as one flight - "repeating",
   not "a flow". Removed rather than tuned down: any non-zero pull-back
   multiplied onto an already-accelerating travel reproduces the same
   reversal at a smaller scale, and the travel's own curve is already a
   complete, self-contained "arrival" with nothing else needed on top of it.

   The fade used to be staggered per streak too, so the field filled in a
   few lines at a time. Asked to remove that as well (a thousand <line>
   elements each finishing their own short fade read as flickering, not a
   field arriving) - so this is what is left: one fade on the group, each
   streak keeping the opacity it was drawn at, nothing scaling. */
.e50lp-root[data-opening='space'] .e50lp-opening__field {
  animation: e50lp-opening-field-fade 700ms ease-out both;
}

@keyframes e50lp-opening-field-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- the travel -----------------------------------------------------------
   The blur lifts and the streaks rush outward past the viewer. Two layers,
   at two speeds: the near ones travel almost twice as far as the far ones
   over the same time, which is the parallax a single scaled picture cannot
   have. This is the whole reason the field is drawn rather than photographed.

   Scale is what carries it. Every streak already points away from the
   centre, so growing the group from that centre moves each one along its
   own line - the direction it is already drawn in. */
/* The curve leaves fast and is still moving when the phase ends - end slope
   0.36, where the old cubic-bezier(0.32, 0, 0.18, 1) parked at zero. The
   travel used to come to a complete stop and the overlay then pinned it
   there with a static transform, so the flight ended before the light that
   is supposed to be settling over it had begun. The drift below picks the
   motion up at exactly this speed.

   20400ms: 3400 -> 6800 (doubled) -> 20400 (tripled again), asked each time
   to give the flight more room. cubic-bezier(0.05, 0.65, 0.5, 0.82), not
   the original (0.3, 0, 0.5, 0.82): asked for the flight to start fast
   rather than ease in from rest, since a slow ease-in that used to read as
   a brief build-up over ~1s now crawls for a very visible stretch of a
   20400ms flight. Only the first control point moved. A cubic bezier's
   exit slope depends only on its second control point relative to (1,1) -
   (0.5, 0.82) is unchanged here - so the end speed the drift below picks up
   from is exactly what it always was; changing the start alone cannot
   touch it. */
.e50lp-root[data-opening='space'] .e50lp-opening__layer--far {
  animation: e50lp-opening-travel-far 20400ms cubic-bezier(0.05, 0.65, 0.5, 0.82) both;
}

.e50lp-root[data-opening='space'] .e50lp-opening__layer--near {
  animation: e50lp-opening-travel-near 20400ms cubic-bezier(0.05, 0.65, 0.5, 0.82) both;
}

@keyframes e50lp-opening-travel-far {
  from { transform: scale(1.02) rotate(0deg); }
  to { transform: scale(1.5) rotate(-1.4deg); }
}

/* Used to dim as it grew (opacity 1 -> 0.55 here, continuing to 0.34 over
   the drift) - meant as the near streaks receding once they'd swept past,
   but stacked on top of the glow's own low-opacity outer layer
   (GLOW_LAYERS in e50lp-opening.js) it left the near field reading as mostly
   gone by the time the sequence settles, not merely dimmer. Asked for the
   opposite: streaks that stay visible once the flight is over, so the
   layer's own opacity is untouched now and each streak's brightness is
   exactly what starfield() drew it at. */
@keyframes e50lp-opening-travel-near {
  from { transform: scale(1.02) rotate(0deg); }
  to { transform: scale(2.6) rotate(-3.2deg); }
}

/* Past the travel the streaks keep going, and coast to rest under the light
   rather than stopping the instant it arrives.

   Each drift starts exactly where its travel ended and carries on at the
   speed it was handed over at. Real-world velocity is distance / duration *
   the curve's own slope, and the curve's slope is fixed by its control
   points regardless of duration - so when the travel's own duration grew
   from 2000ms to 3400ms (a factor of 1.7) the drift's duration grew from
   4000ms to 6800ms by the same factor; when it doubled to 6800ms the drift
   doubled to 13600ms; now that it has tripled again to 20400ms the drift
   triples again too, to 40800ms - every distance and both curves left
   untouched each time (the travel's own easing changed above, but not its
   end slope - see that comment - so this match still holds). Scaling both
   sides of the seam equally is what keeps them equal; the far and near
   layers still travel different distances here because that ratio, not
   either absolute number, is what the match depends on. Measured in the
   browser: end-of-travel and start-of-drift agree to within 0.5% for both
   layers. The drift ends at zero slope, so the scene comes to rest on its
   own instead of being stopped.

   Both phases carry identical animation declarations, so the attribute
   flipping from overlay to done re-resolves to the same computed value and
   the drift runs through it uninterrupted rather than restarting. */
.e50lp-root[data-opening='overlay'] .e50lp-opening__field,
.e50lp-root[data-opening='done'] .e50lp-opening__field {
  opacity: 1;
}

.e50lp-root[data-opening='overlay'] .e50lp-opening__layer--far,
.e50lp-root[data-opening='done'] .e50lp-opening__layer--far {
  animation: e50lp-opening-drift-far 40800ms cubic-bezier(0.33, 0.5, 0.6, 1) both;
}

.e50lp-root[data-opening='overlay'] .e50lp-opening__layer--near,
.e50lp-root[data-opening='done'] .e50lp-opening__layer--near {
  animation: e50lp-opening-drift-near 40800ms cubic-bezier(0.33, 0.5, 0.6, 1) both;
}

@keyframes e50lp-opening-drift-far {
  from { transform: scale(1.5) rotate(-1.4deg); }
  to { transform: scale(1.73) rotate(-2.07deg); }
}

@keyframes e50lp-opening-drift-near {
  from { transform: scale(2.6) rotate(-3.2deg); }
  to { transform: scale(3.35) rotate(-4.72deg); }
}

/* ---- the light settles - the shadow arrives before the wordmark does -----
   Originally asked to feel the depth, sharing time on screen with the tail
   end of the flight rather than switching on once the travel was over -
   the rise ran 1400ms before the space phase ended. Since moved earlier
   still, to 0ms (see animation-delay below): the shadow now has to be
   there before "Years of more" is, so the words fade in over a source
   that is already glowing rather than the other way round.

   The two pieces are one eased curve, cut in half by time (700ms would have
   done the same job at a different midpoint - 1400/1400 was chosen because
   it is a third of the 4200ms the glow now spans, leaving the other two
   thirds for the settle to be felt once the light is the only thing left
   moving) and reassembled exactly rather than approximated: de Casteljau
   subdivision of cubic-bezier(0.4, 0, 0.25, 1) at the point half its time
   has elapsed gives two new cubic beziers that reproduce the original curve
   on each half, so position AND slope agree at the join by construction -
   there is no seam to measure, unlike the streaks' handoff above, where two
   independently-authored curves had to be tuned to meet.

   The split lands at 74.6% of the fade (not 50%, because the master curve
   itself eases in) - opacity 0.746, scale 1.0305 - which is where the rise
   below ends and the continue starts. Neither number is designed; both fall
   out of the subdivision. */
.e50lp-root[data-opening='space'] .e50lp-opening__glow {
  animation: e50lp-opening-glow-rise 1400ms cubic-bezier(0.5365, 0, 0.5783, 0.6029) both;
  /* Moved from 19000ms (the 20400ms space phase minus the 1400ms lead
     described above) to 0, on request: the shadow should be there before
     "Years of more" is, not arrive alongside the light near the end of the
     flight. At 0 the rise finishes by 1400ms, a clear 600ms ahead of
     GHOST_WORD_START_MS below - so every word starts fading in over a
     shadow that has already risen to its 74.6% mark, rather than the
     reverse. The glow then holds there, unmoving, until the space phase
     ends and glow-continue below picks it up. */
  animation-delay: 0ms;
}

.e50lp-root[data-opening='overlay'] .e50lp-opening__glow,
.e50lp-root[data-opening='done'] .e50lp-opening__glow {
  animation: e50lp-opening-glow-continue 1400ms cubic-bezier(0.2071, 0.5729, 0.5059, 1) both;
}

@keyframes e50lp-opening-glow-rise {
  from { opacity: 0; transform: scale(1.12); }
  to { opacity: 0.746; transform: scale(1.0305); }
}

@keyframes e50lp-opening-glow-continue {
  from { opacity: 0.746; transform: scale(1.0305); }
  to { opacity: 1; transform: scale(1); }
}

/* ---- the wordmark arrives, word by word, before the flight is done -------
   Same words, same position as the carousel's own .e50lp-ghost (02-base.css/
   12-intro.css) - not the same element. That one is walked by data-intro,
   this one by data-opening; sharing it would reproduce the exact collision
   data-opening was split off to fix (see e50lp-opening.js).

   Starts at a flat 2000ms mark - no longer tied to the glow's own start
   (that now moves with the space phase's own duration; this does not, on
   purpose, so the words are always well underway early in the flight
   regardless of how long the flight itself has grown to). Each word is
   staggered 180ms after the last by --e50lp-opening-ghost-i (set once per
   word in e50lp-opening.js); three words at 400ms each finishes by ~2760ms,
   comfortably inside the first half of the (now 20400ms) `space` phase. */
.e50lp-opening__ghost {
  position: absolute;
  inset-block-start: 42%;
  inset-inline: 0;
  transform: translateY(-50%);
  margin: 0;
  text-align: center;
  font-size: 11vw;
  font-weight: 500;
  line-height: 1;
  color: var(--e50lp-ghost);
  pointer-events: none;
  user-select: none;
}

.e50lp-opening__ghost-word {
  display: inline-block;
  opacity: 0;
}

/* Identical declaration on all three phases (the drift/glow pattern above)
   so the attribute moving from `space` to `overlay` to `done` re-resolves to
   the same computed animation and the words hold at rest instead of losing
   the rule and snapping back to the unconditional opacity: 0 above.

   No colour or glow here any more, and no separate settle animation either
   - asked to remove the white bloom entirely, so the word is var(--e50lp-ghost)
   (inherited from .e50lp-opening__ghost) throughout, the same colour at
   arrival as at rest. Only scale, opacity, blur and letter-spacing move.

   forwards, not both: `both` also fills *backwards*, applying the
   keyframe's `from` state for the whole delay before it starts - harmless
   while that `from` opacity was 0 (the same as the unconditional opacity: 0
   above), but at 0.8 it would make every word visible, at scale 1.5, from
   the very start of the phase rather than only once its own delay below has
   actually elapsed. forwards still holds the finished (opacity: 1) state
   afterward, which is the only fill behaviour this needed. */
.e50lp-root[data-opening='space'] .e50lp-opening__ghost-word,
.e50lp-root[data-opening='overlay'] .e50lp-opening__ghost-word,
.e50lp-root[data-opening='done'] .e50lp-opening__ghost-word {
  animation: e50lp-opening-ghost-word 400ms cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
  animation-delay: calc(2000ms + var(--e50lp-opening-ghost-i, 0) * 180ms);
}

/* Holding this element at opacity: 1 forever, the way the words above do,
   would carry the same text forward as a second, independent copy of it once
   the carousel's own .e50lp-ghost arrives on top: one static, one riding the
   carousel's own parallax lean, drifting apart from it on the first pointer
   move rather than reading as one piece of text. `done` is much too late to
   fade it there - revealCarousel() (timeline.html's own script) fires on
   ghostLanded(), which is this element's own 2760ms last-word-arrives mark
   plus GHOST_STAY_MS (300ms): 3060ms, well inside the 20400ms `space` phase.
   That is the instant the carousel's own copy starts mounting, so this one
   starts handing off there instead, not at `done`.

   2500ms of fade comfortably outlasts everything revealCarousel() still has
   to do before the carousel's own copy is fully opaque: initCarousel()'s own
   image-decode gate, then its intro's `wordmark` phase, which spends 1200ms
   holding before a 1500ms landing animation of its own (e50lp-intro.js /
   12-intro.css) - worst case, a second or so past this element reaching 0,
   which reads as the tail of one settle, not a gap. */
.e50lp-root[data-opening='space'] .e50lp-opening__ghost,
.e50lp-root[data-opening='overlay'] .e50lp-opening__ghost,
.e50lp-root[data-opening='done'] .e50lp-opening__ghost {
  animation: e50lp-opening-ghost-handoff 2500ms cubic-bezier(0.2071, 0.5729, 0.5059, 1) forwards;
  animation-delay: 3060ms;
}

@keyframes e50lp-opening-ghost-handoff {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 150% down to actual size, 0.8 opacity up to full: asked for a quick zoom
   that starts already mostly visible rather than fading up from nothing,
   landing at exactly the position it was always going to be at - only
   scale, opacity, blur and letter-spacing move here, never a translate. */
@keyframes e50lp-opening-ghost-word {
  from {
    transform: scale(1.5);
    opacity: 0.8;
    filter: blur(18px);
    letter-spacing: 0.08em;
  }
  to {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
    letter-spacing: normal;
  }
}

/* Someone who has asked for less motion still gets the scene - the space and
   the light are what the page looks like, not decoration on top of it. They
   simply arrive without travelling. */
@media (prefers-reduced-motion: reduce) {
  .e50lp-root[data-opening='loading'] .e50lp-opening__field { opacity: 0; }
  .e50lp-root[data-opening='space'] .e50lp-opening__field,
  .e50lp-root[data-opening='overlay'] .e50lp-opening__field,
  .e50lp-root[data-opening='done'] .e50lp-opening__field {
    animation: none;
    opacity: 1;
  }
  .e50lp-root[data-opening] .e50lp-opening__layer {
    animation: none;
    transform: none;
    opacity: 1;
  }
  .e50lp-root[data-opening='space'] .e50lp-opening__glow,
  .e50lp-root[data-opening='overlay'] .e50lp-opening__glow,
  .e50lp-root[data-opening='done'] .e50lp-opening__glow {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .e50lp-root[data-opening] .e50lp-opening__ghost-word {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    letter-spacing: normal;
  }
  /* No fade, and no 3060ms wait either: nothing else in this block travels
     under reduced motion, so the carousel's own .e50lp-ghost is already in its
     own settled, final-opacity state as soon as it mounts (12-intro.css's
     own reduced-motion handling) - there is no landing animation on its side
     left to bridge to, so this one has no reason to wait before stepping
     aside for it. */
  .e50lp-root[data-opening] .e50lp-opening__ghost {
    animation: none;
    opacity: 0;
  }
}
/* Phone-tier landscape is locked out: the whole composition (the deck, the
   popup, the two feature cards) is built for portrait at this breakpoint, and
   none of it re-lays-out for a wide-short viewport - see 04-timeline.css,
   10-detail.css and 11-feature.css's own "max-width: 1023px" tiers, all of
   which assume the narrow dimension is width. Rather than have the
   experience half-render sideways, this covers it with the one message.

   Deliberately still `max-width`, not `max-height`, with `orientation` doing
   the gating instead: width is a phone's long axis in landscape too (an
   iPhone tops out around 930px there), so the same 1023px line still means
   "phone tier" once rotated. Switching to max-height instead would key off
   viewport HEIGHT, which an ordinary laptop window also satisfies (a
   1440x900 browser has 900px of height) - that would lock out desktop
   visitors for nothing but a landscape monitor. */
.e50lp-rotate-lock {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: var(--e50lp-gutter);
  text-align: center;
  background: var(--e50lp-bg-edge);
  color: var(--e50lp-text);
  font-family: var(--e50lp-font);
  font-size: var(--e50lp-size-body);
  line-height: var(--e50lp-leading);
}

/* Touch screens only. A desktop browser zoomed in is also landscape and under
   1023px wide (a 1440px window at 150% is 960px), and covering it with this
   message left a mouse user with no way to scroll or swipe anything. */
@media (orientation: landscape) and (max-width: 1023px) and (pointer: coarse) {
  .e50lp-rotate-lock {
    display: flex;
  }
}

.e50lp-root button:focus {
    background-color: transparent !important;
}

[dir=rtl] .e50lp-root .e50lp-detail__nav--next::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

[dir=rtl] .e50lp-detail__nav--prev::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.overflow-hidden {
    overflow: hidden !important;
}