/* Echoes of Empires — motion layer.
   Purely additive: every rule is scoped to html.motion (set by /js/motion-boot.js),
   which is never applied when the visitor prefers reduced motion or when scripts
   fail to load. Remove this file and the two motion scripts and the site is
   exactly as it was. Only transform / opacity / clip-path / stroke are animated. */

:root {
  --m-ease: cubic-bezier(.22, .8, .2, 1);
  --m-inout: cubic-bezier(.65, .05, .3, 1);
}

/* ---------- Page-to-page transitions (cross-document view transitions) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: m-vt-out .26s ease both; }
  ::view-transition-new(root) { animation: m-vt-in .55s ease both; }
  .site-header { view-transition-name: site-header; }
}
@keyframes m-vt-out { to { opacity: 0; } }
@keyframes m-vt-in { from { opacity: 0; } }

/* ---------- Before the motion script is ready: hold the stage dark ---------- */
.motion-pending .hero .wrap > *,
.motion-pending .hero-meta,
.motion-pending .page-head .wrap > *,
.motion-pending .reveal,
.motion-pending .controls,
.motion-pending .results-bar,
.motion-pending .login-card,
.motion-pending .login-bg,
.motion-pending .notfound > div > *,
.motion-pending .site-footer > .wrap { opacity: 0 !important; }

/* The original block-level fade is replaced by the finer-grained reveals below. */
.motion .reveal { opacity: 1; transform: none; transition: none; }

/* =====================================================================
   Reveal primitives. JS tags an element with data-m="type", then adds
   .m-in when it scrolls into view, then removes both once it has settled
   so hover transitions return to normal.
   ===================================================================== */
.motion [data-m] { --d: 0ms; }

.motion [data-m="rise"].m-in { transition: opacity .9s ease var(--d), transform 1.15s var(--m-ease) var(--d); }
.motion [data-m="rise"]:not(.m-in) { opacity: 0; transform: translate3d(0, 28px, 0); }

.motion [data-m="fade"].m-in { transition: opacity 1.3s ease var(--d); }
.motion [data-m="fade"]:not(.m-in) { opacity: 0; }

/* Eyebrow: the rule is drawn, then the label is uncovered behind it. */
.motion [data-m="wipe"].m-in { clip-path: inset(-30% 0 -30% 0); transition: clip-path 1.1s var(--m-inout) var(--d); }
.motion [data-m="wipe"]:not(.m-in) { clip-path: inset(-30% 100% -30% 0); }

/* Opens from the centre outwards (ornaments, the film frame). */
.motion [data-m="open"].m-in, .motion [data-m="curtain"].m-in { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--m-inout) var(--d); }
.motion [data-m="open"]:not(.m-in), .motion [data-m="curtain"]:not(.m-in) { clip-path: inset(0 50% 0 50%); }

/* Headings: each word rises out of its own baseline mask. */
.m-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .06em .2em; margin: -.1em -.06em -.2em; }
.m-wi { display: inline-block; }
.motion [data-m="words"].m-in .m-wi { transition: transform 1.05s var(--m-ease) calc(var(--d, 0ms) + var(--i, 0) * 55ms); }
.motion [data-m="words"]:not(.m-in) .m-wi { transform: translate3d(0, 118%, 0); }

/* Display titles: letters resolve out of soft focus, one after another. */
.m-word { display: inline-block; white-space: nowrap; }
.hero h1 .m-word, .hero h1 .m-c { display: inline-block; } /* site.css makes every span in the hero title a block */
.m-c { display: inline-block; }
.motion [data-m="chars"].m-in .m-c {
  transition: opacity .9s ease calc(var(--d, 0ms) + var(--i, 0) * 48ms),
    transform 1.3s var(--m-ease) calc(var(--d, 0ms) + var(--i, 0) * 48ms),
    filter 1.1s ease calc(var(--d, 0ms) + var(--i, 0) * 48ms);
}
.motion [data-m="chars"]:not(.m-in) .m-c { opacity: 0; transform: translate3d(0, .32em, 0) scale(1.1); filter: blur(12px); }

/* ---------- The tagline: "Power fades." dims; "History echoes." echoes ---------- */
.m-tag-a, .m-tag-b { display: inline-block; }
.motion .m-tag-a { opacity: .6; }
.motion [data-m="tagline"]:not(.m-in) .m-tag-a,
.motion [data-m="tagline"]:not(.m-in) .m-tag-b { opacity: 0; }
.motion [data-m="tagline"].m-in .m-tag-a { animation: m-power-fades 3.6s ease var(--d) both; }
.motion [data-m="tagline"].m-in .m-tag-b { animation: m-history-echoes 2.8s ease-out calc(var(--d) + 1.15s) both; }
.motion .tagline:not([data-m]):hover .m-tag-b { animation: m-echo-again 2.2s ease-out; }
@keyframes m-power-fades {
  0% { opacity: 0; transform: translate3d(0, .3em, 0); }
  24% { opacity: 1; transform: none; }
  58% { opacity: 1; }
  100% { opacity: .6; }
}
@keyframes m-history-echoes {
  0% { opacity: 0; text-shadow: 0 0 0 rgba(184, 155, 96, .6), 0 0 0 rgba(184, 155, 96, .4), 0 0 0 rgba(184, 155, 96, .25); }
  20% { opacity: 1; }
  100% { opacity: 1; text-shadow: .5em 0 0 rgba(184, 155, 96, 0), 1.05em 0 0 rgba(184, 155, 96, 0), 1.65em 0 0 rgba(184, 155, 96, 0); }
}
@keyframes m-echo-again {
  0% { text-shadow: 0 0 0 rgba(184, 155, 96, .5), 0 0 0 rgba(184, 155, 96, .32), 0 0 0 rgba(184, 155, 96, .2); }
  100% { text-shadow: .5em 0 0 rgba(184, 155, 96, 0), 1.05em 0 0 rgba(184, 155, 96, 0), 1.65em 0 0 rgba(184, 155, 96, 0); }
}

/* =====================================================================
   Hero
   ===================================================================== */
.motion .hero-media { transition: opacity 1.8s ease; }
.motion .hero-media:not(.m-on) { opacity: 0; }
.motion .hero-media:not(.m-fallback) img.engraving { visibility: hidden; }

/* The engraving, rebuilt inline so it can be drawn and can echo. */
.m-engraving {
  position: absolute; right: -4%; bottom: 0; height: 100%; aspect-ratio: 1000 / 900; max-width: 100%; opacity: .8; /* same box and crop as the original <img> */
  transform: translate3d(0, calc(var(--sy, 0) * .22px), 0);
}
.m-engraving svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m-rings { transform: translate3d(calc(var(--px, 0) * -7px), calc(var(--py, 0) * -5px), 0); }
.m-temple { transform: translate3d(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -9px), 0); }

.m-rings circle, .m-rings .m-grid { opacity: 0; }
.m-engraving.m-in .m-rings circle { opacity: 1; transition: opacity 1.4s ease calc(var(--i) * 75ms); }
.m-engraving.m-in .m-rings .m-grid { opacity: 1; transition: opacity 2.4s ease .4s; }
/* The echo: each ring brightens in turn, from the temple outwards, forever. */
.m-engraving.m-in .m-rings circle { animation: m-ring 7.5s ease-out calc(2.8s + var(--i) * 125ms) infinite; }
.m-engraving.m-paused .m-rings circle { animation-play-state: paused; }
@keyframes m-ring {
  0%, 34%, 100% { stroke-opacity: var(--o); stroke-width: 1; }
  7% { stroke-opacity: calc(var(--o) + .62); stroke-width: 1.7; }
}

/* The temple is drawn from its foundations upward. */
.m-temple .m-s { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); fill-opacity: 0; }
.m-engraving.m-in .m-temple .m-s {
  stroke-dashoffset: 0; fill-opacity: 1;
  transition: stroke-dashoffset var(--du) var(--m-inout) var(--dl), fill-opacity .9s ease calc(var(--dl) + var(--du) * .5);
}
.m-engraving.m-done .m-temple .m-s { stroke-dasharray: none; transition: none; }

/* Custom hero photograph (set in Website Settings): slow documentary push-in. */
.motion .hero-media > img:not(.engraving) { animation: m-vt-in 2s ease both, m-kenburns 40s ease-out both; transform-origin: 60% 40%; }
.motion .hero-media.m-paused > img { animation-play-state: paused; }
@keyframes m-kenburns { from { transform: scale(1.03); } to { transform: scale(1.14) translate3d(-1.2%, -.8%, 0); } }

/* Dust in the light (composited: transform + opacity only). */
.m-dust { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; opacity: 0; }
.m-dust.m-in { opacity: 1; transition: opacity 3s ease 1.4s; }
.m-dust i { position: absolute; border-radius: 50%; background: #d8bd86; opacity: 0; animation: m-mote 24s linear infinite; }
.m-dust.m-paused i { animation-play-state: paused; }
@keyframes m-mote {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  18% { opacity: var(--a); }
  50% { transform: translate3d(var(--sx), calc(var(--ty) * .5), 0); }
  82% { opacity: var(--a); }
  100% { transform: translate3d(0, var(--ty), 0); opacity: 0; }
}

/* Scroll: the hero recedes as the page moves on. */
.motion .hero .wrap { transform: translate3d(0, calc(var(--sy, 0) * .14px), 0); opacity: calc(1 - var(--sp, 0) * 1.15); }
.motion .hero-meta { transition: opacity 1.3s ease var(--d, 0ms); }

/* =====================================================================
   Header
   ===================================================================== */
.motion .site-header { transition: background-color .4s ease, box-shadow .4s ease; }
.motion .site-header.is-scrolled { background-color: rgba(16, 16, 16, .97); box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .95); }
.m-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(184, 155, 96, .25), var(--gold));
  transform-origin: left center; transform: scaleX(var(--p, 0));
}

@media (min-width: 861px) {
  .motion .nav a:not(.yt) { position: relative; border-bottom-color: transparent; }
  .motion .nav a:not(.yt)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: right center; transition: transform .5s var(--m-inout);
  }
  .motion .nav a:not(.yt):hover::after, .motion .nav a:not(.yt)[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }
}
@media (max-width: 860px) {
  .motion .nav.open > a { animation: m-nav-in .6s var(--m-ease) both; }
  .motion .nav.open > a:nth-child(1) { animation-delay: .08s; }
  .motion .nav.open > a:nth-child(2) { animation-delay: .14s; }
  .motion .nav.open > a:nth-child(3) { animation-delay: .2s; }
  .motion .nav.open > a:nth-child(4) { animation-delay: .26s; }
}
@keyframes m-nav-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* The emblem's outer ring echoes on hover. */
.motion .wordmark svg { overflow: visible; }
.motion .wordmark svg circle { transform-box: fill-box; transform-origin: center; }
.motion .wordmark:hover svg circle:first-of-type { animation: m-emblem 1.3s ease-out; }
@keyframes m-emblem {
  0% { transform: scale(1); opacity: 1; }
  55% { transform: scale(1.22); opacity: 0; }
  56% { transform: scale(.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
/* Line-drawing for the emblem (first visit, and the terminal login). */
.m-draw > * { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.m-draw.m-in > * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--m-inout) calc(var(--i) * 170ms); }

/* =====================================================================
   Buttons and links
   ===================================================================== */
.motion .btn {
  background: linear-gradient(var(--gold), var(--gold)) no-repeat right center / 100% 100% transparent;
  transition: background-size .5s var(--m-inout), color .35s ease .05s, border-color .3s ease;
}
.motion .btn:hover { background-size: 0% 100%; }
.motion .btn.ghost { background-image: linear-gradient(var(--gold-faint), var(--gold-faint)); background-position: left center; background-size: 0% 100%; }
.motion .btn.ghost:hover { background-size: 100% 100%; }
.motion .btn > span[aria-hidden], .motion .link-arrow > span[aria-hidden], .motion .link-arrow > svg {
  display: inline-block; transition: transform .45s var(--m-ease);
}
.motion .btn:hover > span[aria-hidden],
.motion .link-arrow:hover > span[aria-hidden], .motion .link-arrow:hover > svg,
.motion .entry:hover .link-arrow > svg { transform: translate3d(5px, 0, 0); }
.motion .link-arrow {
  border-bottom-color: transparent;
  background: linear-gradient(var(--gold-soft), var(--gold-soft)) no-repeat left bottom / 0 1px;
  transition: background-size .5s var(--m-inout);
}
.motion .link-arrow:hover, .motion .entry:hover .link-arrow { border-bottom-color: transparent; background-size: 100% 1px; }

/* =====================================================================
   Home sections
   ===================================================================== */
/* Areas of exploration: a lamp follows the pointer across the grid. */
.motion .areas { position: relative; }
.motion .areas::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(184, 155, 96, .13), transparent 70%);
}
.motion .areas.m-hot::after { opacity: 1; }
.motion .area { position: relative; }
.motion .area::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left center; transition: transform .6s var(--m-inout);
}
.motion .area:hover::before { transform: scaleX(1); }
.motion .area .num, .motion .area h3, .motion .area .count > span:last-child { display: inline-block; transition: transform .55s var(--m-ease), color .3s ease; }
.motion .area h3 { display: block; }
.motion .area:hover .num { transform: translate3d(0, -4px, 0); }
.motion .area:hover h3 { transform: translate3d(4px, 0, 0); }
.motion .area:hover .count > span:last-child { transform: translate3d(6px, 0, 0); }

/* Featured episode: the frame is ruled, the image is unveiled, the notes follow. */
.motion [data-m="featured"].m-in { transition: border-color 1.4s ease var(--d); }
.motion [data-m="featured"]:not(.m-in) { border-color: transparent; }
.motion [data-m="featured"].m-in .media { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--m-inout) var(--d); }
.motion [data-m="featured"]:not(.m-in) .media { clip-path: inset(0 100% 0 0); }
.motion [data-m="featured"].m-in .media img, .motion [data-m="featured"].m-in .media .thumb-fallback { transition: transform 2s var(--m-ease) var(--d); }
.motion [data-m="featured"]:not(.m-in) .media img, .motion [data-m="featured"]:not(.m-in) .media .thumb-fallback { transform: scale(1.2); }
.motion [data-m="featured"].m-in .info { transition: border-color 1.2s ease calc(var(--d) + .6s); }
.motion [data-m="featured"]:not(.m-in) .info { border-color: transparent; }
.motion [data-m="featured"].m-in .info > * { transition: opacity .9s ease calc(var(--d) + .45s + var(--k, 0) * 100ms), transform 1.1s var(--m-ease) calc(var(--d) + .45s + var(--k, 0) * 100ms); }
.motion [data-m="featured"]:not(.m-in) .info > * { opacity: 0; transform: translate3d(0, 22px, 0); }
.motion .featured .info > :nth-child(2) { --k: 1; }
.motion .featured .info > :nth-child(3) { --k: 2; }
.motion .featured .info > :nth-child(4) { --k: 3; }
.motion .featured .info > :nth-child(5) { --k: 4; }

/* "Coming soon" plate: corner marks are struck, the ornament opens, echoes spread. */
.motion [data-m="soon"].m-in { transition: border-color 1.6s ease var(--d); }
.motion [data-m="soon"]:not(.m-in) { border-color: transparent; }
.motion [data-m="soon"].m-in::before, .motion [data-m="soon"].m-in::after { transition: width .9s var(--m-inout) calc(var(--d) + .2s), height .9s var(--m-inout) calc(var(--d) + .2s), opacity .3s ease calc(var(--d) + .2s); }
.motion [data-m="soon"]:not(.m-in)::before, .motion [data-m="soon"]:not(.m-in)::after { width: 0; height: 0; opacity: 0; }
.motion [data-m="soon"].m-in > .ornament { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--m-inout) calc(var(--d) + .35s); }
.motion [data-m="soon"]:not(.m-in) > .ornament { clip-path: inset(0 50% 0 50%); }
.motion [data-m="soon"].m-in > h3, .motion [data-m="soon"].m-in > p, .motion [data-m="soon"].m-in > .btn {
  transition: opacity 1s ease calc(var(--d) + .6s + var(--k, 0) * 140ms), transform 1.2s var(--m-ease) calc(var(--d) + .6s + var(--k, 0) * 140ms),
    background-size .5s var(--m-inout), color .35s ease, border-color .3s ease;
}
.motion [data-m="soon"]:not(.m-in) > h3, .motion [data-m="soon"]:not(.m-in) > p, .motion [data-m="soon"]:not(.m-in) > .btn { opacity: 0; transform: translate3d(0, 20px, 0); }
.motion .coming-soon > p { --k: 1; }
.motion .coming-soon > .btn { --k: 2; }
.motion .coming-soon > :not(.m-echoes) { position: relative; }

/* Echo rings (decorative; composited transforms only). */
.m-echoes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.m-echoes i {
  position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px;
  border: 1px solid var(--gold); border-radius: 50%; opacity: 0;
  animation: m-echo 10.5s linear infinite; animation-delay: calc(var(--i) * -3.5s);
}
.m-echoes.m-paused i { animation-play-state: paused; }
@keyframes m-echo {
  0% { transform: scale(.2); opacity: 0; }
  14% { opacity: .2; }
  100% { transform: scale(2.6); opacity: 0; }
}
.page-head .m-echoes i { left: calc(100% - 170px); }
.motion .page-head .wrap { position: relative; }

/* Episode cards: the still is uncovered from below, then captioned. */
.motion [data-m="card"].m-in .thumb { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--m-inout) var(--d); }
.motion [data-m="card"]:not(.m-in) .thumb { clip-path: inset(100% 0 0 0); }
.motion [data-m="card"].m-in .thumb > img, .motion [data-m="card"].m-in .thumb-fallback { transition: transform 1.9s var(--m-ease) var(--d); }
.motion [data-m="card"]:not(.m-in) .thumb > img, .motion [data-m="card"]:not(.m-in) .thumb-fallback { transform: scale(1.18); }
.motion [data-m="card"].m-in > :not(.thumb) { transition: opacity .9s ease calc(var(--d) + .4s), transform 1.1s var(--m-ease) calc(var(--d) + .4s); }
.motion [data-m="card"]:not(.m-in) > :not(.thumb) { opacity: 0; transform: translate3d(0, 18px, 0); }

/* Thumbnails: a sheen crosses on hover; the inner frame tightens; play ring settles. */
.motion .thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(241, 237, 227, .1) 50%, transparent 62%);
  transform: translate3d(-101%, 0, 0);
}
.motion a:hover .thumb::after { transform: translate3d(101%, 0, 0); transition: transform 1.1s var(--m-inout); }
.motion .thumb-fallback::before { transition: inset .6s var(--m-ease), border-color .4s ease; }
.motion a:hover .thumb-fallback::before { inset: 6px; border-color: var(--gold-soft); }
.motion .thumb-fallback span { display: inline-block; transition: transform .9s var(--m-ease), opacity .4s ease; }
.motion a:hover .thumb-fallback span { transform: scale(1.06); opacity: 1; }
.motion .thumb .play { transform: translate(-50%, -50%) scale(.78); transition: opacity .35s ease, transform .6s var(--m-ease); }
.motion a:hover .thumb .play { transform: translate(-50%, -50%) scale(1); }

/* =====================================================================
   Episodes archive
   ===================================================================== */
.motion .page-head .bg-mark { transition: opacity 2.4s ease .3s, transform 2.6s var(--m-ease) .3s; transform: translateY(calc(-50% + var(--sy, 0) * .18px)); }
.motion-pending .page-head .bg-mark { opacity: 0; transform: translateY(-50%) scale(.9); }
.motion .field { transition: background-color .35s ease; }
.motion .field::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left center; transition: transform .55s var(--m-inout);
}
.motion .field:focus-within::after { transform: scaleX(1); }
.motion .entry { position: relative; }
.motion .entry::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold-soft);
  transform: scaleX(0); transform-origin: left center; transition: transform .7s var(--m-inout);
}
.motion .entry:hover::after { transform: scaleX(1); }
.motion .entry .no { transition: transform .6s var(--m-ease); }
.motion .entry:hover .no { transform: translate3d(6px, 0, 0); }

/* =====================================================================
   Episode page
   ===================================================================== */
.motion .ep-banner .bg { transform: translate3d(0, calc(var(--sy, 0) * .24px), 0); }
/* One slow push-in, then hold; paused whenever the banner is off screen. */
.motion .ep-banner .bg img { animation: m-kenburns-ep 40s ease-out both; }
.motion .ep-banner .bg .thumb-fallback span { animation: m-drift 40s ease-out both; }
.motion .ep-banner .bg.m-paused img, .motion .ep-banner .bg.m-paused .thumb-fallback span { animation-play-state: paused; }
@keyframes m-kenburns-ep { from { transform: scale(1.04); } to { transform: scale(1.16) translate3d(-1.4%, -1%, 0); } }
@keyframes m-drift { from { transform: scale(1); } to { transform: scale(1.1) translate3d(1.5%, -1%, 0); } }
.motion .ep-banner .wrap { transform: translate3d(0, calc(var(--sy, 0) * .1px), 0); opacity: calc(1 - var(--sp, 0) * 1.1); }

.motion [data-m="h2rule"].m-in { transition: opacity .9s ease var(--d); }
.motion [data-m="h2rule"]:not(.m-in) { opacity: 0; }
.motion [data-m="h2rule"].m-in::after { transform-origin: left center; transition: transform 1.4s var(--m-inout) calc(var(--d) + .15s); }
.motion [data-m="h2rule"]:not(.m-in)::after { transform: scaleX(0); }

/* Relevant dates: the line descends and each date is set in turn. */
.motion [data-m="timeline"] { position: relative; border-left-color: transparent; }
.motion [data-m="timeline"]::before {
  content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--gold-soft);
  transform-origin: center top; transition: transform 1.8s var(--m-inout) var(--d);
}
.motion [data-m="timeline"]:not(.m-in)::before { transform: scaleY(0); }
.motion [data-m="timeline"].m-in li { transition: opacity .8s ease calc(var(--d) + .2s + var(--i, 0) * 170ms), transform 1s var(--m-ease) calc(var(--d) + .2s + var(--i, 0) * 170ms); }
.motion [data-m="timeline"]:not(.m-in) li { opacity: 0; transform: translate3d(-8px, 0, 0); }
.motion [data-m="timeline"].m-in li::before { transition: transform .7s var(--m-ease) calc(var(--d) + .2s + var(--i, 0) * 170ms); }
.motion [data-m="timeline"]:not(.m-in) li::before { transform: rotate(45deg) scale(0); }

/* =====================================================================
   404 and terminal login
   ===================================================================== */
.motion .notfound { position: relative; }
.motion .notfound > div:not(.m-echoes) { position: relative; }
/* "Lost to History": letters weather and return, out of step with one another. */
.motion .m-erode .m-c { animation: m-erode calc(5s + var(--r, 0) * 6s) ease-in-out calc(3s + var(--r2, 0) * 6s) infinite; }
@keyframes m-erode { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.motion [data-m="login"].m-in { transition: opacity 1.1s ease var(--d), transform 1.3s var(--m-ease) var(--d); }
.motion [data-m="login"]:not(.m-in) { opacity: 0; transform: translate3d(0, 26px, 0); }
.motion .login-stage .m-echoes i { width: 620px; height: 620px; margin: -310px 0 0 -310px; }
.motion .login-card { z-index: 1; }

/* Small screens: the engraving sits behind the copy, so keep it quieter. */
@media (max-width: 860px) {
  .m-engraving { opacity: .5; }
}
