/* World Model · train · round 54 (Oct 5, 2026). Every class in this file is prefixed for this module (.ds-trn-*).
   The training film (train.js DSK.train) is one fixed layer over the whole app on the dark ground: a canvas for the dots,
   the hairlines and the names that fly past; real elements for the words (the model's name, the caption, the trailers being
   read, the families' names at the end) so type stays sharp and a screen reader hears each beat. Then the notice a page shows
   when a first-party source is not connected (DSK.missing). */

/* ---- the film ---- */
html.ds-trn-open { overflow: hidden; }
.ds-trn { position: fixed; inset: 0; z-index: 4000; overflow: hidden; background: #060D1C; color: #EEF3FB; font-family: var(--ds-f, Archivo, system-ui, sans-serif); opacity: 0; transition: opacity .32s ease; }
.ds-trn.on { opacity: 1; }
.ds-trn.out { opacity: 0; transition: opacity .48s ease; pointer-events: none; }
.ds-trn.out.fast { transition-duration: .2s; }
.ds-trn-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the top line: which model, and what it is doing; Skip opposite */
.ds-trn-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px 0 36px; }
.ds-trn-k { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; font-size: 14px; line-height: 1.3; color: #EEF3FB; }
.ds-trn-k b { font-weight: 650; }
.ds-trn-k i { font-style: normal; color: #93A6C2; }
.ds-trn-k span { margin-left: 10px; padding-left: 14px; border-left: 1px solid rgba(143, 176, 240, .3); color: #93A6C2; }
html[data-skin] .ds-trn-skip, .ds-trn-skip { flex: none; min-height: 36px; padding: 0 18px; border-radius: 8px !important; background: rgba(6, 13, 28, .55); border: 1px solid rgba(143, 176, 240, .34); color: #EEF3FB; font: 600 14px var(--ds-f, Archivo, system-ui, sans-serif); cursor: pointer; transition: background .15s, border-color .15s; }
.ds-trn-skip:hover { background: rgba(143, 176, 240, .14); border-color: #8FB0F0; }
.ds-trn-skip:focus-visible { outline: 2px solid #8FB0F0; outline-offset: 2px; }
/* the model, as the card the sources wire up to */
html[data-skin] .ds-trn-card { border-radius: 10px !important; }
.ds-trn-card { position: absolute; z-index: 2; box-sizing: border-box; display: grid; place-items: center; background: #0B1730; border: 1px solid rgba(143, 176, 240, .42); overflow: hidden; opacity: 0; transform: translate(-50%, -50%) translateY(10px); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.ds-trn-card.on { opacity: 1; transform: translate(-50%, -50%); }
.ds-trn-card.out { opacity: 0; transform: translate(-50%, -50%) scale(.94); transition: opacity .5s ease .25s, transform .7s ease .25s; }
.ds-trn-card p { margin: 0; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.ds-trn-card p b { font-weight: 650; color: #fff; }
.ds-trn-card p i { font-style: normal; color: #93A6C2; }
.ds-trn-card span { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(143, 176, 240, .16); }
.ds-trn-card span i { display: block; height: 100%; background: #8FB0F0; transform: scaleX(0); transform-origin: 0 50%; }
.ds-trn-card.on span i { transform: scaleX(1); transition: transform 1.7s linear .2s; }
/* the caption: what this beat is, one line at a time, bottom left where a film's slate sits. A pool of the ground's own dark
   keeps the dots from crossing the words */
.ds-trn-capt { position: absolute; z-index: 3; left: 36px; bottom: 44px; width: min(620px, calc(100% - 72px)); opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
.ds-trn-capt.on { opacity: 1; transform: none; transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.ds-trn-capt::before { content: ""; position: absolute; z-index: -1; inset: -70px -160px -60px -80px; background: radial-gradient(ellipse at 34% 55%, rgba(6, 13, 28, .94) 0, rgba(6, 13, 28, .8) 44%, rgba(6, 13, 28, 0) 74%); pointer-events: none; }
.ds-trn-b { margin: 0; font-size: 34px; font-weight: 650; letter-spacing: -.04em; line-height: 1.08; color: #fff; text-wrap: balance; }
.ds-trn-s { margin: 8px 0 0; font-size: 17px; line-height: 1.4; color: rgba(238, 243, 251, .7); white-space: nowrap; }
.ds-trn-capt.is-land .ds-trn-b { font-size: 44px; }
.ds-trn-capt.is-land .ds-trn-s { margin-top: 10px; font-size: 19px; }
/* the trailers, named as they are read: the name decodes in, a hairline fills under it, and it is done */
.ds-trn-lines { list-style: none; display: none; margin: 18px 0 0; padding: 0; max-width: 460px; }
.ds-trn-capt.is-read .ds-trn-lines { display: block; }
.ds-trn-lines li { position: relative; padding: 9px 0 10px; opacity: 0; transition: opacity .25s ease; }
.ds-trn-lines li.on { opacity: 1; }
.ds-trn-lines li b { display: block; min-height: 1.3em; font-size: 15px; font-weight: 600; line-height: 1.3; color: rgba(238, 243, 251, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s ease; }
.ds-trn-lines li.read b { color: #fff; }
.ds-trn-lines li span { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(143, 176, 240, .2); }
.ds-trn-lines li span i { display: block; height: 100%; background: #8FB0F0; transform: scaleX(0); transform-origin: 0 50%; }
.ds-trn-lines li.more b { font-weight: 500; color: #93A6C2; }
/* the five families, named under their crowds as the colour arrives */
.ds-trn-labs { position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.ds-trn-labs.on { opacity: 1; }
.ds-trn-labs p { position: absolute; margin: 0; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.ds-trn-labs b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.015em; color: #fff; }
.ds-trn-labs span { display: block; margin-top: 1px; font-size: 13px; color: #93A6C2; }
/* how far through, along the foot */
.ds-trn-prog { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(143, 176, 240, .12); }
.ds-trn-prog i { display: block; height: 100%; background: #8FB0F0; transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 720px) {
  .ds-trn-top { padding: 14px 14px 0 18px; }
  .ds-trn-k { font-size: 13px; }
  .ds-trn-k span { flex-basis: 100%; margin-left: 0; padding-left: 0; border-left: 0; }
  .ds-trn-capt { left: 18px; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 36px); }
  .ds-trn-capt::before { inset: -50px -40px -40px -40px; }
  .ds-trn-b { font-size: 26px; }
  .ds-trn-s { font-size: 15px; white-space: normal; }
  .ds-trn-capt.is-land .ds-trn-b { font-size: 30px; }
  .ds-trn-capt.is-land .ds-trn-s { font-size: 16px; white-space: nowrap; }
  .ds-trn-lines { margin-top: 12px; }
  .ds-trn-lines li { padding: 7px 0 8px; }
  .ds-trn-lines li b { font-size: 14px; }
  .ds-trn-card p { font-size: 14px; }
  .ds-trn-labs b { font-size: 12px; }
  .ds-trn-labs span { font-size: 11px; }
}
@media print { .ds-trn { display: none !important; } }

/* ---- the notice: a figure on this page is modeled because one of the brand's own sources is not connected ---- */
html[data-skin] .ds-trn-miss, .ds-trn-miss { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 11px 14px 11px 12px; background: var(--ds-tint, #F3F6FB); border: 1px solid var(--ds-line, rgba(23, 40, 62, .12)); border-radius: 10px !important; font-size: var(--ds-fs-3, 13.5px); line-height: 1.45; color: var(--ds-ink-soft, #2F4460); }
.ds-trn-miss > svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--ds-label, #6B7F99); }
.ds-trn-miss > span { flex: 1 1 auto; min-width: 0; text-wrap: pretty; }
.ds-trn-miss b { font-weight: 650; color: var(--ds-ink, #17283E); }
.ds-trn-miss-a { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 3px; font-weight: 600; white-space: nowrap; color: var(--ds-blue, #245DC8); text-decoration: none; }
.ds-trn-miss-a svg { width: 14px; height: 14px; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.ds-trn-miss-a:hover svg { transform: translateX(3px); }
.ds-trn-miss-a:focus-visible { outline: 2px solid var(--ds-blue, #245DC8); outline-offset: 3px; border-radius: 4px; }
html[data-skin] .ds-trn-miss.on-dark, .ds-trn-miss.on-dark { background: rgba(143, 176, 240, .08); border-color: rgba(143, 176, 240, .2); color: #C9D6EA; }
.ds-trn-miss.on-dark > svg { color: #93A6C2; }
.ds-trn-miss.on-dark b { color: #fff; }
.ds-trn-miss.on-dark .ds-trn-miss-a { color: #8FB0F0; }
@media (max-width: 560px) { html[data-skin] .ds-trn-miss, .ds-trn-miss { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 6px 10px; } .ds-trn-miss-a { grid-column: 2; justify-self: start; } }
@media print { .ds-trn-miss-a { display: none; } }

/* ---- the way out (Oct 9, Josh): a large white circle opens from the middle and covers the screen; the page changes
   under the white, then the white fades off and the site comes back in ---- */
.ds-trn-wipe { position: absolute; inset: 0; z-index: 20; background: #FFFFFF; pointer-events: none; clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); }
.ds-trn-wipe.on { clip-path: circle(var(--r, 150vmax) at var(--x, 50%) var(--y, 50%)); transition: clip-path var(--t, 1100ms) cubic-bezier(.65, 0, .3, 1); }
.ds-trn.wiping .ds-trn-skip { pointer-events: none; }
.ds-trn.white { background: #FFFFFF; }
.ds-trn.white > :not(.ds-trn-wipe) { visibility: hidden; }
.ds-trn.white.lift { opacity: 0; transition: opacity .8s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
