/* Super cover «Таймлайн» (2026-11-16, Max): the frames run while the reader scrolls, a ruler across the whole width shows
   where the reader is (the ruler of an article's contents laid on its side); at the last frame the stage lifts away and the
   home page comes out of blur and darkness. The masthead (mark, wordmark, menu) stays above it the whole time.
   public/home-cover.js sets html[data-intro=on] before the first paint; public/intro.js drives the rest. */
.seq-intro, .seq-veil { display: none; }
html[data-intro] { overflow: hidden; }
html[data-intro] body { overflow: hidden; }
html[data-intro] .seq-intro:not([hidden]) {
  display: block; position: fixed; inset: 0; z-index: 29; background: #0b0c0d; color: #fff;
  overscroll-behavior: contain; touch-action: none; will-change: transform;
}
html[data-intro] .seq-veil:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 28; background: #0b0c0d; pointer-events: none; }
html[data-intro] #main, html[data-intro] .site-footer { filter: blur(var(--seq-blur, 18px)); }
/* the masthead stays, white over the frames; everything else that floats waits for the home page */
html[data-intro] .site-chrome { --text: #fff; --secondary: #fff; color: #fff; z-index: 31; transform: none; }
html[data-intro] .site-chrome .globe { filter: invert(1); }
html[data-intro] .site-chrome::before, html[data-intro] .site-chrome::after { display: none; }
html[data-intro] :is(.edition-dock, .ask-pill, .setup-fab, .ask, .ask-veil) { opacity: 0; pointer-events: none; }

.seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* a quiet darkening at the edges, so the masthead and the ruler read on any frame */
.seq-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / .38), rgb(0 0 0 / 0) 22%, rgb(0 0 0 / 0) 66%, rgb(0 0 0 / .6));
}

/* The ruler is a time line (Max: «1964–1992 — тишина — 2026»): small ticks on a 5 px step, a tick for every year of the
   archive (longer at the decades), no ticks in the silence, the present after it; the part already passed in full white,
   the labels under the line and the reader's year over the accent marker. Parts are laid out by public/intro.js. */
.seq-ruler { text-shadow: 0 0 8px rgb(0 0 0 / .45); position: absolute; left: max(var(--margin, 16px), (100vw - var(--page, 1440px)) / 2 + var(--margin, 16px)); right: max(var(--margin, 16px), (100vw - var(--page, 1440px)) / 2 + var(--margin, 16px)); bottom: 34px; height: 22px; }
.seq-seg { position: absolute; bottom: 0; height: 6px; }
.seq-seg::before, .seq-seg i { position: absolute; left: 0; bottom: 0; height: 6px; pointer-events: none; }
.seq-seg::before { content: ''; right: 0; color: rgb(255 255 255 / .3); background: repeating-linear-gradient(to right, currentColor 0 1px, transparent 1px 5px); }
.seq-seg i { width: calc(var(--fill, 0) * 100%); color: rgb(255 255 255 / .9); background: repeating-linear-gradient(to right, currentColor 0 1px, transparent 1px 5px); }
/* silence: one faint hairline instead of ticks */
.seq-seg.is-quiet::before { top: auto; height: 1px; background: rgb(255 255 255 / .22); }
.seq-seg.is-quiet i { height: 1px; background: rgb(255 255 255 / .7); }
.seq-year { position: absolute; bottom: 0; width: 1px; height: 9px; background: rgb(255 255 255 / .45); transition: height .3s cubic-bezier(.2, .8, .2, 1), background .3s; }
.seq-year.is-long { height: 14px; background: rgb(255 255 255 / .7); }
.seq-year.is-current { height: 18px; background: #fff; }
.seq-label { position: absolute; top: calc(100% + 6px); font: 400 12px/16px 'ONY One', Arial, sans-serif; color: rgb(255 255 255 / .72); white-space: nowrap; font-feature-settings: 'tnum' 0; }
.seq-label.is-mid, .seq-label.is-quiet { translate: -50% 0; }
.seq-label.is-end { translate: -100% 0; }
.seq-intro[data-part=archive] .seq-label:not(.is-quiet, .is-end), .seq-intro[data-part=quiet] .seq-label.is-quiet, .seq-intro[data-part=now] .seq-label.is-end { color: #fff; }
.seq-mark { position: absolute; bottom: 0; width: 1px; height: 22px; background: var(--accent, #2A5CFF); z-index: 1; }
.seq-now { position: absolute; bottom: calc(100% + 6px); left: 0; translate: -50% 0; font: 400 15px/18px 'ONY One', Arial, sans-serif; color: #fff; white-space: nowrap; }
.seq-mark:has(.seq-now:empty) { height: 16px; }

.seq-hint, .seq-skip {
  position: absolute; bottom: 96px; margin: 0; font: 400 14px/20px 'ONY One', Arial, sans-serif; color: rgb(255 255 255 / .82);
  transition: opacity .5s ease;
}
.seq-hint { left: max(var(--margin, 16px), (100vw - var(--page, 1440px)) / 2 + var(--margin, 16px)); }
.seq-skip { right: max(var(--margin, 16px), (100vw - var(--page, 1440px)) / 2 + var(--margin, 16px)); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.seq-skip:hover, .seq-skip:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.seq-intro[data-moved] .seq-hint { opacity: 0; }

/* The way back (the mark, or scrolling up at the top): the stage comes down from above, the page goes back into blur. */
html[data-intro=return] .seq-intro { transform: translate3d(0, calc(-100% + var(--peek, 0px)), 0); transition: none; }
html[data-intro=return] .seq-veil { opacity: 0; transition: none; }
html[data-intro=return] #main, html[data-intro=return] .site-footer { --seq-blur: 0px; }
html[data-intro=on] .seq-intro { transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
html[data-intro=on] .seq-veil { transition: opacity .8s ease; }
html[data-intro=on] #main, html[data-intro=on] .site-footer { transition: filter .8s ease; }

/* The end: the stage lifts away, the home page clears from blur and dark. */
html[data-intro=lift] .seq-intro { transform: translate3d(0, -100%, 0); transition: transform 1.05s cubic-bezier(.7, 0, .25, 1); }
html[data-intro=lift] .seq-veil { opacity: 0; transition: opacity 1.1s ease .25s; }
html[data-intro=lift] #main, html[data-intro=lift] .site-footer { --seq-blur: 0px; transition: filter 1.2s cubic-bezier(.25, .6, .3, 1) .2s; }
@property --seq-blur { syntax: '<length>'; inherits: true; initial-value: 18px; }

@media (max-width: 760px) {
  .seq-ruler { bottom: 30px; }
  .seq-label { font-size: 11px; }
  .seq-label.is-mid { translate: calc(-100% - 4px) 0; }
  .seq-hint, .seq-skip { bottom: 86px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-intro] .seq-intro, html[data-intro] .seq-veil { display: none; }
  html[data-intro] { overflow: auto; }
  html[data-intro] #main, html[data-intro] .site-footer { filter: none; }
}

/* Caption of the archive frame (2026-11-16): the title of the picture and the issue it comes from, at the left above the
   ruler; the hint «Листайте» stands in the middle and leaves at the first move. */
.seq-hint { left: 50% !important; translate: -50% 0; }
.seq-caption { position: absolute; left: max(var(--margin, 16px), (100vw - var(--page, 1440px)) / 2 + var(--margin, 16px)); bottom: 96px; margin: 0; max-width: min(46ch, 60vw); font: 400 15px/1.3 'ONY One', Arial, sans-serif; color: #fff; text-shadow: 0 0 10px rgb(0 0 0 / .5); }
.seq-caption span { display: block; color: rgb(255 255 255 / .62); font-size: 13px; margin-top: 2px; }
.seq-caption:empty { display: none; }
@media (max-width: 760px) { .seq-caption { bottom: 86px; font-size: 14px; max-width: calc(100vw - 120px); } }

/* The closers (2026-11-17, Max: «доводчик»). At the top of the home page the stage hangs above the window and follows the
   reader's pull (--peek); at the end of the timeline it rises with the pull (--lift). Let go short of the threshold, it
   settles back softly; past it, it opens or lifts away. */
html[data-intro-peek] .seq-intro:not([hidden]) {
  display: block; position: fixed; inset: 0; z-index: 29; background: #0b0c0d; color: #fff;
  transform: translate3d(0, calc(-100% + var(--peek, 0px)), 0); box-shadow: 0 10px 40px rgb(0 0 0 / .25);
}
html[data-intro-peek] .seq-intro .seq-hint { opacity: 0; }
html[data-intro=on] .seq-intro.is-pulling { transform: translate3d(0, calc(-1 * var(--lift, 0px)), 0); transition: none; }
html[data-intro=on] .seq-intro.is-settling { transform: translate3d(0, calc(-1 * var(--lift, 0px)), 0); transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
html[data-intro-peek] .seq-intro.is-settling { transition: transform .42s cubic-bezier(.2, .8, .2, 1); }

/* The start timeline of the home page, laid out again (2026-11-17, Max, with the full-size archive frames): the frame
   stands whole in a field between the masthead and a band at the bottom (public/intro.js field()); the band carries the
   year of the frame in large ONY Lavr at the left, the caption beside it, «Пропустить» at the right and the ruler under
   all three. Nothing lies over the picture, so the shade over the frame is not needed. */
.seq-intro[data-place=home] .seq-shade { display: none; }
.seq-intro[data-place=home] .seq-big {
  position: absolute; left: max(var(--margin, 16px), (100vw - var(--page, 1440px)) / 2 + var(--margin, 16px)); bottom: 74px; margin: 0;
  font: 300 clamp(56px, 7.2vw, 104px)/.8 'ONY Lavr', Arial, sans-serif; letter-spacing: -.02em; color: #fff; font-variant-numeric: proportional-nums lining-nums; font-feature-settings: "pnum" 1, "tnum" 0;
}
.seq-intro[data-place=home] .seq-big:empty { display: none; }
.seq-intro[data-place=home] .seq-caption {
  bottom: 76px; left: calc(max(var(--margin, 16px), (100vw - var(--page, 1440px)) / 2 + var(--margin, 16px)) + clamp(56px, 7.2vw, 104px) * 2.6 + 28px);
  max-width: min(38ch, 42vw); text-shadow: none;
}
.seq-intro[data-place=home] .seq-skip { bottom: 70px; }
.seq-intro[data-place=home] .seq-hint { bottom: 76px; }
.seq-intro[data-place=home] .seq-ruler { bottom: 26px; }
/* the reader's year already stands large at the left: the marker carries no label of its own */
.seq-intro[data-place=home] .seq-now { display: none; }
.seq-intro[data-place=home] .seq-mark { height: 16px; }
@media (max-width: 760px) {
  .seq-intro[data-place=home] .seq-big { bottom: 92px; font-size: 56px; }
  .seq-intro[data-place=home] .seq-caption { left: calc(var(--margin, 16px) + 150px); bottom: 92px; max-width: calc(100vw - 170px); font-size: 13px; }
  .seq-intro[data-place=home] .seq-caption span { font-size: 12px; }
  .seq-intro[data-place=home] .seq-skip { bottom: 50px; right: 12px; }
  .seq-intro[data-place=home] .seq-hint { bottom: 50px; }
  .seq-intro[data-place=home] .seq-ruler { bottom: 22px; }
}

/* The hint and the pager (2026-11-18, Max: «вертикальный драг более нативно и подсказку иконку»; the editors: «Листать»
   misleads, the screen is scrolled). A capsule with a point moving inside it and the words for the device in hand, on a dark
   plate at the foot of the frame; it leaves at the first move. On touch screens the frames follow the finger (public/intro.js). */
.seq-swipe { display: none; }
.seq-hint-touch { display: none; }
.seq-intro[data-place=home] .seq-hint {
  bottom: calc(var(--seq-field-bottom, 168px) + 16px); display: flex; align-items: center; gap: 12px; padding: 9px 18px 9px 13px; border-radius: 999px;
  background: rgb(11 12 13 / .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; white-space: nowrap; pointer-events: none;
}
.seq-intro[data-place=home] .seq-swipe { display: block; flex: none; width: 18px; height: 30px; overflow: visible; }
.seq-swipe rect { fill: none; stroke: #fff; stroke-width: 1.8; }
.seq-swipe circle { fill: #fff; animation: seq-swipe 1.7s cubic-bezier(.4, 0, .2, 1) infinite reverse; }
@keyframes seq-swipe {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(-18px); opacity: 0; }
}
@media (hover: none) and (pointer: coarse) {
  .seq-hint-wheel { display: none; }
  .seq-hint-touch { display: inline; }
  .seq-swipe circle { animation-direction: normal; }
}
.seq-intro.is-pulling ~ .seq-veil { transition: none; }
html[data-intro=lift][data-intro-fling] .seq-intro { transition: transform .44s cubic-bezier(.22, .8, .3, 1); }
html[data-intro=lift][data-intro-fling] .seq-veil { transition: opacity .4s ease; }
html[data-intro=lift][data-intro-fling] :is(#main, .site-footer) { transition: filter .6s ease; }
