/* A continuous editorial spread between the cover and the first page. */
@view-transition { navigation: auto; }
html:active-view-transition-type(magazine)::view-transition-group(root) { animation-duration: 1100ms; }
html:active-view-transition-type(magazine)::view-transition-old(root) {
  animation: cover-depart 1100ms cubic-bezier(.76,0,.18,1) both;
  mix-blend-mode: normal;
}
html:active-view-transition-type(magazine)::view-transition-new(root) {
  animation: page-arrive 1100ms cubic-bezier(.76,0,.18,1) both;
  mix-blend-mode: normal;
}
html:active-view-transition-type(magazine)::view-transition-group(publication-logo) {
  z-index: 10; animation-duration: 1100ms; animation-timing-function: cubic-bezier(.76,0,.18,1);
}
html:active-view-transition-type(magazine)::view-transition-group(*) { overflow: clip; }
html:active-view-transition-type(magazine)::view-transition-new(identity),
html:active-view-transition-type(magazine)::view-transition-new(editorial-left),
html:active-view-transition-type(magazine)::view-transition-new(editorial-native),
html:active-view-transition-type(magazine)::view-transition-new(editorial-insight),
html:active-view-transition-type(magazine)::view-transition-new(editorial-composite),
html:active-view-transition-type(magazine)::view-transition-new(navigation),
html:active-view-transition-type(magazine)::view-transition-new(language),
html:active-view-transition-type(magazine)::view-transition-new(scroll-cue) {
  animation: type-arrive 650ms cubic-bezier(.22,1,.36,1) both;
  animation-delay: 660ms;
}
html:active-view-transition-type(magazine)::view-transition-new(editorial-left) { animation-delay: 740ms; }
html:active-view-transition-type(magazine)::view-transition-new(editorial-native) { animation-delay: 820ms; }
html:active-view-transition-type(magazine)::view-transition-new(editorial-composite) { animation-delay: 900ms; }
html:active-view-transition-type(magazine)::view-transition-new(editorial-insight) { animation-delay: 980ms; }
html:active-view-transition-type(magazine)::view-transition-new(navigation),
html:active-view-transition-type(magazine)::view-transition-new(language),
html:active-view-transition-type(magazine)::view-transition-new(scroll-cue) { animation-delay: 1050ms; animation-duration: 400ms; }
@keyframes cover-depart { to { transform: translateX(-28%); filter: brightness(.7); } }
@keyframes page-arrive { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes type-arrive { from { opacity: 0; transform: translateX(90px); } to { opacity: 1; transform: translateX(0); } }
.magazine-arrival .site-header__brand { view-transition-name: publication-logo; }
.magazine-arrival .home-editorial--identity { view-transition-name: identity; }
.magazine-arrival .home-editorial--left-top { view-transition-name: editorial-left; }
.magazine-arrival .home-editorial--native { view-transition-name: editorial-native; }
.magazine-arrival .home-editorial--insight { view-transition-name: editorial-insight; }
.magazine-arrival .home-editorial--composite { view-transition-name: editorial-composite; }
.magazine-arrival .site-header { view-transition-name: navigation; }
.magazine-arrival .language-toggle { view-transition-name: language; }
.magazine-arrival .home-scroll-cue { view-transition-name: scroll-cue; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* Backdrop filters cannot sample across the two document snapshots. */
.magazine-arrival .site-header, .magazine-arrival .language-toggle { backdrop-filter: none; -webkit-backdrop-filter: none; }
.magazine-arrival .site-header__brand { mix-blend-mode: normal; }
html:active-view-transition-type(magazine)::view-transition-old(publication-logo) { animation: none; opacity: 0; }
html:active-view-transition-type(magazine)::view-transition-new(publication-logo) { animation: none; opacity: 1; }

/* One photographic focus sequence connects the glass and editorial spread. */
.magazine-arrival .home-stage__warm { view-transition-name:portrait-aperture; }
html:active-view-transition-type(glass)::view-transition-group(*) { animation-duration:5000ms; }
html:active-view-transition-type(glass)::view-transition-old(root) { z-index:2; mix-blend-mode:normal; animation:glass-clear 2200ms linear both; }
html:active-view-transition-type(glass)::view-transition-new(root) { mix-blend-mode:normal; animation:glass-home 5000ms linear both; }
html:active-view-transition-type(glass)::view-transition { background:#000; }
html:active-view-transition-type(glass)::view-transition-group(portrait-aperture) { z-index:1; }
@property --entry-light-radius { syntax:'<length>'; inherits:false; initial-value:1800px; }
html:active-view-transition-type(glass)::view-transition-new(portrait-aperture) {
 mix-blend-mode:normal;
 mask-image:radial-gradient(circle var(--entry-light-radius) at var(--entry-face-x,23vw) var(--entry-face-y,47vh),#000 0%,rgba(0,0,0,.97) 32%,rgba(0,0,0,.65) 57%,rgba(0,0,0,.15) 82%,transparent 100%);
 animation:portrait-focus 4300ms cubic-bezier(.4,0,.2,1) both;
}
@keyframes glass-clear {
 0% { opacity:1; filter:brightness(1) blur(0); }
 50%,75% { opacity:1; filter:brightness(0) blur(18px); }
 100% { opacity:0; filter:brightness(0) blur(18px); }
}
@keyframes glass-home {
 0%,32% { opacity:0; filter:brightness(0) blur(16px); }
 48% { opacity:1; filter:brightness(.65) blur(4px); }
 72%,100% { opacity:1; filter:brightness(1) blur(0); }
}
@keyframes portrait-focus {
 0%,39% { --entry-light-radius:110vmax; opacity:0; }
 53% { --entry-light-radius:85vmax; opacity:1; }
 86% { --entry-light-radius:clamp(150px,15vw,280px); opacity:1; }
 100% { --entry-light-radius:clamp(150px,15vw,280px); opacity:0; }
}
html:active-view-transition-type(glass)::view-transition-group(identity),
html:active-view-transition-type(glass)::view-transition-group(editorial-left),
html:active-view-transition-type(glass)::view-transition-group(editorial-native),
html:active-view-transition-type(glass)::view-transition-group(editorial-insight),
html:active-view-transition-type(glass)::view-transition-group(editorial-composite),
html:active-view-transition-type(glass)::view-transition-group(navigation),
html:active-view-transition-type(glass)::view-transition-group(language),
html:active-view-transition-type(glass)::view-transition-group(scroll-cue) { z-index:3; }
html:active-view-transition-type(glass)::view-transition-new(identity),
html:active-view-transition-type(glass)::view-transition-new(editorial-native),
html:active-view-transition-type(glass)::view-transition-new(editorial-insight) { animation:editorial-from-right 750ms cubic-bezier(.22,1,.36,1) 3750ms both; }
html:active-view-transition-type(glass)::view-transition-new(editorial-left),
html:active-view-transition-type(glass)::view-transition-new(editorial-composite) { animation:editorial-from-left 750ms cubic-bezier(.22,1,.36,1) 3950ms both; }
html:active-view-transition-type(glass)::view-transition-new(navigation),
html:active-view-transition-type(glass)::view-transition-new(language),
html:active-view-transition-type(glass)::view-transition-new(scroll-cue) { animation:chrome-appear 450ms ease 4450ms both; }
@keyframes editorial-from-right { from { opacity:0; transform:translateX(100px); } to { opacity:1; transform:none; } }
@keyframes editorial-from-left { from { opacity:0; transform:translateX(-100px); } to { opacity:1; transform:none; } }
@keyframes chrome-appear { from { opacity:0; } to { opacity:1; } }

html:active-view-transition-type(glass)::view-transition-group(publication-logo) { z-index:3; }
html:active-view-transition-type(glass)::view-transition-new(publication-logo) { animation:chrome-appear 450ms ease 4450ms both; }

/* The same clear mark travels first; the portrait waits for it to land. */
.magazine-arrival .site-header__brand { view-transition-name:none; }
.magazine-arrival .site-header__brand-mark { view-transition-name:publication-logo; }
html:active-view-transition-type(glass)::view-transition-group(publication-logo) { z-index:5; animation-duration:1200ms; animation-timing-function:cubic-bezier(.76,0,.24,1); }
html:active-view-transition-type(glass)::view-transition-old(publication-logo),
html:active-view-transition-type(glass)::view-transition-new(publication-logo) { animation:none; mix-blend-mode:normal; }
html:active-view-transition-type(glass)::view-transition-old(publication-logo) { opacity:0; }
html:active-view-transition-type(glass)::view-transition-new(publication-logo) { opacity:1; }
html:active-view-transition-type(glass)::view-transition-old(root) { animation:clear-black-cover 1900ms linear both; }
@keyframes clear-black-cover { 0%,65% { opacity:1; } 100% { opacity:0; } }
